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 unit helper for pandas data frames #203

Closed
jrleeman opened this issue Mar 29, 2018 · 2 comments
Closed

Add unit helper for pandas data frames #203

jrleeman opened this issue Mar 29, 2018 · 2 comments

Comments

@jrleeman
Copy link
Contributor

I propose a helper that goes through the columns of a pandas data frame and returns a dict with the keys being column names and the values being united arrays. Of course this would only work on our data frames with a .units attribute, but it would reduce boiler plate in places.

@jrleeman jrleeman added this to the 0.7 milestone Mar 29, 2018
@jrleeman jrleeman self-assigned this Mar 29, 2018
@dopplershift
Copy link
Member

You could pass in the units as a dictionary. Default it to None, and if not passed see if the data frame has a units attribute.

@jrleeman
Copy link
Contributor Author

jrleeman commented Apr 2, 2018

Closing in favor of this living in MetPy instead. See Unidata/MetPy#797

@jrleeman jrleeman closed this as completed Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants