西伯恩的小提琴情节不能被套牢?

2024-04-26 12:29:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下数据集:

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

test_data = pd.read_csv('./data.csv',index_col = 0,header = 0)

enter image description here

我想探索我的数据。我可以使用for循环连续绘制多个散点图:

^{pr2}$

enter image description here

但是,如果我切换到Seaborn的Violinplot(或者像boxplot这样的分类类型的图),我似乎无法完成这个任务:

^{3}$

enter image description here

为什么绘制violinplots(或范畴图)不能在for循环中工作?在


Tags: csv数据testimportpandasfordatamatplotlib