Skip to content

Instantly share code, notes, and snippets.

@cuongld2
Created February 18, 2021 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuongld2/72012c0ce081c665c144e5b11a872f72 to your computer and use it in GitHub Desktop.
Save cuongld2/72012c0ce081c665c144e5b11a872f72 to your computer and use it in GitHub Desktop.
main.py
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
Year = [2012, 2014, 2016, 2020, 2021, 2022, 2018]
Profit = [80, 75.8, 74, 65, 99.5, 19, 33.6]
data_plot = pd.DataFrame({"Year": Year, "Profit": Profit})
sns.lineplot(x="Year", y="Profit", data=data_plot)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment