Skip to content

Exception during tz_localize w/ empty Series #2248

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
craustin opened this issue Nov 14, 2012 · 1 comment
Closed

Exception during tz_localize w/ empty Series #2248

craustin opened this issue Nov 14, 2012 · 1 comment
Assignees
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@craustin
Copy link

from pandas import Series
s = Series()
s.tz_localize('UTC')

Q:\GAARD\Prod\Apps\Pandas64\4.36\pandas\core\series.pyc in tz_localize(self, tz, copy)
2730 localized : TimeSeries
2731 """
-> 2732 new_index = self.index.tz_localize(tz)
2733
2734 new_values = self.values

AttributeError: 'Index' object has no attribute 'tz_localize'

@wesm
Copy link
Member

wesm commented Nov 14, 2012

Got to love the ol' corner cases

@ghost ghost assigned wesm Nov 14, 2012
@wesm wesm closed this as completed in 261a0c2 Nov 14, 2012
yarikoptic added a commit to neurodebian/pandas that referenced this issue Nov 15, 2012
Version 0.9.1

* tag 'v0.9.1':
  RLS: Version 0.9.1 final
  BUG: icol() should propegate fill_value for sparse data frames pandas-dev#2249
  TST: icol() should propegate fill_value for sparse data frames
  BUG: override SparseDataFrame.icol to use __getitem__ instead of accessing _data internals. close pandas-dev#2251
  BUG: make Series.tz_localize work with length-0 non-DatetimeIndex. close pandas-dev#2248
  BUG: parallel_coordinates bugfix with matplotlib 1.2.0. close pandas-dev#2237
  BUG: issue constructing DataFrame from empty Series with name. close pandas-dev#2234
  ENH: disable repr dependence on terminal width when running non-interactively. pandas-dev#1610
  BUG: ExcelWriter raises exception on PeriodIndex pandas-dev#2240
  BUG: SparseDataFrame.icol return SparseSeries. SparseSeries.from_array return SparseSeries. close pandas-dev#2227, pandas-dev#2229
  BUG: fix tz-aware resampling issue. close pandas-dev#2245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

No branches or pull requests

2 participants