Advanced Data Visualization
Seaborn is a Python library for creating beautiful and statistical data visualizations.
pip install seaborn
import seaborn as sns import matplotlib.pyplot as plt
data = sns.load_dataset("tips")
print(data.head())
sns.scatterplot(x="total_bill", y="tip", data=data) plt.show()
sns.barplot(x="day", y="total_bill", data=data) plt.show()
sns.histplot(data["total_bill"]) plt.show()
corr = data.corr() sns.heatmap(corr, annot=True) plt.show()
sns.set_style("darkgrid")