Last active
August 17, 2022 20:12
-
-
Save JarrydWannenburg/a1da992f360259c24385ba380d541781 to your computer and use it in GitHub Desktop.
Easiest_python_visualization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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