afghan_forecast / visual_pbi.py
Kimosh's picture
changed final to csv
0d08368
raw
history blame
377 Bytes
import pandas as pd
merged_df = pd.read_csv('data/afghan_wheatfcasts.csv', parse_dates = ['Date'])
df_backtest_ = pd.read_csv('data/aghanwheat_allhistorical.csv', parse_dates=['Date'])
# df_backtest_.rename(columns={'date':"Date"},inplace=True)
final_wheat = pd.merge(df_backtest_,merged_df,on=['Date'],how='outer')
final_wheat.to_csv('data/final_afgh_wheat.csv',index=False)