简体   繁体   English

Seaborn pairplot 警告不可理解

[英]Seaborn pairplot warning not understandable

I give a small example to make the question clearer:我举一个小例子来使问题更清楚:

import pandas as pd
import seaborn as sns

df = pd.DataFrame(
         [
             [28, 72, 12],
             [28, 17, 25],
             [54, 15, 45],
             [30, 57, 28]
         ],
         columns = ["x", "y", "z"]
    )
cols = list(df.columns)
sns.pairplot(df)

The warning generated is as follows:生成的警告如下:

C:\Users\thaly\anaconda3\lib\site-packages\seaborn\axisgrid.py:1444: 
MatplotlibDeprecationWarning: The join function was deprecated in Matplotlib 3.6
and will be removed two minor releases later.
  group.join(ax, diag_axes[0])

I totally don't understand the information given: group.join(ax, diag_axes[0]) ...我完全不明白给出的信息: group.join(ax, diag_axes[0]) ...

What do you think I should write instead of my simple line: sns.pairplot(df) ?你认为我应该写什么来代替简单的行: sns.pairplot(df) (from which apparently comes the problem) (问题显然来自于此)

As mentioned in the comments, this warning is triggered in an interaction between seaborn and matplotlib and isn't caused (or avoidable) by any user action.如评论中所述,此警告是在 seaborn 和 matplotlib 之间的交互中触发的,并且不是由任何用户操作引起(或可避免)的。

Furthermore, the seaborn v0.12.0 release includes updated code that does not trigger this warning.此外,seaborn v0.12.0 版本包含不会触发此警告的更新代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM