I run a Python code in vscode. It takes a long time to process and run. After the processing is finished, I would like to get a graph which I did not think about before running the code. In other words, I want to do data processing after running a code. How can I do this? Thanks.
I searched and found a suggestion. I am not sure whether this is the best option or not.
import pickle
with open('training_history.pkl', 'wb') as f:
pickle.dump(history, f)
with open('training_history.pkl', 'rb') as f:
loaded_history = pickle.load(f)
data processingthen first you have to write data in file (txt, csv, excel), in database or eventually in pickle - all depends what data you have. Some data is better to keep in csv because you may process them inExcelor in other tools - not only in Python. Butpickleyou can use only in Python - and often it has to be the same version of Python, and it may need to import code with all structures which you wrote in pickle.