incompatible with latest pandas #621
Copy link
Copy link
Open
Description
When importing this using pandas 0.24 versions, this error occurs:
---> 26 import odo
27 import pytz
28 from tqdm import tqdm
~/anaconda3/lib/python3.6/site-packages/odo/__init__.py in <module>
27 from .backends.sas import sas7bdat
28 with ignoring(ImportError):
---> 29 from .backends.pandas import pd
30 with ignoring(ImportError):
31 from .backends.bcolz import bcolz
~/anaconda3/lib/python3.6/site-packages/odo/backends/pandas.py in <module>
100
101
--> 102 @convert.register((pd.Timestamp, pd.Timedelta), (pd.tslib.NaTType, type(None)))
103 def convert_null_or_nat_to_nat(n, **kwargs):
104 return pd.NaT
AttributeError: module 'pandas' has no attribute 'tslib'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
kyleabeauchamp commentedon Mar 8, 2019
I also encountered this.
xfail ODO test (incompatible with latest pandas)
bartly commentedon Apr 16, 2019
How to fix it ? Is there a resolution
nateGeorge commentedon Apr 16, 2019
Seeing as the build and docs are broken and it hasn't been updated in many months...seems like development has stalled.
ryoung29 commentedon Apr 20, 2019
I found a fix. In odo/backends/pandas.py line 94, change
pd.tslib.NaTTypetotype(pd.NaT).Also, the latest version on github has the fix, but I don't know if it's stable,
timcera commentedon Apr 21, 2019
ryoung29 commentedon Apr 24, 2019
@timcera yes, If you install the git version, it's working just fine.
amoux commentedon Jun 14, 2019
I was able to import after making the change, thanks!!
odoublewen commentedon Jul 10, 2019
@cpcloud @llllllllll Are there any maintainers who could make a new release?
xfail ODO test (incompatible with latest pandas)
fizwit commentedon Aug 8, 2019
Building Python 3.7.4 with odo-0.5.0
songhao8080 commentedon Sep 27, 2019
Fix pandas.tslib AttributeError on pandas 0.24+