I am attaching the link to a CSV file which has the election results for all the elections held so far. Other than for recent election years 2014 and 2019, all the other elections have the downloads as PDF file in India Election Commission website. I wrote python script to (1) download all the files from 1951 – 2019, (2) convert all PDF files into text files, (3) use regular expressions to identify constituencies, parties, candidates, election results (4) extract all information from the text files based on results from regular expressions (5) process the information to rank the candidates and label them as winners, runners-up, losers, etc. (6) write the entire processed data into a single CSV file. Apart from writing scripts to process the data, I did data curation to keep the constituency names consistent across years and also to track the constituencies over years. Several constituencies have become either obsolete or have been merged with others or have been newly created in some years for some regions. There have been many re-structuring and re-defining of boundaries for constituencies based on periodic reports from Delimitation Commission of India.
I am quite confident that you will find this file useful as it has all the national election results from 1951 to 2019 in a csv format and at your fingertips. The link is https://drive.google.com/file/d/1Wrs6UP1D4GcUwR6wxnep-_3Kyjz-2mWW/view?usp=share_link
Leave a Reply