Skip to content

Instantly share code, notes, and snippets.

View manukalia's full-sized avatar

Manu Kalia manukalia

View GitHub Profile
@manukalia
manukalia / pickle_template.txt
Last active June 20, 2021 10:02
Pickle Dump and Pickle Load Syntax and Example
import pickle
# TO SAVE ANY OBJECT (source_object_name) AS A PICKLE FILE...
with open('../directory_name/source_object_name.pkl', 'wb') as f:
pickle.dump(object_name, f)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.