Skip to content

Instantly share code, notes, and snippets.

@minhkstn
Created April 20, 2022 20:01
Show Gist options
  • Save minhkstn/4b694e78a9895948e77a0946db88c72c to your computer and use it in GitHub Desktop.
Save minhkstn/4b694e78a9895948e77a0946db88c72c to your computer and use it in GitHub Desktop.
# 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