×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: dan darm
Added: Apr 20, 2021 10:39 PM
Views: 3985
Tags: no tags
  1. # Read
  2. with open('filename', 'rb') as f:
  3.     x = pickle.load(f)
  4.  
  5. # Write
  6. with open('filename', 'a') as f:
  7.         pickle.dump(data, f)
  8.  
  9.  
  10.  
  11. # With Pandas
  12.  
  13. og = pd.read_pickle(r'strategy_GodStra_hyperopt_results_2021-04-20_23-22-51.pickle')
  14.  
  15.  
  16.