BoxPlot 图没有显示(刚得到 <AxesSubplot:>)
BoxPlot figure is not showing( just getting <AxesSubplot:>)
我已经有了 Tkinter(有人说要安装一个 tkinter)
使用的代码:
进口是:
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
如果您想查看数据集,那么它是:
df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/diabetes.csv")
用于在 jupyter notebook 中绘制箱线图的代码
fig, ax = plt.subplots(figsize = (20,20))
sns.boxplot(data = df,ax = ax)
)
我应该在我的导入中添加
%matplotlib inline
我已经有了 Tkinter(有人说要安装一个 tkinter)
使用的代码:
进口是:
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
如果您想查看数据集,那么它是:
df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/diabetes.csv")
用于在 jupyter notebook 中绘制箱线图的代码
fig, ax = plt.subplots(figsize = (20,20))
sns.boxplot(data = df,ax = ax)
我应该在我的导入中添加
%matplotlib inline