Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.Timestamp.to_numpy#

Timestamp.to_numpy(dtype=None,copy=False)#

Convert the Timestamp to a NumPy datetime64.

This is an alias method forTimestamp.to_datetime64(). The dtype andcopy parameters are available here only for compatibility. Their valueswill not affect the return value.

Returns:
numpy.datetime64

See also

DatetimeIndex.to_numpy

Similar method for DatetimeIndex.

Examples

>>>ts=pd.Timestamp('2020-03-14T15:32:52.192548651')>>>ts.to_numpy()numpy.datetime64('2020-03-14T15:32:52.192548651')

Analogous forpd.NaT:

>>>pd.NaT.to_numpy()numpy.datetime64('NaT')

[8]ページ先頭

©2009-2025 Movatter.jp