0

I am facing silly error with my append operation: suppose I have about 600 separate dataframes of shape (6,10) and I want to concatenate them in one big dataframe with append() in a for loop. Doing this for the first 100 df works just fine but it generates the following error once I reach 300 dataframes:

"Reindexing only valid with uniquely valued Index objects"

here is the code snippet:

for i in range(400):
## Do some processing
temp =  pd.concat([temp,ts.iloc[:,1]], axis=1)
df_pred_ult = df_pred_ult.append(temp)

So , my question, doesn't append() work well for a huge number of df? Is there a better way to do so...

Galileo
  • 321
  • 1
  • 4
  • 12

0 Answers0