Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import pandas as pd
  2. import matplotlib.pyplot as plt
  3.  
  4. data = pd.read_csv("/datasets/visits.csv", sep="\t")
  5. sample = data.query('id == "3c1e4c52"')
  6. data.hist('time_spent',bins = 100, range = (0,1500))
  7. plt.show()
  8. sample.hist('time_spent',bins = 100, range = (0,1500))
  9. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement