document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import datetime
  2. import pandas as pd
  3. import math
  4. import matplotlib.pyplot as plt
  5. relevant = pd.io.parsers.read_csv(\'http://hasan.d8u.us/links.py.cgi?format=csv\')
  6. bins = math.floor(len(relevant)/50)
  7. plt.hist([int(datetime.datetime.fromtimestamp(t).strftime(\'%H\'))+1 for t in relevant[\'Timestamp\']], bins=bins, histtype=\'stepfilled\', range=[1,24])
  8. plt.xlabel(\'Hour of Day\')
  9. plt.title(\'What hour were links sent out?\')
  10. plt.show()
');