A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/docs/dev/development/../reference/api/pandas.Index.copy.html below:

pandas.Index.copy — pandas 3.0.0.dev0+2231.g4f2aa4d2be documentation

pandas.Index.copy#
Index.copy(name=None, deep=False)[source]#

Make a copy of this object.

Name is set on the new object.

Parameters:
nameLabel, optional

Set name for new object.

deepbool, default False
If True attempts to make a deep copy of the Index.

Else makes a shallow copy.

Returns:
Index

Index refer to new object which is a copy of this object.

See also

Index.delete

Make new Index with passed location(-s) deleted.

Index.drop

Make new Index with passed list of labels deleted.

Notes

In most cases, there should be no functional difference from using deep, but if deep is passed it will attempt to deepcopy.

Examples

>>> idx = pd.Index(["a", "b", "c"])
>>> new_idx = idx.copy()
>>> idx is new_idx
False

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4