我在 matplotlilb 中有代码片段,如下所示:
df['coln1'].plot(kind='hist') # This works!
我尝试使用 seaborn API 进行绘制,但我的 Jupyter Notebook 无限挂起。我尝试了以下失败的代码:
sns.barplot(x=df.index, y=df['coln1']) # What is the right way in seaborn?
更新:我的目标是使用 seaborn API 直观地查看给定列的值分布。
非常感谢您的帮助。
斯蒂芬大帝
MM们
相关分类