我不断收到此错误消息:
TypeError: ttest_1samp() got an unexpected keyword argument 'alternative'
我的代码是:
test_stat, p_value = ttest_1samp(FF['Time'], popmean=40, alternative='greater')
print('the p-value is', p_value)
最佳答案
更新 scipy 版本应该有帮助:
pip install --upgrade scipy
关于python - 类型错误 : ttest_1samp() got an unexpected keyword argument 'alternative' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67205843/