Converter séries para DateTime
pd.to_datetime(df['your_time_column'])
Magnificent Moth
pd.to_datetime(df['your_time_column'])
pd.to_datetime(df.column)
pd.to_datetime(your_series)
import pandas as pd
# Define Panda Series
times = pd.Series(["2021-01-25", "2021/01/08", "2021", "Jan 4th, 2022"])
# Print Series
print("Series: \n", times, "\n")
# Convert Series to datetime
print("datetime: \n", pd.to_datetime(times))