Skip to main content
The Alphacast Python SDK loads datasets into pandas. The app can write the code for the dataset you are viewing.

Copy code from a dataset

1

Open the dataset

Apply any filters for columns, entities or dates. The code includes them.
2

Copy the code

Click Download. Under Connect data, open Python and copy the code.
3

Run it

Paste it in a notebook. The first line, !pip install alphacast, uses notebook syntax. In a script, remove that line and run pip install alphacast in your terminal.
Use this data panel with the Python code

Write it yourself

Keep your API key out of your code. This example reads it from an environment variable.
To get your key, see account settings.
The code that you copy from the app contains your API key. Remove it before you share a notebook or commit code.

Access and limits

Your plan and repository permissions determine which data you get and how much you can download.

Next steps

Python quickstart

Create, upload and download a dataset.

Download data

Filter by date, entity and column.

Search

Find datasets from code.

Upload data

Send DataFrames to Alphacast.