Created
February 18, 2021 09:41
-
-
Save cuongld2/72012c0ce081c665c144e5b11a872f72 to your computer and use it in GitHub Desktop.
main.py
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 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