In [158]: x = pd.to_datetime([np.nan, '2000-1-1'])
In [159]: y = x.to_period(freq='m')
In [160]: y
Out[160]:
<class 'pandas.tseries.period.PeriodIndex'>
[NaT, 2000-01]
Length: 2, Freq: M
In [161]: pd.isnull(x)
Out[161]: array([ True, False], dtype=bool)
In [162]: pd.isnull(y)
Out[162]: array([False, False], dtype=bool)
I think pd.isnull(y)
should be returning array([True, False], dtype=bool)
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4