Created
June 21, 2020 19:41
-
-
Save hamletbatista/867ac3ed01e3a841b48dbeb7c06f074d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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