Created
February 9, 2021 23:56
-
-
Save cj2001/ffaff0ceb514f6863c69941239511449 to your computer and use it in GitHub Desktop.
Query arXiv data in Neo4j
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
query_string = ''' | |
MATCH (c:Category) | |
RETURN c.category_name, SIZE(()-[:IN_CATEGORY]->(c)) AS inDegree | |
ORDER BY inDegree DESC LIMIT 20 | |
''' | |
top_cat_df = pd.DataFrame([dict(_) for _ in conn.query(query_string)]) | |
top_cat_df.head(20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment