Add budget data to Department of National Budget#115
Add budget data to Department of National Budget#115zaeema-n wants to merge 5 commits intoLDFLK:mainfrom
Conversation
Summary of ChangesHello @zaeema-n, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the dataset by introducing detailed budget expenditure information for various governmental bodies across five years (2021-2025). It not only adds the raw data but also refines the data ingestion pipeline to support a new 'government' entity type, ensuring that this new financial data is properly structured and linked within the system's hierarchy. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces budget data for the Department of National Budget across several years (2021-2025) and updates the ingestion script to handle 'government' entities. The Python environment is also updated to use Python 3.11. While the core functionality of adding new data and processing government entities is clear, there are some inconsistencies in the column naming within the newly added JSON data files and minor code improvements that could be made in the ingestion script.
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "columns": ["Institution", "Amount (Rs.Million)"], | |||
There was a problem hiding this comment.
The column name for the President's office has changed from "Ministry Office" (in 2021/2022 data) to "Institution" in this file. Please standardize column names across all years and datasets for consistency. Inconsistent naming can lead to issues when querying or processing data programmatically.
| "columns": ["Institution", "Amount (Rs.Million)"], | |
| "columns": ["Ministry Office", "Amount (Rs.Million)"], |
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "columns": ["Institution", "Amount (Rs.Million)"], | |||
There was a problem hiding this comment.
The column name for the Prime Minister's office has changed from "Ministry Office" (in 2021/2022 data) to "Institution" in this file. Please standardize column names across all years and datasets for consistency. Inconsistent naming can lead to issues when querying or processing data programmatically.
| "columns": ["Institution", "Amount (Rs.Million)"], | |
| "columns": ["Ministry Office", "Amount (Rs.Million)"], |
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "columns": ["Institution", "Amount (Rs.Million)"], | |||
There was a problem hiding this comment.
The column name for the Prime Minister's office has changed from "Ministry Office" (in 2021/2022 data) to "Institution" in this file. Please standardize column names across all years and datasets for consistency. Inconsistent naming can lead to issues when querying or processing data programmatically.
| "columns": ["Institution", "Amount (Rs.Million)"], | |
| "columns": ["Ministry Office", "Amount (Rs.Million)"], |
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "columns": ["Institution", "Amount (Rs.Million)"], | |||
There was a problem hiding this comment.
The column name for the President's office has changed from "Ministry Office" (in 2021/2022 data) to "Institution" in this file. Please standardize column names across all years and datasets for consistency. Inconsistent naming can lead to issues when querying or processing data programmatically.
| "columns": ["Institution", "Amount (Rs.Million)"], | |
| "columns": ["Ministry Office", "Amount (Rs.Million)"], |
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "columns": ["Institution", "Amount (Rs.Million)"], | |||
There was a problem hiding this comment.
The column name for the President's office has changed from "Ministry Office" (in 2021/2022 data) to "Institution" in this file. Please standardize column names across all years and datasets for consistency. Inconsistent naming can lead to issues when querying or processing data programmatically.
| "columns": ["Institution", "Amount (Rs.Million)"], | |
| "columns": ["Ministry Office", "Amount (Rs.Million)"], |
| "rows": [ | ||
| ["Office of the Prime Minister", 71] | ||
| ] | ||
| } No newline at end of file |
| ["Ministry of Sports and Youth Affairs", 4070], | ||
| ["Ministry of Irrigation", 6419] | ||
| ] | ||
| } No newline at end of file |
| "rows": [ | ||
| ["Office of the Prime Minister", 1099] | ||
| ] | ||
| } No newline at end of file |
| from ingestion.services.read_service import ReadService | ||
| from ingestion.services.ingestion_service import IngestionService | ||
| from ingestion.services.entity_resolver import find_ministers_by_name_and_year, find_department_by_name_and_ministers | ||
| from ingestion.services.ingestion_service import IngestionService |
| gov_start_time = "1948-02-04" | ||
| gov_end_time = "" |
There was a problem hiding this comment.
The gov_start_time and gov_end_time are hardcoded here. While 1948-02-04 might be a fixed historical date, it's generally better to avoid hardcoding such values directly in the code. Consider moving these to a configuration file or deriving them dynamically if possible. The empty string for gov_end_time is also a hardcoded default.
| gov_start_time = "1948-02-04" | |
| gov_end_time = "" | |
| # Define government relationship start/end times | |
| # gov_start_time = "1948-02-04" # Consider making this configurable | |
| # gov_end_time = "" # Consider making this configurable |
…ment (#137) * feat : adding person profile data for ministers * fix: fixing a typo * feat : adding president profile * remove: remove the protfolio column on from the profile data * feat : adding a person * feat : adding images for profiles and update their paths * feat : adding a person to the hierarchy
No description provided.