DEPR: let's deprecate (original) (raw)
xref #18202
We have some cruft, let's deprecate it (I have noted some which already have an issue associated).
From ndarray
Series.compress()(DEPR: Series.compress #21930)Series.imag/Series.real(DEPR: Series.put, Series.real, Series.imag, Index.dtype_str #27106)Series.nonzero()(Deprecate series.nonzero (GH18262) #24048)Series.put()(DEPR: Series.put, Series.real, Series.imag, Index.dtype_str #27106)Series.itemsizeSeries.flagsSeries.strides
timeseries specific
Series.first()
let head / tail take a timedeltaSeries.last()
other
Series.swapaxes()- No reason once panel is gone.
non-controversial
MultiIndex.to_hierarchical(only used forPanel) (DEPR: MultiIndex.to_hierarchical #21613)Series/DataFrame.compound()(DEPR: deprecate Series/DataFrame.compound #26405)Series.ptp()(DEPR: Series.ptp() #21614)Series.from_array(Deprecate Series.from_array ? #18213)Series.valid()(DEPR: Deprecate Series.valid #18800)Series/DataFrame.slice_shift()(DEPR: DataFrame/Series.slice_shift #37601)Series/DataFrame.tshift()(DEPR: Deprecate tshift and integrate it to shift #34545)Series/DataFrame.get_values()(DEPR: .get_values() #19617)Index.dtype_str(DEPR: Series.put, Series.real, Series.imag, Index.dtype_str #27106)Index.summary()(Deprecate Index.summary #18217).get_ftype_counts(DEPR: deprecate get_ftype_counts #18243) (DEPR: deprecate get_ftype_counts (GH18243) #20404).get_dtype_countsDEPR: DataFrame.get_dtype_counts #27145Index/Series.asobject(Deprecate Series.asobject, Index.asobject, rename to _asobject #18237) (DEPR: deprecate .asobject property #18572)Index.to_native_types()(make private) (DEPR: Index.to_native_types #36418)DataFrame/Series.as_matrix(DEPR: Deprecate NDFrame.as_matrix #18458).clip_upper/.clip_lower(replace by.clip) (DEPR: Deprecating .clip_lower and .clip_upper #24203)
Potentially
.ftypes(DEPR: deprecate get_ftype_counts #18243) (Deprecated Series.ftype, Series.ftypes and DataFrame.ftypes features #26744).xs()(CLN: implement xs in terms of loc #6249).iat/.at.take.lookup(DEPR: DataFrame.lookup #35224)DataFrame.from_items(DEPR: deprecate .add_prefix and .add_suffix #18347)Series/DataFrame.add_prefix/add_suffix- Maybe add suffix / prefix to concat?
NDFrame.filter