cf-pandas #411
Unanswered
kthyng
asked this question in
Show and tell
cf-pandas
#411
Replies: 1 comment 2 replies
-
@dcherian Just wanted to have this out there so you are aware of it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been meaning to share that I pulled out some code from
cf-xarray
to makecf-pandas
: https://github.com/axiom-data-science/cf-pandas.The goal is to be able to use the same syntax from
cf-xarray
but with pandas DataFrames when working with both models and tabular data. For example, I copied in the same criteria used for selecting latitude, longitude, and time and use them to match the column names in a DataFrame to be able to use e.g.:You can also use custom_criteria to be able to interpret variables by alias. A lot of the code in the package right now is in this effort due to what I've needed, included support classes for writing regular expressions and the custom criteria dictionaries though there I call them "vocab".
Please let me know if I should add anything to better link
cf-pandas
tocf-xarray
or give better credit. I try to reference cf-xarray all over the place but I might have missed something important to say.Beta Was this translation helpful? Give feedback.
All reactions