79796239

Date: 2025-10-21 21:17:30
Score: 0.5
Natty:
Report link

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))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Matias Bertani