In [2]:
df
Out[2]:
foo bar baz qux
0 one A 1 u
1 one B 2 v
2 one C 3 w
3 two A 4 x
4 two B 5 y
5 two C 6 z

The dimensions of the dataset.

In [3]:
df.shape
Out[3]:
(6, 4)

The number of rows in the DataFrame.

In [4]:
len(df)
Out[4]:
6

The number of rows times number of columns.

In [5]:
df.size
Out[5]:
24

Number of dimensions of the dataset.

In [6]:
df.ndim
Out[6]:
2