user
How to create a dataframe of a given size?
alphonsio

The following code creates an empty dataframe with a given size (nRows x nCols) in Python / Pandas:

import pandas as pd
df = pd.DataFrame(index=range(nRows),columns=range(nCols))