Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

pickle_wrapper.py 289 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. import pickle
  2. def unpickle(path):
  3. with open(path, 'rb') as fp:
  4. result = pickle.load(fp)
  5. # print("Unpickled 1st element for '{}' is {}\n".format(path, result[0]))
  6. return result
  7. def pickle_it(x, path):
  8. with open(path, 'wb') as fp:
  9. pickle.dump(x, fp)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...