Skip to content

Instantly share code, notes, and snippets.

@tomasonjo
Created May 25, 2022 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasonjo/2ab3b01df049a235dd2f239ae5ad8afa to your computer and use it in GitHub Desktop.
Save tomasonjo/2ab3b01df049a235dd2f239ae5ad8afa to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [10, 6]
import seaborn as sns
time = gds.run_cypher("""
MATCH p=()-[r:P2P]->()
RETURN r.transactionDateTime.year AS year, count(*) AS countOfTransactions
ORDER BY year
""")
sns.barplot(x="year", y="countOfTransactions", data=time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment