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 numpy as npimport pandas as pd
rng_ = pd.date_range('2019-03-05', periods=20, freq='1h15min10s')df = pd.DataFrame({'date': rng_}) df.head()
In the following screenshot, we can see the variable we just created, with a date and a time part, and the values increasing by intervals of 1 hour, 15 minutes, and 10 seconds:
Read now
Unlock full access