Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.errors.IntCastingNaNError#

exceptionpandas.errors.IntCastingNaNError[source]#

Exception raised when converting (astype) an array with NaN to an integer type.

Examples

>>>pd.DataFrame(np.array([[1,np.nan],[2,3]]),dtype="i8")Traceback (most recent call last):IntCastingNaNError:Cannot convert non-finite values (NA or inf) to integer

[8]ページ先頭

©2009-2025 Movatter.jp