Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.errors.DuplicateLabelError#

exceptionpandas.errors.DuplicateLabelError[source]#

Error raised when an operation would introduce duplicate labels.

Examples

>>>s=pd.Series([0,1,2],index=['a','b','c']).set_flags(...allows_duplicate_labels=False...)>>>s.reindex(['a','a','b'])Traceback (most recent call last):...DuplicateLabelError:Index has duplicates.      positionslabela        [0, 1]

[8]ページ先頭

©2009-2025 Movatter.jp