I have a dataframe that looks like the following:
import pandas as pd datelisttemp = pd.date_range(\'1/1/2014\', periods=3, freq=\'D\') s = list(datelisttemp
Try using pivot. You can make it in one line. Eg.
df.pivot(index='start_time', columns='venue_name', values='ocupation')