import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
AH = pd.read_csv('data.csv', header=0, sep=',')
AH['user_id'].hist()
plt.show()
import pandas as pd
import matplotlib.pyplot as plt
data_file = 'gapminder-FiveYearData.csv'
gapminder = pd.read_csv(data_file)
gapminder.head(n=3)
gapminder['lifeExp'].hist(bins=100)
plt.show()
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
x = [21,22,23,4,5,6,77,8,9,10,31,32,33,34,35,36,37,18,49,50,100]
num_bins = 5
n, bins, patches = plt.hist(x, num_bins, facecolor='blue', alpha=0.5)
plt.show()