Data Science, Product Analytics, Simulation, Deep Dives, Programming.
(processed_requests_df.start_time > current_time)].shape[0] queue_stats.append( { 'time': current_time, 'queue_size': queue_size } ) current_time = current_time + datetime.timedelta(seconds = 300) return pd.DataFrame(queue_stats) Also, let's make a couple of charts and calculate weekly metrics. def