There is not such method in pandas, but you could create the DataFrame in one line lika this
import pandas as pd nRow = 10 nCol = 4 df = pd.DataFrame(1, index=range(rows), columns=range(cols))