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

Add sheet and file checks and prettification #4

Open
5 tasks
irm-codebase opened this issue Sep 22, 2024 · 0 comments
Open
5 tasks

Add sheet and file checks and prettification #4

irm-codebase opened this issue Sep 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@irm-codebase
Copy link
Collaborator

After all sections in a sheet are processed, there should be some standardized steps to run to ensure that the data is well formatted for the future.

Prettification includes:

  • Convert 0 to NaN where applicable.
  • Tidify the year columns into one.
  • Ensure dtypes are correct (yearly data should always be numeric)
  • Add mapping to convert strings that vary between versions (2-wheelers -> two-wheelers).

Checks should include:

  • Validate that categories, technology types, subtypes and carriers do not deviate from a given range of strings. pandera should work well here.
@irm-codebase irm-codebase self-assigned this Sep 22, 2024
@irm-codebase irm-codebase added the enhancement New feature or request label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant