Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Created June 21, 2020 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamletbatista/867ac3ed01e3a841b48dbeb7c06f074d to your computer and use it in GitHub Desktop.
Save hamletbatista/867ac3ed01e3a841b48dbeb7c06f074d to your computer and use it in GitHub Desktop.
#df should be pandas data frame with columns link and theme
import pickle
with open("theme_links.pkl", "wb") as f:
#Saving data frame as list of dicts
pickle.dump(df.set_index("link").to_dict(orient="index"), f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment