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

Adding an offset to a timezone-aware DatetimeIndex shifts the times #1838

Closed
ijmcf opened this issue Sep 4, 2012 · 0 comments
Closed

Adding an offset to a timezone-aware DatetimeIndex shifts the times #1838

ijmcf opened this issue Sep 4, 2012 · 0 comments
Labels
Milestone

Comments

@ijmcf
Copy link

ijmcf commented Sep 4, 2012

For example:

dr = pandas.date_range('03/06/2012 00:00', periods=25, freq='W-FRI', tz='US/Eastern')
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-03-09 00:00:00, ..., 2012-08-24 00:00:00]
Length: 25, Freq: W-FRI, Timezone: US/Eastern

dr + pandas.datetools.BDay()
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-03-12 05:00:00, ..., 2012-08-27 04:00:00]
Length: 25, Freq: None, Timezone: US/Eastern

Contrast with a timezone-naive DatetimeIndex:

dr = pandas.date_range('03/06/2012 00:00', periods=25, freq='W-FRI')
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-03-09 00:00:00, ..., 2012-08-24 00:00:00]
Length: 25, Freq: W-FRI, Timezone: None

dr + pandas.datetools.BDay()
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-03-12 00:00:00, ..., 2012-08-27 00:00:00]
Length: 25, Freq: W-MON, Timezone: None

@ghost ghost assigned changhiskhan Sep 18, 2012
wesm added a commit that referenced this issue Sep 19, 2012
* chang/fixedoffset:
  BUG: more fixedoffset occurrences #1928
  BUG: no zone in tzinfo #1838
@wesm wesm closed this as completed Sep 19, 2012
wesm added a commit that referenced this issue Sep 25, 2012
* master: (171 commits)
  BUG: fix Cython tz_convert bug with time zones that haven't had a UTC transition in a long time. close #1946
  BUG: fix buglet
  BUG: try fixing tzlocal bug
  Minor fixes to time series doc.
  Adding DataFrame methods to API reference.
  Added Series functions to API doc.
  BUG: fix segfault in SeriesGrouper with non-contiguous index
  RLS: Version 0.9.0 Release Candidate 1
  BLD: add lib depends #1945
  BUG: missing case for assigning DataFrame via ix
  BUG: python 3.1 timedelta compat issue
  BUG: python 3 tzoffset is not hashable
  TST: adds dateutil to travis-ci install commands
  BUG: let selecting multiple columns in DataFrame.__getitem__ work when there are duplicates. close #1943
  BUG: DatetimeConverter does not handle datetime64 arrays properly
  BUG: reindex with axis=1 when setting Series to scalar location, close #1942
  BUG: fix formatting of Timestamps in to_html/IPython notebook. refactor to_html code. close #1940
  ENH: allow single str input to na_values #1944
  TST: when xlrd is not installed skip tests needing it, close #1941
  BUG: DatetimeIndex localizes twice if input is localized DatetimeIndex #1838
  ...
yarikoptic added a commit to neurodebian/pandas that referenced this issue Sep 27, 2012
Version 0.9.0 Release Candidate 1

* tag 'v0.9.0rc1': (58 commits)
  RLS: Version 0.9.0 Release Candidate 1
  BLD: add lib depends pandas-dev#1945
  BUG: missing case for assigning DataFrame via ix
  BUG: python 3.1 timedelta compat issue
  BUG: python 3 tzoffset is not hashable
  TST: adds dateutil to travis-ci install commands
  BUG: let selecting multiple columns in DataFrame.__getitem__ work when there are duplicates. close pandas-dev#1943
  BUG: DatetimeConverter does not handle datetime64 arrays properly
  BUG: reindex with axis=1 when setting Series to scalar location, close pandas-dev#1942
  BUG: fix formatting of Timestamps in to_html/IPython notebook. refactor to_html code. close pandas-dev#1940
  ENH: allow single str input to na_values pandas-dev#1944
  TST: when xlrd is not installed skip tests needing it, close pandas-dev#1941
  BUG: DatetimeIndex localizes twice if input is localized DatetimeIndex pandas-dev#1838
  BUG: align input on setting via ix pandas-dev#1630
  cython methods for group bins pandas-dev#1809
  BUG: allow non-numeric columns in groupby first/last pandas-dev#1809
  TST: skip unicode filename test if system requires encoding to ascii
  BUG: more fixedoffset occurrences pandas-dev#1928
  BUG: no zone in tzinfo pandas-dev#1838
  BUG: handle lists too in DataFrame.xs when partially selecting data from DataFrame. close pandas-dev#1796
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants