I am trying to strip timezone from the column 'ds'
ds
2023-06-01 00:00:00+00:00
2023-06-01 01:00:00+00:00
2023-06-01 02:00:00+00:00
2023-06-01 03:00:00+00:00
2023-06-01 04:00:00+00:00
Tried the following code :
Usage_df_V2['ds'].astype(str).str[:-6] but it strips off the hours as well:
2023-06-01 00:00:00
2023-06-01 00:00:00
2023-06-01 00:00:00
2023-06-01 00:00:00
2023-06-01 00:00:00
Also tried the tz_convert but it strips of the time
Usage_df_V2['ds'].dt.tz_convert(None)
& get the following:
2023-06-01
2023-06-01
2023-06-01
2023-06-01
2023-06-01
Can someone help ?