In [12]:
import pandas as pd
pd.DataFrame([1,2])

df = pd.read_csv('https://web.stanford.edu/class/archive/cs/cs109/cs109.1166/stuff/titanic.csv')

df
Out[12]:
Survived Pclass Name Sex Age Siblings/Spouses Aboard Parents/Children Aboard Fare
0 0 3 Mr. Owen Harris Braund male 22.0 1 0 7.2500
1 1 1 Mrs. John Bradley (Florence Briggs Thayer) Cum... female 38.0 1 0 71.2833
2 1 3 Miss. Laina Heikkinen female 26.0 0 0 7.9250
3 1 1 Mrs. Jacques Heath (Lily May Peel) Futrelle female 35.0 1 0 53.1000
4 0 3 Mr. William Henry Allen male 35.0 0 0 8.0500
... ... ... ... ... ... ... ... ...
882 0 2 Rev. Juozas Montvila male 27.0 0 0 13.0000
883 1 1 Miss. Margaret Edith Graham female 19.0 0 0 30.0000
884 0 3 Miss. Catherine Helen Johnston female 7.0 1 2 23.4500
885 1 1 Mr. Karl Howell Behr male 26.0 0 0 30.0000
886 0 3 Mr. Patrick Dooley male 32.0 0 0 7.7500

887 rows × 8 columns

In [24]:
%matplotlib inline

df.hist(column='Age', bins=10)
Out[24]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x11fbd62d0>]],
      dtype=object)
In [ ]: