Skip to content

Instantly share code, notes, and snippets.

@JarrydWannenburg
Last active August 17, 2022 20:12
Show Gist options
  • Save JarrydWannenburg/a1da992f360259c24385ba380d541781 to your computer and use it in GitHub Desktop.
Save JarrydWannenburg/a1da992f360259c24385ba380d541781 to your computer and use it in GitHub Desktop.
Easiest_python_visualization
import altair as alt
import pandas as pd
source = pd.DataFrame({
'Language': ['Python', 'C++', 'Java', 'Perl', 'Scala', 'Lisp'],
'Usage': [10,8,6,4,2,1]
})
alt.Chart(source, title = "Programming language usage").mark_bar().encode(
x=alt.X('Language', sort='-y'),
y='Usage'
).properties(width=500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment