title: how to compute the average time in python pandas
body: <p>I have a CSV file that has time represented in a format I'm not familiar with:</p>
  
  <p><a href="https://i.stack.imgur.com/8WB2U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8WB2U.png" alt="image"></a></p>
  
  <p>I am trying to compute the average time in all of those rows (efforts shown below).
  Any sort of feedback will be appreciated. </p>
  
  <pre><code>import pandas as pd
  import pandas as np
  from datetime import datetime
  
  
  flyer = pd.read_csv("./myfile.csv",parse_dates = ['timestamp'])
  
  flyer.dropna(axis=0, how='any', thresh=None, subset=None, inplace=True)
  
  pd.set_option('display.max_rows', 20)
  
  flyer['timestamp'] = pd.to_datetime(flyer['timestamp'], 
  infer_datetime_format=True)
  p = flyer.loc[:,'timestamp'].mean()
  
  
  print(flyer['timestamp'].mean())
  </code></pre>