-
Notifications
You must be signed in to change notification settings - Fork 584
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
Arctic cannot import Panel from Pandas with newest version of pandas #907
Comments
Panel has been deprecated since Pandas 0.23. To load a Panel, you will likely need to downgrade to an earlier version of Pandas. |
If you are using poetry, I suggest you use this github repo to add your arctic dependency, instead of using the release from Pypi, as the pandas version has been pinned in the current master branch. This would be a quick fix to your issue.
|
Any progress on this? |
Is there any change, that the arctic library in future will not depend on the depreciated panels feature from pandas? |
If you need to use a later pandas version than 1.0 (the repository I use doesn't go back that far any longer, with Python 3.9.5 which I need to use for other reasons), I think the latest that currently works (stand to be corrected) is 1.1.5, which will work with Arctic pinned to 1.79.2 i.e. pip install pandas==1.1.5
pip install arctic==1.79.2 |
Has there been an update for this yet. I have constraints on my python version and pandas version i.e. downgrading is not possible. Thanks. |
i noticed that that |
The panel issue has been fixed in more recent releases of arctic. I'm afraid we cannot support all combinations of python/pandas. |
sounds like downgrading is the only way forward in that case. can't be mad at it as i'm not a contributor. thanks anyway. |
Installing arctic from this PR #928 has worked for me with newer versions of pandas (1.5.2) and numpy (1.21.2). |
suppressed Panel FutureWarning |
Arctic Version
Arctic Store
Platform and version
Windows 10, python 3.7 (anaconda distribution)
Description of problem and/or code sample that reproduces the issue
After upgrading to the latest pandas version (1.2.4), arctic fails with:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\rwi\Anaconda3\envs\rvf\lib\site-packages\arctic_init_.py", line 6, in
from .store.pandas_ndarray_store import PandasDataFrameStore, PandasSeriesStore, PandasPanelStore
File "C:\Users\rwi\Anaconda3\envs\rvf\lib\site-packages\arctic\store_pandas_ndarray_store.py", line 6, in
from pandas import DataFrame, Series, Panel
ImportError: cannot import name 'Panel' from 'pandas' (C:\Users\rwi\Anaconda3\envs\rvf\lib\site-packages\pandas_init.p
I have tried from an empty environment as well, where I only installed arctic and let arctic install pandas, which turned out to be version 1.2.4, hence it still failed.
The text was updated successfully, but these errors were encountered: