Data Science, Product Analytics, Simulation, Deep Dives, Programming.
processed_requests_df.creation_time.map( lambda x: x.strftime('%Y-%m-%d %H:00:00') ) processed_requests_df['resolution_time_secs'] = list(map( lambda x, y: int(x.strftime('%s')) - int(y.strftime('%s')), processed_requests_df.finish_time, processed_requests_df.creation_time ))