Data Visualizations
Dataviz library
Pandas-Profiling
Sweetviz
Autoviz
D-Tale
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
To generate box plot with solid background color
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
1510
PERSISTENT
2023-04-25
2023-06-09
4448.000000
4860.000000
2.0
7 days
824.0
367
BEL
2020-05-28
2020-07-29
21.390625
29.890625
467.0
16 days
3969.5
1593
POONAWALLA
2022-06-10
2022-06-13
247.750000
230.625000
40.0
29 days
-685.0
493
CIPLA
2021-11-24
2021-11-25
882.000000
888.500000
11.0
2 days
71.5
65
ADANIENT
2022-05-31
2022-06-01
2166.000000
2148.000000
4.0
5 days
-72.0
Plot Line equation using matplotlib
Crosstab Plotly subplot
Polar Plot
Usage
Seasonal Decomposition using Plotly
Last updated