Data Definition

Learn about the supported data sources and how to generate data in Altair.

Introducing data

Data is the foundation of every data story. It is the raw material that data storytellers use to build their narratives. Without data, there would be no stories to tell. Data can take many forms, from numbers and statistics to text and images. Whatever the form, we use data to answer questions and uncover patterns.

Data stories often start with a question, such as what does this data mean? Data stories can be about anything, from world events to personal experiences. The important thing is that they are based on facts and evidence. Data stories help us understand the world around us and make sense of complex information.

Data sources

Altair supports the following data sources:

  • pandas DataFrames

  • Altair native data objects

  • URLs

  • Geographical objects

The pandas DataFrame

The Altair Chart object can receive a pandas DataFrame as an input data source:

Get hands-on with 1400+ tech skills courses.