# 数字特征相互之间的关系可视化 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 14:07:13 浏览: 147
微信小程序开发-比较数字大小-知识点讲解.pptx
修复后的代码如下:
```
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。
阅读全文