I created timeseries predictions and now would like to append to my original dataframe but on one column instead I'm getting two. I presume it might be down to columns names on both dfs i.e. on original called 'df2_val' column with data is called 'value'. On predictions one called 'weighted_average_pred' there is no column name it only displays '0' on the label. Once I have actual and predictions in one column I'd like to also add column with dates.
df2_val > records from 0 to 49 weighted_average_pred > records from 50 to 57
Code:
weighted_average_pred.columns=['value'] # > didn't work, still see column label as '0'
final_df = pd.concat([df2_val, weighted_average_pred], axis=1)