我有一个大熊猫数据帧(15列,770行),称为no\u autocorr,我想在seaborn pair图上绘制所有变量。以下是我的变量的.d类型:
no_autocorr.dtypes
Year object
Month object
State object
Primary Mode object
Illnesses int64
Outbreak ID object
Strain object
Density (Pop./ mi2) int64
Landarea(mi2) int64
HDI (2017)[note 1] float64
Average High (F) int64
Length of Genome float64
%GC float64
tRNA Genes int64
%Protein Coding float64
dtype: object
当我跑的时候
import matplotlib.pyplot as plt
import seaborn as sns
sns.pairplot(no_autocorr, height=2.5, aspect=1)
我得到一个错误:
ValueError: color kwarg must have one color per data set. 770 data sets and 1 colors were provided
出现一个空的配对图。我不明白为什么会出现这个错误,因为我没有指定任何颜色参数。我的数据帧有问题吗?我是否需要不断调整高度/纵横比以显示数据?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐