Created
June 28, 2022 09:46
-
-
Save tomasonjo/b084db3ea8a2d09691dd80e7296503c4 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
merged_df = pivot_features_df.merge(kmeans_df, on="nodeId") | |
merged_df.drop("nodeId", axis=1).groupby("communityId").size().to_frame( | |
"communitySize" | |
).reset_index() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment