In this quickstart, we will walk through how to upload a CSV file to Dune via Python.
Save your Dune API key in a .env file.
Follow below steps to upload your CSV. Please make sure to modify paths to your .env file and to your CSV file.
Once the upload is successful, you will see the data show up under Your Data in the Data Explorer.
You can query your uploaded table under the name dune.<team or user handle>.dataset_<table name defined>
. For example, here I defined the table name to be “cereal_table” and my team name is “dune”, so to access the uploaded table we will do select * from dune.dune.dataset_cereal_table
For more information on upload endpoint, please visit this page.
In this quickstart, we will walk through how to upload a CSV file to Dune via Python.
Save your Dune API key in a .env file.
Follow below steps to upload your CSV. Please make sure to modify paths to your .env file and to your CSV file.
Once the upload is successful, you will see the data show up under Your Data in the Data Explorer.
You can query your uploaded table under the name dune.<team or user handle>.dataset_<table name defined>
. For example, here I defined the table name to be “cereal_table” and my team name is “dune”, so to access the uploaded table we will do select * from dune.dune.dataset_cereal_table
For more information on upload endpoint, please visit this page.