Skip to content

GH1654 Clean out deprecated copy argument#1663

Merged
cmp0xff merged 5 commits intopandas-dev:mainfrom
loicdiridollou:gh1654_deprecate
Feb 9, 2026
Merged

GH1654 Clean out deprecated copy argument#1663
cmp0xff merged 5 commits intopandas-dev:mainfrom
loicdiridollou:gh1654_deprecate

Conversation

@loicdiridollou
Copy link
Member

Copy keyword

The copy keyword argument in the following methods is deprecated and will be removed in a future version. (pandas-dev/pandas#57347)

[DataFrame.truncate()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.truncate.html#pandas.DataFrame.truncate) / [Series.truncate()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.truncate.html#pandas.Series.truncate)
[DataFrame.tz_convert()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.tz_convert.html#pandas.DataFrame.tz_convert) / [Series.tz_convert()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.tz_convert.html#pandas.Series.tz_convert)
[DataFrame.tz_localize()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.tz_localize.html#pandas.DataFrame.tz_localize) / [Series.tz_localize()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.tz_localize.html#pandas.Series.tz_localize)
[DataFrame.infer_objects()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.infer_objects.html#pandas.DataFrame.infer_objects) / [Series.infer_objects()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.infer_objects.html#pandas.Series.infer_objects)
[DataFrame.align()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.align.html#pandas.DataFrame.align) / [Series.align()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.align.html#pandas.Series.align)
[DataFrame.astype()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.astype.html#pandas.DataFrame.astype) / [Series.astype()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.astype.html#pandas.Series.astype)
[DataFrame.reindex()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.reindex.html#pandas.DataFrame.reindex) / [Series.reindex()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.reindex.html#pandas.Series.reindex)
[DataFrame.reindex_like()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.reindex_like.html#pandas.DataFrame.reindex_like) / [Series.reindex_like()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.reindex_like.html#pandas.Series.reindex_like)
[DataFrame.set_axis()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.set_axis.html#pandas.DataFrame.set_axis) / [Series.set_axis()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.set_axis.html#pandas.Series.set_axis)
[DataFrame.to_period()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_period.html#pandas.DataFrame.to_period) / [Series.to_period()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.to_period.html#pandas.Series.to_period)
[DataFrame.to_timestamp()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_timestamp.html#pandas.DataFrame.to_timestamp) / [Series.to_timestamp()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.to_timestamp.html#pandas.Series.to_timestamp)
[DataFrame.rename()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.rename.html#pandas.DataFrame.rename) / [Series.rename()](https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.rename.html#pandas.Series.rename)
[DataFrame.transpose()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.transpose.html#pandas.DataFrame.transpose)
[DataFrame.swaplevel()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.swaplevel.html#pandas.DataFrame.swaplevel)
[DataFrame.merge()](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.merge.html#pandas.DataFrame.merge) / pd.merge()

Copy link
Contributor

@cmp0xff cmp0xff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you @loicdiridollou !

@cmp0xff
Copy link
Contributor

cmp0xff commented Feb 9, 2026

@loicdiridollou Please resolve the conflicts so we can merge.

@loicdiridollou
Copy link
Member Author

Thanks for the review, should be good now!

@cmp0xff cmp0xff merged commit 7ad48ca into pandas-dev:main Feb 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants