Sep-19-2019, 01:37 AM
You don't need to iterate over all columns, just do something like this
df.reindex(df.index.tolist() + list(range(20, 40)))
How to add a few empty rows into a pandas dataframe
|
|
Messages In This Thread |
How to add a few empty rows into a pandas dataframe - by python_newbie09 - Sep-18-2019, 07:20 PM
RE: How to add a few empty rows into a pandas dataframe - by scidam - Sep-19-2019, 01:37 AM
RE: How to add a few empty rows into a pandas dataframe - by python_newbie09 - Sep-20-2019, 08:52 AM
|