Solution: Visualizing Seaborn Datasets
This lesson gives a detailed review of the solutions to the challenges in the previous lesson.
We'll cover the following...
Heatmap solution #
Press + to interact
import pandas as pdimport seaborn as snsdf = sns.load_dataset('flights') # Reading flights dataset from seaborn package# Reshaping the DataFramedf = pd.pivot_table(df, values = 'passengers', index = ['month'], columns = 'year')# Plotting the heatmapsns.heatmap(df, annot = True, fmt = '')
The above problem plots ...
Access this course and 1400+ top-rated courses and projects.