为什么在分组分析运行示例程序是,不显示图
import pandas as pd
import numpy as np
import scipy.stats as ss
import matplotlib.pyplot as plt
import seaborn as sns
df=pd.read_csv(“D:/pythona/show/HR.csv”)
df=df.dropna(axis=0,how=“any”)
df=df[df[“last_evaluation”]<1][df[“salary”]!=“nme”][df[“department”]!=“sale”]
“”"
sns.barplot(x=“salary”,y=“left”,hue=“department”,data=df)
“”"
sl_s=df[“satisfaction_level”]
sns.barplot(list(range(len(sl_s))),sl_s.sort_values())
plt.show()