loksabha-questions

Questions asked in the Lok Sabha - collection and analysis of trends. Creating the dataset from scratch.

https://github.com/sammitjain/loksabha-questions

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary

Keywords

dataset government-data india nlp-datasets nlp-machine-learning public-policy
Last synced: 11 months ago · JSON representation

Repository

Questions asked in the Lok Sabha - collection and analysis of trends. Creating the dataset from scratch.

Basic Info
  • Host: GitHub
  • Owner: sammitjain
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 80.7 MB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Topics
dataset government-data india nlp-datasets nlp-machine-learning public-policy
Created over 4 years ago · Last pushed about 4 years ago
Metadata Files
Readme Citation

README.md

loksabha-questions

A graphic of the Parliament of India, Courtesy: Suthir, Wikipedia

Questions asked in the Lok Sabha - collection and analysis of trends. Creating the dataset from scratch. Check out this link for a quick explanation of how the Question Hour works in the Lok Sabha.

The eventual goal of this repo is a complete analysis of the questions asked in the Lok Sabha (House of the People - lower house of the Indian Parliament). As of writing this readme, the VIIth session is in progress, and the dataset I've put together has 4750 questions from 29th November 2021 to 23rd December 2021.

Each question has the following information: | Field | Description | | ---: | --- | | Question ID | The official question number | | Question Type | Type of question, starred/unstarred | | Question Date | Session Date in which question was presented | | Question From | Asking Member(s) of Parliament | | Question To | Ministry / Department sought in the question | | Question Topic | Topic of the question | | Question Contents | Question body | | Member Party | Political affiliation of the Asking Member | | Member State | Asking Member's state | | Member Constituency | Asking Member's constituency | | Member Constituency Type | Asking Member's constituency type |

The goal of this project is to be able to answer the following questions (work in progress): * What are the questions that were asked by an MP? * What are the questions being asked from a particular state? * How many questions were asked around a particular topic? * Trends in questions asked by the MPs and any correlation to their affiliations? * And many more combinations of these...

Origins

  • This dataset was compiled by parsing PDFs of session questions. Typical Oral and Written questions look like:

Sample Page from List of Oral Questions in a Session Sample Page from List of Oral Questions in a Session

  • These PDFs can be found on the Official Lok Sabha Website.
  • As a starting point for this Dataset, I'm using the Seventeenth (17th) Session of the Lok Sabha. Will continue to add more sessions regularly.
  • Parsing these PDFs is truly a challenge - a staggering amount of data to scrape, and an even more daunting number of typing inconsistencies to consider.
  • Mapping the Asking Member to an actual Member of Parliament was also a difficult task. For e.g., consider the following names:
    • Shri Sunil Kumar Singh
    • Shri S.K. Singh
    • Shri Sunil Singh
    • Singh, Shri Sunil Kumar
    • Singh, Sunil Kumar
    • Singh, Sunil K.
  • These are all valid ways to write a name. Which one do we stick to? I choose to go with the full name approach with Last Name, First Name. Fuzzy-matching of Indian names was a difficult task, but it worked out well, thanks mostly to thefuzz.
  • Btw, interestingly, we currently have FIVE Shri Sunil Kumar's as MPs:

| Member Name | Party | Constituency | | --- | --- | --- | | Mondal, Shri Sunil Kumar | All India Trinamool Congress | Bardhaman Purba (SC)(West Bengal) | | Singh, Shri Sunil Kumar | Bharatiya Janata Party | Chatra (Jharkhand) | | Soni, Shri Sunil Kumar | Bharatiya Janata Party | Raipur (Chhattisgarh) | | Sunil Kumar Pintu, Shri | Janata Dal (United) | Sitamarhi (Bihar) | | Kumar, Shri Sunil | Janata Dal (United) | Valmiki Nagar (Bihar) |

Why are there TWO .csv files in this dataset?

  • Sometimes, questions are clubbed, and therefore may list multiple asking members. For example, consider Q. 362 and Q. 4142 in the above screenshots.
  • Therefore, Multiple Members may ask a Single Question, and a Single Member may ask Multiple Questions.
  • This makes it harder to analyze questions - specifically operations like grouping / aggregating in a dataset.
  • This Many-to-Many relationship is typically addressed in Databases by means of a bridging table.
  • However, considering the scale of the problem, I decided to ship an augmented version of this database as well which is called questions_flattened.csv in addition to the questions.csv database.
  • A quick look into the number of questions will better demonstrate the above explanation.
    • Each session has 250 questions on record (20 starred + 230 unstarred).
    • For 17 sessions, the total comes to 4250 questions. This is why questions.csv has 4250 entries as of now.
    • Some questions were asked by multiple members, so I replicated these questions for each asking Member of Parliament.
    • This results in 7050 questions after flattening out the questions - Hence, questions_flattened.csv
  • Do you need both the files? In most cases, no. It's also easy to derive one from the other. Chances are that most analyses will use the flattened dataset.

NOTE:

  • I do not own any of the associated data and is publicly available at http://loksabhaph.nic.in/Questions/questionlist.aspx as on December 15th, 2021.
  • Any information presented is merely an interpretation and should not be used as a substitute for real data.
  • Since this project involves a lot of text analytics, natural language processing, semantic parsing of really messy data, it is prone to errors.

Owner

  • Name: Sammit Jain
  • Login: sammitjain
  • Kind: user

AI Engineer, Data Science, Biology, Football and Poetry

GitHub Events

Total
Last Year

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 46
  • Total Committers: 2
  • Avg Commits per committer: 23.0
  • Development Distribution Score (DDS): 0.391
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Sammit Jain j****1@g****m 28
Sammit Jain s****i@g****m 18

Issues and Pull Requests

Last synced: over 2 years ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: about 9 hours
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.25
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sammitjain (4)
Pull Request Authors
Top Labels
Issue Labels
bug (3) enhancement (1)
Pull Request Labels