import matplotlib.pyplot as plt import pandas as pd 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()