New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: insert NaT into tz-aware DTI. #16357

Closed
jreback opened this Issue May 15, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@jreback
Contributor

jreback commented May 15, 2017

this should work (also should test for other index reshaping ops) & for TDI and PI

In [7]: pd.DatetimeIndex(['2017-01-01']).insert(0, pd.NaT)
Out[7]: DatetimeIndex(['NaT', '2017-01-01'], dtype='datetime64[ns]', freq=None)

In [8]: pd.DatetimeIndex(['2017-01-01'], tz='UTC').insert(0, pd.NaT)
ValueError: Passed item and index have different timezone
@theairportexplorer

This comment has been minimized.

theairportexplorer commented May 25, 2017

Taking a look at this

jbrockmendel added a commit to jbrockmendel/pandas that referenced this issue Dec 20, 2017

@jreback jreback modified the milestones: Next Major Release, 0.23.0 Dec 21, 2017

jreback added a commit that referenced this issue Dec 29, 2017

hexgnu added a commit to hexgnu/pandas that referenced this issue Jan 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment