产品经理在做数据分析时可能需要通过可视化来分析。seaborn官网
1. relplot 散点图
https://seaborn.pydata.org/examples/scatterplot_sizes.html
import pandas as pd
import seaborn as sns
df = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],'y': [8, 6, 7, 8, 4, 6, 1, 3, 9, 4]
})
sns.relplot(data= df, x='x', y='y')
2. 分类散点图 strip plot
https://seaborn.pydata.org/examples/strip_regplot.html
3. 分类箱线图 boxplot
https://seaborn.pydata.org/examples/grouped_boxplot.html
4. 小提琴图 violinplot
https://seaborn.pydata.org/examples/wide_form_violinplot.html
5. 热力图 heatmap
https://seaborn.pydata.org/examples/spreadsheet_heatmap.html
6. 预览 pairplot
https://seaborn.pydata.org/examples/scatterplot_matrix.html