Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.Index.insert#

Index.insert(loc,item)[source]#

Make new Index inserting new item at location.

Follows Python numpy.insert semantics for negative values.

Parameters:
locint
itemobject
Returns:
Index

Examples

>>>idx=pd.Index(['a','b','c'])>>>idx.insert(1,'x')Index(['a', 'x', 'b', 'c'], dtype='object')

[8]ページ先頭

©2009-2025 Movatter.jp