Skip to content

Commit

Permalink
pd.NaTType is removed in pandas 0.20
Browse files Browse the repository at this point in the history
In pandas 0.20 there is no longer a "pd.NaTType".  Replaced with "type(pd.NaT)"
  • Loading branch information
timcera authored and llllllllll committed Jul 24, 2017
1 parent 6b52f93 commit e0e26ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odo/backends/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def nan_to_nat(fl, **kwargs):
raise NotImplementedError()


@convert.register((pd.Timestamp, pd.Timedelta), (pd.tslib.NaTType, type(None)))
@convert.register((pd.Timestamp, pd.Timedelta), (type(pd.NaT), type(None)))
def convert_null_or_nat_to_nat(n, **kwargs):
return pd.NaT

Expand Down

0 comments on commit e0e26ca

Please sign in to comment.