Data visualizations
Data visualization libraries
Pandas-Profiling
Sweetviz
Autoviz
D-Tale
Subplot syntax
Plot three by two 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();Use a single line for subplots
Generate a box plot with a solid background color:
Add a pie chart to a subplot
Load the top n values in a Seaborn count plot
Plot a Gantt chart with 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 a line equation with Matplotlib
Crosstab Plotly subplot
Polar plot
Usage:
Seasonal decomposition with Plotly
Last updated