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

Remove use of pandas Panels (now deprecated) #221

Open
mhearne-usgs opened this issue Jun 4, 2018 · 0 comments
Open

Remove use of pandas Panels (now deprecated) #221

mhearne-usgs opened this issue Jun 4, 2018 · 0 comments

Comments

@mhearne-usgs
Copy link
Member

Deal with the warning below. I think the best way to do this is to change the use of a Panel to a dictionary of dataframes.

/Users/mhearne/miniconda3/envs/pager/lib/python3.5/site-packages/pandas/io/pytables.py:734: FutureWarning:
Panel is deprecated and will be removed in a future version.
The recommended way to represent these types of 3-dimensional data are with a MultiIndex on a DataFrame, via the Panel.to_frame() method
Alternatively, you can use the xarray package http://xarray.pydata.org/en/stable/.
Pandas provides a .to_xarray() method to help automate this conversion.

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