This site is best viewed on large screens (laptop/PC).
Karnataka's recent state assembly elections reveal shifting political patterns over the past decade. The results from 2013, 2018, and 2023 trace a path from decisive outcomes to nuanced shifts in vote share and constituency wins — reflecting how electoral dynamics evolve over time.
Bharat Jodo Yatra was a mass movement which was held by the political party Indian National Congress ("the Congress" or INC as short form). Senior Congress leader Rahul Gandhi was orchestrating the movement by encouraging the party cadre and the public to walk from Kanyakumari at the southern tip of India to the union territory of Jammu and Kashmir, a journey of 4,080 kilometres (2,540 miles) over almost 150 days.
According to INC, the movement was intended to unite the country against the "divisive politics" of the Bharatiya Janata Party (BJP)-led Government of India. The Bharat Jodo Yatra movement was launched by Rahul Gandhi and Tamil Nadu chief minister M. K. Stalin; on September 7, 2022.
The Yatra covered 21 assembly constituencies in Karnataka. It spanned 511km in Karnataka over 22 days, moving from Gundlupet constituency to Raichur Rural constituency.
Source: Wikipedia
The Bharat Jodo Yatra (BJY), led by Rahul Gandhi and the Congress Party, covered 21 assembly constituencies in Karnataka. The Yatra spanned 511km in Karnataka over 22 days, moving from Gundlupet constituency to Raichur Rural constituency.
The map shows that the Yatra went through constituencies that the INC didn't win much in 2018. Out of 21 constituencies, the INC won in only 5, while the BJP won in 12 and the JD(S) in 4. But in 2023, things changed. The INC won in 15 of these constituencies and joined forces with SKP in Melukote, making their total 16.
If we look at the charts, we see that constituencies visited by the BJY had almost the same vote share as other constituencies. This may imply that the Yatra wasn't all that beneficial for INC. But if we compare this to the last election, there's a big change. The vote share in constituencies visited by BJY went up a lot (by about 9.78%) from 2018 to 2023. In other constituencies, it went up too, but only by about 5.80%.
So, what does this mean? It looks like the Bharat Jodo Yatra made a difference. It seems to have helped the INC do better in the places it visited, especially since they didn't do well there in 2018.
While the Yatra is seen as a factor in the improved performance, it's essential to note that correlation doesn't imply causation, and other factors might have contributed to the results.
Over the past three assembly elections, there's been a noticeable shift in the political landscape. The data reveals a continuous rise in the combined vote share of the two leading national parties, BJP and INC. As depicted in the graph, their collective vote share has consistently increased over the years.
But what does this mean for regional parties and their candidates?
As the national parties grow stronger, regional parties are facing a decline in their vote share. This trend might raise questions for voters who support local parties. If the trajectory continues, will their preferred regional party have the influence and representation they once had?
Moreover, candidates from these regional parties might find themselves at a crossroads. A dwindling vote share could mean reduced chances of electoral success, prompting them to reconsider their affiliations.
In essence, the rising dominance of national parties could reshape the political fabric, nudging voters and candidates to reevaluate their loyalties. As we move forward, it will be intriguing to see how this dynamic evolves and impacts the broader political spectrum.
The concept of the Effective Number of Parties (ENP) is used to measure the number of "effective" parties in a political system. It's not just a count of total parties; rather, it's a weighted measure that takes into consideration the relative strength of each party.
In a two-party system, the ENP will be close to 2, while in a system with many small parties, the ENP will be much higher.
Where:
Source: Wikipedia
The charts clearly show the consistent decline of the ENP metric with respect to both - vote share and number of seats, suggesting the idea of dwindling regional parties and the emergence of a bi-polarity in the political landscape.
While earlier we observed that the two major national parties, BJP and INC, have been gaining a larger share of the votes—pointing towards a consolidation of power—there's another aspect of the elections that's worth exploring.
Over the past three elections, the number of political parties contesting in Karnataka has notably increased. In 2013, there were 59 parties on the ballot. This number jumped to 91 in 2018 and remained consistent in 2023. At first glance, this seems paradoxical. If the BJP and INC are dominating the vote share, why are more parties choosing to enter the electoral race?
As a data scientist and not a political analyst, I can only offer my observations. Despite the dominance of the two major parties, the rise in the number of contesting parties might suggest that various groups are still eager to have their voices heard. This increase could reflect emerging local issues, regional aspirations, or new political movements aiming to influence the political discourse. It highlights that our democracy remains vibrant and dynamic, with multiple parties contributing to a diverse political landscape.
Conversely, the number of independent candidates has been steadily decreasing over the same period. While more parties are entering the fray, fewer individuals are choosing to run without party affiliation. From my perspective as a data scientist, this might indicate that candidates see greater value in aligning with an established party, even if it's a smaller one, rather than going it alone. This could be due to the support and resources that parties provide, making it challenging for independents to compete on their own. Ultimately, this trend suggests that parties are becoming the main avenue for political participation, with individuals preferring to be part of a collective rather than stand alone.
Every election cycle, a number of constituencies change their political color as seats move from one party to another, a phenomenon often described as “party turnover” or “swing direction.” These shifts offer valuable insights into voter sentiment, anti-incumbency trends, and the evolving balance of power on the state's electoral map.
Between 2013 and 2018, a clear pattern emerged: the biggest shift was from the INC to the BJP, involving 58 constituencies. This dramatic turnover helped the BJP recover from its previous defeat and placed it in a stronger position by 2018. However, by the 2023 election, the direction of movement reversed, with 41 constituencies moving from the BJP to the INC. These swings suggest a repetitive cycle where the party in power often faces a strong wave of anti-incumbency, losing its advantage to the other main national player in the next election.
Although JD(S) and a group of “Others” (smaller parties and independents) exist, most significant turnovers occur between the two national parties: the INC and the BJP. For instance, while JD(S) and Others occasionally gain seats, the big story across both election cycles has been the back-and-forth exchange of constituencies between INC and BJP. This pattern shows that Karnataka's political battlefield, at its heart, is shaped like a tug-of-war between these two main contenders.
JD(S) consistently experiences a mix of gains and losses but struggles to break the cycle of losing more ground than it holds onto. Between 2013 and 2018, it both lost and gained seats to and from the INC and BJP, ending up more as a swing player than a stable force. A similar churn continued between 2018 and 2023, with JD(S) again conceding seats to both major parties. Rather than emerging as a solid third front, JD(S) remains on shifting sands, vulnerable to the intense competition between INC and BJP.
In the earlier cycle (2013-2018), smaller parties and independents surrendered several seats to the main trio. By 2018-2023, these “Others” became nearly irrelevant, losing or gaining very few constituencies. Coupled with the first-past-the-post system, the result is that even a modest lead in vote share for the leading party can translate into disproportionately large seat gains. As a result, focused campaigning and strategic concentration of votes play a major role in producing big swings, and the entire landscape now appears locked in a dynamic, two-party-dominated struggle.
In every election, certain constituencies emerge as battlegrounds—places where the competition is fierce and the outcomes are decided by razor-thin margins. For this analysis, we classified constituencies as "battlegrounds" if the winning margin was less than 5% in all three consecutive assembly elections (2013, 2018, and 2023). This criterion highlights areas where voters are deeply divided, and every vote carries significant weight.
Using this definition, six constituencies—Bailhongal, Haliyal, Hosakote, Sringeri, Tumkur City, and Tumkur Rural—stand out. Here's what the data reveals about these consistently close contests:
Persistent Tight Races: Each of these constituencies has witnessed remarkably close contests over three election cycles. The winning margin has consistently remained under 5%, signaling a near-even split in voter preferences. This pattern underlines how these constituencies remain unpredictable and fiercely competitive.
Switching Parties Doesn't Always Switch Fortunes: In some constituencies, candidates attempted to change their political fortunes by switching parties, but the results remained unchanged. For example:
In Bailhongal, Jagadish C. Metgud ran as a BJP candidate in 2013, as an Independent in 2018, and returned to BJP in 2023. Yet, in all three elections, he ended up as the runner-up.
Similarly, in Haliyal, Sunil Hegade moved from JD(S) to BJP over the years but remained in second place in all three contests.
Party Loyalty Over Candidate Loyalty in Hosakote: The case of Hosakote offers a unique insight into voter behavior. Here, N Nagaraju won elections in 2013 and 2018 as a Congress (INC) candidate, defeating BJP-backed opponents. By 2023, both Nagaraju and his main opponent, Sharath Kumar Bachegowda, had switched parties—Nagaraju moved to BJP, and Bachegowda to INC. Despite this, INC retained the seat with Bachegowda now representing the party.
This outcome hints that voters in Hosakote may prioritize party loyalty over individual candidates, favoring the party symbol that previously won over the personality behind it.
Welcome to my analysis of the Karnataka Assembly Elections. This project dives into various aspects of the election using data to uncover patterns and insights.
Disclaimer: I am not affiliated with any political party. All insights presented here are based on data, with some conclusions drawn using basic common sense and analytical perspective. I am a data analyst, not a political scientist.
Note: To view the code for this project and explore the tools and technologies I used, visit my GitHub repository: GitHub Repository.
If you have any questions, suggestions, or feedback, feel free to connect with me on:
For the best experience, please view this site on a desktop or laptop browser. While it is accessible on mobile devices, it’s not fully optimized for them. If you’re using a mobile phone, consider selecting the "Desktop Site" option in your browser and viewing in landscape mode.
All charts, maps, and graphs on this site are interactive. Hover or Click on elements within the visualizations to explore further.
Access the table of contents by clicking on the menu icon at the top right corner. This will help you navigate through different sections of the analysis with ease.
While the data from the 2013 and 2018 elections is valid, there are some discrepancies to note. The 2013 data does not account for any bye-elections held between 2013 and 2018. The 2018 data includes the results from bye-elections conducted in 2019 for 15 constituencies. Any bye-elections held after 2019 are not reflected here. Data for the 2023 elections is sourced from NDTV’s publicly available data, not from the Election Commission of India’s official records.
Data on candidates' assets, liabilities, criminal cases, professions, and education across three elections was scraped from MyNeta. This data is freely available to the public.
Vote count data for each candidate in the 2023 elections was scraped from NDTV's live election results page, which is also freely accessible to the public.
Detailed results for the 2013 Assembly elections were obtained from OpenCity in CSV format, freely available for public use.
The Election Commission of India published detailed results for the 2018 elections in September 2018. This information is freely accessible to the public.
Information on eligible voters and their gender distribution was available in PDFs for all polling stations in Karnataka. Though freely available, these PDFs were protected by captcha. Only data on eligible voters and gender distribution was extracted.
The Karnataka constituency boundary shapefiles were obtained from the KGIS website. For clarity, Bangalore district constituencies are displayed separately due to their number and smaller area. No alteration to Karnataka’s official boundaries is intended.
MapShaper was used to convert shapefiles to GeoJSON for better compatibility. The tool also helped smoothen boundaries for faster rendering, without altering Karnataka’s official boundaries.
OpenAI's API assisted in segmenting and categorizing candidates' education and profession details using the GPT-3.5 model. While effective, this segmentation may not be entirely accurate.
Note: All data extracted or scraped is strictly for educational and academic purposes.
However, the 2011 census data is outdated, as factors like migration, urbanization, and constituency changes have significantly altered demographics, making it less reliable for this analysis.