A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Timestamp.to_numpy.html below:

pandas.Timestamp.to_numpy — pandas 2.3.1 documentation

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

Convert the Timestamp to a NumPy datetime64.

This is an alias method for Timestamp.to_datetime64(). The dtype and copy parameters are available here only for compatibility. Their values will 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 for pd.NaT:

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4