Konwertuj datę na datę pandy
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
Cruel Cockroach
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
# Changing object type column to datetime
df['date_col'] = pd.to_datetime(df.date_col)
# Creating new column with just the date
df['new_date_col'] = df['date_col'].dt.date
df['date_column'] = pd.to_datetime(df['datetime_column']).dt.date
df['date_only'] = df['date_time_column'].dt.date
# convert the 'Date' column to datetime format
df['Date']= pd.to_datetime(df['Date'])
# Check the format of 'Date' column
df.info()
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