pandas.Timestamp.strptime — pandas 3.0.0.dev0+2106.gb2b2d04e41 documentation (original) (raw)
classmethod Timestamp.strptime(date_string, format)#
Convert string argument to datetime.
This method is not implemented; calling it will raise NotImplementedError. Use pd.to_datetime() instead.
Parameters:
date_stringstr
String to convert to a datetime.
formatstr, default None
The format string to parse time, e.g. “%d/%m/%Y”.
See also
pd.to_datetime
Convert argument to datetime.
Return a datetime corresponding to a string representing a date and time, parsed according to a separate format string.
Return a string representing the date and time, controlled by an explicit format string.
Return the time formatted according to ISO 8601.
Examples
pd.Timestamp.strptime("2023-01-01", "%d/%m/%y") Traceback (most recent call last): NotImplementedError