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: icol() doesn't preserve index type on sparse DataFrames #2251

Closed
ghost opened this issue Nov 14, 2012 · 1 comment
Closed

BUG: icol() doesn't preserve index type on sparse DataFrames #2251

ghost opened this issue Nov 14, 2012 · 1 comment
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Nov 14, 2012

from pandas.sparse.api import SparseSeries,SparseDataFrame
from pandas import Series, DataFrame, bdate_range, Panel
data = {'A' : [0,1 ]}
iframe = SparseDataFrame(data, default_kind='integer')
print type(iframe['A'].sp_index)
print type(iframe.icol(0).sp_index)

<type 'pandas._sparse.IntIndex'>
<type 'pandas._sparse.BlockIndex'>
@ghost
Copy link
Author

ghost commented Nov 14, 2012

Haven't got a fix for this.

@wesm wesm closed this as completed in aed5896 Nov 15, 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
Projects
None yet
Development

No branches or pull requests

1 participant