You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
377 B
Python

import seaborn as sns
import pandas as pd
from matplotlib import pyplot as plt
years = [year for year in range(1950, 2020, 10)]
gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.6, 10289.7, 14958.3]
data = pd.DataFrame(data=gdp, index=years, columns=["gdp"])
sns.set(style="darkgrid")
sns.lineplot(data=data, markers="o")
plt.xlabel("Years")
plt.ylabel("Billions of $")
plt.show()