You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems that there is a deduplication which distinguishes None from NaT, then None got converted to NaT, and ultimately the self.is_unique check fails as NaT is present twice
The text was updated successfully, but these errors were encountered:
Thanks for the investigation @jafournier! It looks like series of length <= 50 don't end up caching, which is why your second example works. As soon as the size of the input data you gave goes > 50, the failure starts occurring. Investigations to fix this issue are welcome!
Problem description
I am expriencing a weird bug while trying to convert a list to datetime.
Here is a bug repro:
What I got is :
Testing on other example, the behavior is working as expected:
gives me
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 7d32926
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.2
numpy : 1.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 20.2.4
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : 0.2.2
scipy : 1.5.4
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 2.0.1
xlwt : None
numba : None
Info while scrolling a bit with pdb:
it seems that there is a deduplication which distinguishes
None
fromNaT
, thenNone
got converted toNaT
, and ultimately theself.is_unique
check fails asNaT
is present twiceThe text was updated successfully, but these errors were encountered: