Created
April 20, 2022 20:01
-
-
Save minhkstn/4b694e78a9895948e77a0946db88c72c to your computer and use it in GitHub Desktop.
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 necessary libraries | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
# get input data | |
df = pd.read_csv('./data.csv') | |
ax = df.plot(x='Year', y='Item 1', | |
kind='bar') | |
ax.set_ylabel("Price (USD)") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment