我试着应用Scipy的 Alexandria ·戈文测试:
import pandas as pd
import scipy.stats
df1 = pd.read_csv(r'Data1.tsv', sep='\t', encoding='utf-8')
df2 = pd.read_csv(r'Data2.tsv', sep='\t', encoding='utf-8')
from scipy.stats import alexandergovern
alexandergovernTest = alexandergovern(df1.iloc[2:,:135], df2.iloc[2:,:134])
print(alexandergovernTest)
出现以下错误:
Traceback (most recent call last):
File "calculate_onewayANOVA.py", line 41, in <module>
from scipy.stats import alexandergovern
ImportError: cannot import name 'alexandergovern'
1条答案
按热度按时间f87krz0w1#
在Ubuntu 20中升级到python3.8并安装scipy==1.7.3后,此错误得到解决,如@Nelewout和@WarrenWeckesser所示