Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame({'c1': [2, 3], 'c2': [4, 5]})
df.shape
Out[2]:
(2, 2)
In [3]:
df = pd.DataFrame({'c1': [2, 3], 'c2': [4, 5],
                   'c3': [6, 7]})
df.shape
Out[3]:
(2, 3)