pandas.Timestamp.strptime
pandas 3.1.1 · Arrays, scalars, and data types · method
A placeholder for parsing timestamp strings with a format. Use pd.to_datetime(value, format=...) because Timestamp.strptime raises NotImplementedError.
Call syntax
Timestamp.strptime(date_string, format)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
date_string |
Required Positional or keyword |
str |
format |
Required Positional or keyword |
str Supply a format string or choose an output layout supported by this API. |
Returns
Raises NotImplementedError. Use pd.to_datetime with format to parse this input.