Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

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
Returns:
Index

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

Notes

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

Examples

>>>idx=pd.Index(['a','b','c'])>>>new_idx=idx.copy()>>>idxisnew_idxFalse

[8]ページ先頭

©2009-2025 Movatter.jp