pandas.Timestamp.to_numpy

pandas 3.1.1 · Arrays, scalars, and data types · method

Convert the timestamp to a NumPy datetime64 scalar.

Call syntax

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

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
dtype Optional
Positional or keyword
Default None
dtype

Choose the data type for the input conversion or result.

copy Optional
Positional or keyword
Default False
bool

Control whether data is copied where the API supports that choice.

Returns

numpy.datetime64