Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Methode of State Spending #23

Open
4 tasks
ouslan opened this issue Feb 5, 2025 · 0 comments
Open
4 tasks

Create Methode of State Spending #23

ouslan opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@ouslan
Copy link
Member

ouslan commented Feb 5, 2025

Objective

Create a method that will read the data in the .csv containing the historical data then insert it to the database.

  • Read the .csv using polars
  • Pivot the table so that the data is in the following format shown in the table below.
  • Insert the clean data into the database as "StateSpendingTable"
date account num revenue expendenture
01-01-2020 123456 123456 123456
01-02-2020 123456 123456 123456
  • Insert the clean data into the database as "StateSpendingTable"

Note

You Might need to do 2 pivot one for revenues and one for expenses. Then merge them using the account number (the account number is the column name. Example you have the column name r123. r would indicate revenue and 123 would be the account number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants