Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.Index.dropna#

Index.dropna(how='any')[source]#

Return Index without NA/NaN values.

Parameters:
how{‘any’, ‘all’}, default ‘any’

If the Index is a MultiIndex, drop the value when any or all levelsare NaN.

Returns:
Index

Examples

>>>idx=pd.Index([1,np.nan,3])>>>idx.dropna()Index([1.0, 3.0], dtype='float64')

[8]ページ先頭

©2009-2025 Movatter.jp