UserWarning: Converting to Period representation will drop timezone information. code example Example: dataframe time index convert tz naive to tz aware df.index.tz_localize("Europe/Paris")