Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

To convert Date dtypes from Object to ns,UTC with Pandas

# using pd.to_datetime convert the dtype of Date to ns,UTC.
data.Date = pd.to_datetime(data.Date)
data['Date'].dtypes
Source by colab.research.google.com #
 
PREVIOUS NEXT
Tagged: #To #convert #Date #dtypes #Object #Pandas
ADD COMMENT
Topic
Name
1+4 =