import pandas as pd import matplotlib.pyplot as plt data = pd.read_csv('/datasets/visits.csv', sep='\t') sample = data.query('id == "3c1e4c52"') data.hist('time_spent', bins=100, range=(0, 1500)) plt.show() sample.hist('time_spent', bins=100, range=(0, 1500)) plt.show()