Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save firstfu/decfa33ac79e74ca353d503ca84f5106 to your computer and use it in GitHub Desktop.
Save firstfu/decfa33ac79e74ca353d503ca84f5106 to your computer and use it in GitHub Desktop.
from scipy import stats
# 常態分佈檢定
staRs = stats.shapiro(df2["正面統計"])
if staRs[1] > 0.05:
print('為常態分佈')
else:
print('不為常態分佈')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment