# 数字特征相互之间的关系可视化 sns.set() columns = ['price', 'v_12', 'v_8', 'v_0', 'power', 'v_5', 'v_2', 'v_6', 'v_1', 'v_14'] sns.pairplot(Test_data[columns], size=2, kind='scatter', diag_kind='kde') plt.show() # 数字特征相互之间的关系可视化 sns.set() columns = ['price', 'v_12', 'v_8', 'v_0', 'power', 'v_5', 'v_2', 'v_6', 'v_1', 'v_14'] sns.pairplot(Test_data[columns], size=2, kind='scatter', diag_kind='kde') plt.show()UserWarning: The size parameter has been renamed to height; please update your code. warnings.warn(msg, UserWarning)给出修复后的代码
时间: 2023-08-30 09:07:13 浏览: 150
columns_v1.2_weidea.net_BootstrapWordpress前端源码模板_网站UI界面主题.zip
修复后的代码如下:
```
import seaborn as sns
import matplotlib.pyplot as plt
sns.set()
columns = ['price', 'v_12', 'v_8', 'v_0', 'power', 'v_5', 'v_2', 'v_6', 'v_1', 'v_14']
sns.pairplot(Test_data[columns], height=2, kind='scatter', diag_kind='kde')
plt.show()
```
修复方法是将`size`参数改为`height`,并将其值设置为2。
阅读全文