Hi fellow data lovers
I think that TheGraph is a great way to get access and analyse web3 data for data analysts, data scientists, machine learning developers and many other end (data) consumers.
However, when I started to look around I didn’t find many resources for how to get started as a data scientist working with subgraph data. Even in the wider GraphQL context there is a lack of material for getting started as a Python user. This seems to be because:
a) it’s actually really simple to get going
b) in many cases the same person or team bundle the construction and consumption of data
I’ve put together this really simple guide and template for using subgraph data in Python. It includes constructing a query, sending the query, loading the response to a Numpy array, plotting and loading the data to a Pandas dataframe. From that you can basically do anything in the Python realm with the data.
If there is interest I can continue with this guide and show some more examples. For now the first part is available on GitHub.
Link: thegraph-intro/0.1-Intro.ipynb at main · danielzak/thegraph-intro · GitHub
My Twitter for updates: https://twitter.com/danielzak