print (df groupby (' 'agg ([sum ,np mean ]) sum mean sum mean plotting the plot method of dataframe makes plots of dataframe using matplotlib different types of plot can be accessed via the kind 'strconstructionwhere str is one of line (default)barhistboxkdeand several more finer controlsuch as modifying the fontis obtained by using matplotlib directly the following code produces the line and box plots in figure import numpy as np import pandas as pd import matplotlib df pd dataframe ('normal ':np random randn ( 'uniform ':np random uniform ( , , }font {'family 'serif ''size #set font matplotlib rc('font '*fontchange font df plot (line plot default df plot(kind 'box 'box plot matplotlib pyplot show (render plots normal uniform normal uniform figure line and box plot using the plot method of dataframe scikit-learn scikit-learn is an open-source machine learning and data science library for python the library includes range of algorithms relating to the in this book it is widely used due to its simplicity and its breadth the module name is sklearn below is brief introduction into modeling the data with sklearn the full documentation can be found at