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 a dedicated function for units conversion #175

Open
guidocioni opened this issue Aug 29, 2024 · 0 comments
Open

Create a dedicated function for units conversion #175

guidocioni opened this issue Aug 29, 2024 · 0 comments

Comments

@guidocioni
Copy link
Owner

Right now in every function of the openmeteo_api we have a part of the code which does the same unit conversion.
It would be good to put this functionality into a separated function which can work for all.
This function should get as input

  • a dataframe
  • a mapping of variables and units conversion

It should also read the original units from the relevant array, which should always be in the dataframe attrs.

It should return the original dataframe with just the conversion and anything else the same.

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

1 participant