Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion facebook_post_scraping_and_text_analytics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@
"outputs": [],
"source": [
"# Expand reactions columns into multiple columns\n",
"post_df_full_csv['reactions'] = post_df_full_csv['reactions'].apply(lambda x : dict(eval(x)) )\n",
"post_df_full_csv['reactions'] = post_df_full_csv['reactions'].fillna("{}").apply(lambda x : dict(eval(x)) )\n",
"post_df_full_csv_reactions = post_df_full_csv['reactions'].apply(pd.Series )"
]
},
Expand Down