我有一个数据集。帮助使用seaborn或matplotlib以2 x 3绘图图形的形式方便地显示sns.lmplot
等图形。我尝试了,但它们显示在一列中。我试过,但没用。所有表格均包含“SalePrice”变量的相关性
fig, ax = plt.subplots(4, len(qualitative)/4,figsize=(4*len(qualitative), 4))
sns.lmplot(trainInt, y_vars = ["SalePrice"], x_vars = ('MSSubClass', 'LotFrontage', 'LotArea',
'OverallQual', 'OverallCond', 'YearBuilt'))
有这样一个数据表
trainInt
-这是一个熊猫表
MSSubClass地块临街总质量总第二年建筑销售价格
10 23 6. 43 8. 十二,
12 20 2. 46 8. 十九,
11 31 3. 13 8. 二十四
您应该在两行三列中获得六个依赖关系图sns.lmplot
:
销售价格 \|\____ 销售价格 我------ 销售价格 我------我
MSSubClass 临街 综合素质
销售价格 \|\I 销售价格 我---\--- 销售价格 我——我——|
总毫秒 年建 销售价格
SalePrice
必须保持为一列,以针对自身进行绘图,并位于索引中,这可以通过使用^{drop=False
来完成col
和col_wrap
参数使用^{ci=95
(回归估计的置信区间)李>决定这样做。刚刚出现的图表类型)
相关问题 更多 >
编程相关推荐