Closed riwish closed 1 year ago
This indeed seems to be because of a update of pandas
(pd
) versions, where in pandas.io.common
the dictionary _compression_to_extension
has been changed over to extension_to_compression
. The issue comes from dependency genbase
, which I will update.
Change in genbase.data.__init__
:
...
if file_type in pd.io.common._compression_to_extension.values():
...
to
...
extensions = pd.io.common._compression_to_extension.values() \
if hasattr(pd.io.common, '_compression_to_extension') \
else pd.io.common.extension_to_compression.keys()
if file_type in extensions:
...
Summary of bug
The drugsreview dataset throws an error during the processing of ingestibles. The error being thrown is
module 'pandas.io.common' has no attribute '_compression_to_extension'
Environment information
explabox
version: 0.9b7Reproducing the bug
Steps to reproduce the behavior:
Run the first couple of cells of the current explabox durgsreview demo notebook, section '1. Ingestibles'
Solutions Attempted
I Googled the exception and saw it may be caused due to relying on a specific pandas version. I tried downgrading pandas
1.5.3
to1.4.0
and the error was gone.Expected behavior
A successfully completed Jupyter Notebook Cell without errors