January 2020
Beginner to intermediate
372 pages
10h
English
To proceed with the recipe, let's import the libraries and create a toy dataset:
import datetimeimport numpy as npimport pandas as pd
rng_hr = pd.date_range('2019-03-05', periods=20, freq='H')rng_month = pd.date_range('2019-03-05', periods=20, freq='M')df = pd.DataFrame({'date1': rng_hr, 'date2': rng_month}) df.head()
We can see the first five rows of the created variables in the following output:
Read now
Unlock full access