Konversi tanggal waktu menjadi panda
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
Cruel Cockroach
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
import pandas as pd
df = pd.Dataframe(data)
df.index = pd.DatetimeIndex(data=df.index, tz='US/Eastern') # naive--> aware
df.index = pd.DatetimeIndex(df.index.tz_convert('US/Pacific')) # aware--> aware
df
pd.Timestamp('2014-01-23 00:00:00', tz=None).to_pydatetime()
[dt.to_datetime().date() for dt in df.dates]