January 2020
Beginner to intermediate
372 pages
10h
English
To proceed with the recipe, let's import pandas and then create a toy dataframe with two variables, each one containing a date and time in different time zones:
import pandas as pd
df = pd.DataFrame()df['time1'] = pd.concat([ pd.Series( pd.date_range( start='2015-06-10 09:00', freq='H', periods=3, tz='Europe/Berlin')), pd.Series( pd.date_range( start='2015-09-10 09:00', freq='H', periods=3, tz='US/Central')) ], axis=0)
df['time2'] = pd.concat([ pd.Series( pd.date_range( ...
Read now
Unlock full access