guidocioni / point_wx

4 stars 0 forks source link

Create a dedicated function for units conversion #175

Open guidocioni opened 1 month ago

guidocioni commented 1 month ago

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

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.