Created
May 25, 2022 15:52
-
-
Save tomasonjo/1beab0c6b4c040b25041833e2ea37cec 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
# Retrieve node objects from the database | |
graph_features['node_object'] = gds.util.asNodes(graph_features['nodeId'].to_list()) | |
# Filter only user nodes | |
graph_features = graph_features[[list(x.labels)[0] == 'User' for x in graph_features['node_object']]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment