boolit

save

Jul 29th, 2020 (edited)
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #save
  2. cols = auto_ML_plot.columns
  3. auto_ML_plot = auto_ML_plot[cols[1:]]
  4. auto_ML_plot.columns = ['MD', output+'_CORR_machine']
  5. auto_ML_plot.reset_index(drop=True, inplace = True)#well_data
  6. well_data.reset_index(drop=True, inplace = True)
  7. data_to_save = pd.concat([well_data[['MD', output, 'DS']], auto_ML_plot[[output+'_CORR_machine']]], axis =1).dropna()
  8. data_to_save.to_excel('well_'+str(well)+'_'+output+'.xlsx')
Add Comment
Please, Sign In to add comment