Skip to content

API: preserver tz on created series from Index when possible #7822

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

Closed
jreback opened this issue Jul 23, 2014 · 1 comment · Fixed by #7823
Closed

API: preserver tz on created series from Index when possible #7822

jreback opened this issue Jul 23, 2014 · 1 comment · Fixed by #7823
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Timezones Timezone data dtype
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jul 23, 2014

I think this could be done w/o breaking anything else.

xref: #3950

In [16]: ts = pd.date_range('1/1/2011', periods=5, freq='10s', tz = 'US/Eastern')

In [17]: ts
Out[17]:
<class 'pandas.tseries.index.DatetimeIndex'>
[2011-01-01 00:00:00-05:00, ..., 2011-01-01 00:00:40-05:00]
Length: 5, Freq: 10S, Timezone: US/Eastern

In [18]: pd.DataFrame( {'a' : ts } )
@jreback
Copy link
Contributor Author

jreback commented Jul 23, 2014

cc @andrewchou34

fixed in #7823

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Timezones Timezone data dtype
Projects
None yet
1 participant