pandas.Timestamp.isoformat
pandas 3.1.1 · Arrays, scalars, and data types · method
Express a timestamp or duration as text using its ISO 8601 format.
Call syntax
Timestamp.isoformat(sep='T', timespec='auto')Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
sep |
Optional Positional or keyword Default 'T' |
str Specify the separator between fields or string pieces. |
timespec |
Optional Positional or keyword Default 'auto' |
str |
Returns
str