I have an empty dataframe of 14 rows with nan values created as below:
dfs_empty_rows = pd.DataFrame(data=[[np.nan] * len(interm_df.columns)] * 14, columns=[np.nan] * len(interm_df.columns))
I want to concat interm_df, which was values with dfs_empty_rows so that the forst 14 rows are blank in the new dataframe. I am trying to concat using:
pd.concat([dfs_empty_rows,df], axis=0, ignore_index=True)
But this is giving an error :
InvalidIndexError: Reindexing only valid with uniquely valued Index objects
How can i concat an empty df with another df with values.
Output should be concat of empty df with values df in order.