df_starts = df.pivot('start_time', 'user', 'event').fillna(0).resample('1S'
    ).min().fillna(0)
df_stops = df.pivot('end_time', 'user', 'event').fillna(0).resample('1S').min(
    ).fillna(0)
How can I represent the information in this DataFrame as a time series?