Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.

Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
s = pd.Series({'p': 2, 'q': 3, 'r': 4})
s.size
Out[2]:
3

Pandas: DataFrame - series size.

In [3]:
df = pd.DataFrame({'c1': [2, 3], 'c2': [4, 5]})
df.size
Out[3]:
4

Pandas: DataFrame - Dataframe.size.