Created
May 19, 2022 13:34
-
-
Save tomasonjo/019cc6886c8d73438cc5da9e9f326402 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
# Get user ids | |
graph_features['user_id'] = [el.get('guid') for el in graph_features['node_object']] | |
# Merge to original df | |
df = df.merge(graph_features[['user_id', 'componentSize', 'part_of_community', 'pagerank', 'closeness']], on='user_id') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment