-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
API DesignDatetimeDatetime data dtypeDatetime data dtypeTimedeltaTimedelta data typeTimedelta data type
Milestone
Description
I find this surprising:
import pandas as pd
pd.Series([pd.Timestamp('2010-01-04 00:00:00')]).astype(str)
TypeError: cannot astype a datetimelike from [datetime64[ns]] to [|S0]
str(pd.Timestamp) works though, so why astype shouldn't?
Also the type representation "|S0" is not entirely clear to me.
Metadata
Metadata
Assignees
Labels
API DesignDatetimeDatetime data dtypeDatetime data dtypeTimedeltaTimedelta data typeTimedelta data type