Open enricodetoma opened 3 years ago
@enricodetoma you need to rebase off the latest master after pinning pandas and numpy
@shashank88 I rebased off the latest master, but I'm not sure what you mean about pinning pandas and numpy. This pull request completes my previous pull request #881 which was meant to allow to use Arctic with recent pandas versions, though without Panel support (but then without the need to pin it to a specific version, I guess).
Actually I'm already using Arctic successfully with pandas 1.2.3 with this change, without Panel support
Actually I'm already using Arctic successfully with pandas 1.2.3 with this change, without Panel support
Same here, using it with latest Pandas. I don't use panels explicitly, just using tick store. Chunk store too slow to use.
Any update on this review?
Hi Duncan, I'm simply skipping importing Panel if it doesn't exist:
try:
from pandas import Panel
register_versioned_storage(PandasPanelStore)
except ImportError:
pass
I made an additional fix to manage the case of missing
Panel
in newpandas
versions. In fact I discovered that in few cases (e.g.library.delete(symbol)
),PandasPanelStore
static methodcan_write_type
was still called. With this commit,PandasPanelStore
is not even registered as storage class ifPanel
is missing frompandas
.