Skip to content

Instantly share code, notes, and snippets.

@cuongld2

cuongld2/main.py

Created Feb 18, 2021
Embed
What would you like to do?
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