Pandas Data Frame.

  • pandas.DataFrame is Two-dimensional, size-mutable, potentially heterogeneous tabular data.
  • Data structure also contains labeled axes (rows and columns).
Syntax : -
            class pandas.DataFrame(data=None, index=None, columns=None, dtype=None, copy=None)
    
Example : -
    
            d = {'col1': [9, 2], 'col2': [5, 4]}
            df = pd.DataFrame(data=d)
   
    Output :-    
       col1  col2
    0     9     5
    1     2     4