-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DEPR: log of deprecations in 1.x (to be removed in 2.0) #30228
Comments
For this one, let's use the checkboxes instead of cut/pasting to a separate issue when they are removed. |
Yes, +1, that's also what I wanted to propose |
Noting some things to look out for to ensure there's a "thorough" removal when enforcing these deprecations (referencing the original PR may not encompass the extent of the feature)
|
I searched through the pandas code, found a few more deprecations that weren't previously in the list, and added them. PR authors: @jbrockmendel, @jorisvandenbossche, and myself |
All prior deprecations have been enforced so closing |
Similar issue as #6581, but starting a fresh one for keeping a log of the deprecations we do in the 1.x releases.
1.0.0
keep_tz
kwarg fromDatetimeIndex.to_series
str.__iter__
to_parquet
,to_stata
,to_feather
changed to "path"RangeIndex._start, _stop, _step
(closed by DEPR: to_native_types, set_value, iteritems, union_many, to_perioddelta #49244)onOffset
,isAnchored
,get_offset
(closed by DEPR: enforce deprecations on DateOffset methods #48685)pd.np
pd.datetime
is_copy
arg in.take
numpy
arg inread_json
pd.SparseArray
(leave in designated pd.array.SparseArray)CategoricalIndex.take_nd
pandas.util.testing
module.1.0.1
display.max_colwidth
1.1.0
Series.__getitem__
(closed by DEPR: Enforce diallowing indexing with single item slice #49343)DataFrame/Series.describe
treats datelike as numeric.DataFrame.mean
andDataFrame.median
withnumeric_only=None
will include datetime64 and datetime64tz columns in a future version (closed by DEPR: DataFrame.median/mean with numeric_only=None and dt64 columns #49250)loc.__setitem__
incorrectly accepting positional slicesCategorical.to_dense
(closed by DEPR: Categorical, Index #49220).to_dict()
aliasesIndex.is_mixed
(closed by DEPR: Categorical, Index #49220)read_html
andread_json
non-keyword args (closed by DEPR: non-keyword arguments #49302, DEPR: non-keyword args, errors arg #49415)read_excel
non-keyword argsis_categorical
(closed by DEPR: is_categorical #49253)_AXIS_NUMBERS
and_AXIS_NAMES
properties on NDFrame and child classes (closed by DEPR: to_native_types, set_value, iteritems, union_many, to_perioddelta #49244)Index.get_value
(closed by DEPR: remove Index.get_value #49208)DateOffset.__call__
(closed by DEPR: enforce deprecations on DateOffset methods #48685)groupby(squeeze=)
Index.__getitem__
with float keyPeriod.to_timestamp
"tz" kwarg (closed by DEPR: tz arg in Period.to_timestamp #49280)DataFrame/Series.tshift
pd.merge
handlingsuffixes
as a set.DatetimeIndex.to_perioddelta
(closed by DEPR: to_native_types, set_value, iteritems, union_many, to_perioddelta #49244)center
ondf.expanding
#34887center
keyword in.expanding()
check_less_precise
inassert_frame_equal/assert_series_equal
value
parameter inDataFrame.melt
Series.__getitem__
group_keys
ignored for transform-like apply.Offset.apply_index
(closed by DEPR: enforce deprecations on DateOffset methods #48685)1.2.0
inplace
parameter inMultiIndex.set_codes
andMultiIndex.set_levels
dtype
parameters inIndex.copy
pandas/io/date_converters.py
Index.to_native_type
(closed by DEPR: to_native_types, set_value, iteritems, union_many, to_perioddelta #49244)MultiIndex.copy(level, codes)
.rolling(min_periods=None ...).count()
Index.__and__
,__or__
,__xor__
behaving as setops (closed by DEPR: Index.__and__, __or__, __xor__ #49503)Categorical.is_dtype_equal
andCategoricalIndex.is_dtype_equal
(closed by DEPR: Categorical, Index #49220)DataFrame.slice_shift
Categorical.remove_unused_categories
how
keyword inPeriod.astype
(closed by DEPR: PeriodIndex.astype how keyword #49234)null_counts
inDataFrame.info
xlrd
engine for read_excel #35029 default forread_excel
withengine=None
changingndim
arg inBlock.__init__
observed=False
keyword in groupby (this is pending)xlwt
in excel writing1.2.1
1.2.5
.xs
(closed by DEPR: enforce indexing deprecations #49511)1.3.0
.astype(int)
on datetimelikesIndex
constuction sub-class keywords, additional tests needed (closed by DEPR: disallow subclass-specific keywords in Index.__new__ #49311)Categorical
constructorIndex.is_all_dates
(tentative as reverted)Timestamp
comparsion todatetime.date
(closed by DEPR: Timestamp comparison with pydate #49394)try_cast
in.where/.mask
MultiIndex.is_lexsorted
Rolling.win_type
returning"freq"
&Rolling.is_datetimelike
Rolling.is_datetimelike
DataFrame.iloc[DataFrame.indexer] = ....
EWM.vol
.astype()
with a tz-naive timestamp/index. (closed by DEPR: enforce DatetimeArray.astype deprecations #49235)DataFrame.iloc
alignment with boolean DataFrame inputStyler.set_na_rep
and.set_precision
in favour of.format(na_rep='x', precision=3)
#40134Styler.set_precision
andStyler.set_na_rep
Series.transform
orDataFrame.transform
read_excel
CategoricalBlock
level=
kwarg inDataFrame
reduction methodsCategorial.remove_categories
Categorical.add_categories
Categorical.reorder_categories
Styler.where
possible deprecation #40821Styler.where
ExcelFile
areconvert_float
Index._maybe_slice_bound
loc keywordCategorical._codes
usecols
inread_csv
that are out of boundsDatatimeIndex.union
with mixed-timezonesread_csv
,error_bad_lines
,warn_bad_lines
read_csv
(closed by DEPR: non-keyword arguments #49359)read_table
(closed by DEPR: non-keyword arguments #49359)Series.between
, inclusive options1.4.0
Index.is_type_compatible
(closed by DEPR: Categorical, Index #49220)Float64Index
(closed by DEPR: enforce Series.__setitem__ behavior with Float64Index and non-present int key #49530)Index.get_loc
withmethod=
Int64Index
,Float64Index
,UInt64Index
pd.read_csv
,pd.read_excel
index
arg toSparseArray
(closed by DEPR: enforce a bunch #49552)closed
arg inpd.date_range
includes_*
args in.between_time
hide(axis=..)
replaceshide_index
andhide_columns
#43771 .hide_index / .hide_columns in Styler.mad
concat
Categorical.replace
numeric_only=None
in DataFrame.rank1.5.0
Timestamp.freq
Timedelta.delta
.mad
.any
non-kwargs (closed by DEPR: non-keyword arguments #49302)numeric_only
on DataFrame ops / resampler / groupbyIndex.join
for positional args (closed by DEPR: non-keyword arguments #49302)closed
keyword inInterval
in favor ofinclusive
Timestamp(non_round_float, unit="Y/M")
(closed by DEPR: enforce a bunch #49552)na_sentinel
inpd.factorize
numeic_only
in Series.rankIntervalIndex/IntervalArray.set_closed
Series/DataFrame.mask/where(errors=...)
(closed by DEPR: non-keyword args, errors arg #49415)iter(df.groupby([length-1-key]))
returning a scalarCategorical.set_ordered
, setting .categories inplaceto_excel(encoding=..., verbose...)
(unused)sort_columns
inplot
(#47563) #48073 deprecatesort_columns
in plotmangle_dupe_cols
DEPR: inplace kwarg in set_index #48115Reverted1.5.1
1.5.2
The text was updated successfully, but these errors were encountered: