Below is the code I did in Pandas, but I need to do it in Dask.
df['converted'] = (df['timestamp'] - pd.Timestamp("1960-02-02").tz_localize(tz=df['timestamp][0].tz)) / pd.Timedelta('5s')
Here is the data frame df:
timestamp
2016-01-11 12:33:28.616000+00:00
2016-01-11 12:34:46.447000+00:00
2016-01-12 09:32:11.954000+00:00
2016-01-12 09:32:11.983000+00:00
2016-01-12 09:32:11.993000+00:00
I have no idea how to convert this because some functions are not available in DASK. All I can find is: https://docs.dask.org/en/stable/generated/dask.dataframe.to_datetime.html#to-datetime-tz-examples
Could you help me how can I do this in DASK?