In [1]:
import numpy as np
import pandas as pd
%matplotlib inline
In [2]:
df = pd.DataFrame({'year': [2015, 2016],
'month': [2, 3],
'day': [4, 5]})
In [3]:
df
Out[3]:
In [5]:
timestamp = pd.to_datetime(df)
In [6]:
timestamp
Out[6]: