scipy.stats.binned_统计值错误:太多的值无法解包(应为2)

2024-04-26 09:29:05 发布

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

对于以下各项:

import scipy as sp
from scipy import stats

statistic, bin_edges  = sp.stats.binned_statistic(step_data, EG_data, bins=20)

我得到了一个错误:

statistic, bin_edges = sp.stats.binned_statistic(step_data, EG_data, bins=20)

ValueError: too many values to unpack (expected 2)

然而,输入数组的尺寸似乎是正确的(对吗?)公司名称:

^{pr2}$

有什么解决办法吗?在


Tags: fromimportdatabinasstatsstep错误