Data Visualizations
Dataviz library
Subplot syntax
To plot 3 x 2 plots
variables = ["Age", "Education", "Usage", "Fitness", "Income", "Miles"]
fig, axes = plt.subplots(2, 3, figsize=(20, 12))
for i in range(2):
for j in range(3):
variable = variables[i * 3 + j]
sns.boxplot(ax=axes[i, j], data=df, x="Product", y=variable, hue="Gender")
axes[i, j].set_title(f"Gender wise {variable} vs Product")
plt.show();Subplots using single line
Add a Pie chart inside the subplot
Load top n values in seaborn countplot
Plot a Gantt Chart using Plotly
symbol
buy_date
sell_date
buy_price
sell_price
quantity
days_diff
profit
Plot Line equation using matplotlib
Crosstab Plotly subplot
Polar Plot
Seasonal Decomposition using Plotly
Last updated