Skip to content
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: Series.append with DatetimeBlock and DatetimeTZBlock raises AttributeError #11455

Closed
sinhrks opened this issue Oct 28, 2015 · 1 comment
Closed
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype
Milestone

Comments

@sinhrks
Copy link
Member

sinhrks commented Oct 28, 2015

Splitted from #11351. Series.append with DatetimeBlock and DatetimeTZBlock raises AttributeError.

import pandas as pd

s = pd.Series([pd.Timestamp('2011-01-01'), pd.NaT])
s
#0   2011-01-01
#1          NaT
# dtype: datetime64[ns]

stz = pd.Series(pd.DatetimeIndex(['2012-01-01', '2012-01-02'], tz='Asia/Tokyo'))
stz
#0   2012-01-01 00:00:00+09:00
#1   2012-01-02 00:00:00+09:00
# dtype: datetime64[ns, Asia/Tokyo]

s.append(stz)
# AttributeError: 'numpy.ndarray' object has no attribute 'tz_localize'
@sinhrks sinhrks added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype labels Oct 28, 2015
@sinhrks sinhrks added this to the 0.17.1 milestone Oct 28, 2015
@jreback jreback modified the milestones: Next Major Release, 0.17.1 Nov 13, 2015
@sinhrks sinhrks modified the milestones: 0.18.0, Next Major Release Apr 10, 2016
@sinhrks
Copy link
Member Author

sinhrks commented Apr 10, 2016

Closed by #12195.

@sinhrks sinhrks closed this as completed Apr 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype
Projects
None yet
Development

No branches or pull requests

2 participants