[英]TypeError: ttest_1samp() got an unexpected keyword argument 'alternative'
我不斷收到此錯誤消息:
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.