Working with the whole DataFrame import numpy as np import matplotlib.pyplot as plt import pandas as pd from pandas import DataFrame,Series df= pd.DataFrame ( [ [4,7,10,20,30], [5,8,11,33,34], [6,9,12,23,12],[4,7,10,20,30], [4,7,10,20,30], [4,7,10,20,30]], index=[1,2,3,4,5,6],columns=[' a','b','c','d','e ']) print(' dataframe \ n’,df ) print('information about dataframe \n’, df.info()) dataframe a b c d e 1 4 7 10 20 30 2 5 8 11 33 34 3 6 9 12 23 12 4 4 7 10 20 30 5 4 7 10 20 30 4 7 10 20 30 information about dataframe <class ' pandas.core.frame.DataFrame '> Int64Index: 6 entries, 1 to 6 Data columns (total 5 columns): a 6 non-null int64 b 6 non-null int64 c 6 non-null int64 d 6 non-null int64 e 6 non-null int64 dtypes : int64(5) memory usage: 288.0 bytes None