Seaborn is a Python data visualization library creating elegant visualizations for statistical exploration and insight.
To import seaborn
import seaborn as sns
We can plot bars with sns.barplot()
function. This function takes 3 keywords:
# Load csv
df = pd.read_csv('data.csv')
sns.barplot(
data=df,
x='Year',
y='Population'
)
plt.show()