【问题标题】:Seaborn Jointplot error: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecatedSeaborn Jointplot 错误:FutureWarning:不推荐使用非元组序列进行多维索引
【发布时间】:2019-04-14 18:40:59
【问题描述】:

我正在尝试为以下客户数据数据框创建一个 JointPlot。我需要 Jointplot 在 Y 轴上显示每年花费的金额,在 X 轴上显示在 App 上花费的时间。

Dataframe 看起来像这样

我使用以下方法创建联合图,但得到以下错误。

我期待以下联合图(而不是错误)感谢您在解决此问题方面的帮助!

【问题讨论】:

标签: python dataframe plot runtime-error seaborn


【解决方案1】:

感谢 ImportanceOfBeignEarnest 您在评论中发布的答案。

这是一个疏忽 - 我忘记了 %matplotlib inline

现在包含在顶部的是:

import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline

警告仍然出现,但情节现在出现了。

【讨论】:

    猜你喜欢
    • 2021-05-29
    • 2019-03-06
    • 2019-03-19
    • 2019-02-06
    • 2021-03-02
    • 2019-08-24
    • 2018-09-15
    • 2019-10-27
    • 2019-02-07
    相关资源
    最近更新 更多