Created
December 31, 2022 18:51
-
-
Save minhkstn/7cd8abf61751bd6ca720c052e296386f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 pandas as pd | |
import matplotlib.pyplot as plt | |
# get input data | |
df = pd.read_csv('./gdp_capita.csv') | |
ax = df.plot.bar(x='Year') | |
ax.set_ylabel('GDP/capita (USD)') | |
plt.tight_layout() | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment