Skip to content

Instantly share code, notes, and snippets.

@pranjalAI
Created July 23, 2021 09:27
Show Gist options
  • Save pranjalAI/383476f29cc9207e0acb11856818d0a4 to your computer and use it in GitHub Desktop.
Save pranjalAI/383476f29cc9207e0acb11856818d0a4 to your computer and use it in GitHub Desktop.
import altair as alt
from vega_datasets import data
iris = data.iris()
# Making the Scatter Plot with altair
alt.Chart(iris).mark_point().encode(
# defining x-axis
x='sepalLength',
# defining y-axis
y='petalLength',
# defining shape
shape='species'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment