I want to create one dataframe from dataframes that are output from a for loop. Each iteration of the loop produces the variable called result.
result = pd.concat([df1, df2], axis=1)
I want to create one dataframe that is the combination (adjacent to one another) of each result dataframe.
before the loop I created a variable combined_results
combined_results = pd.DataFrame()
And at the end of the loop tried to store each result in that variable, using append, concat etc but cant get it to work.
combined_results = combined_results.append(result)
This appends vertically not horizontally and tried concat as per result, but no luck