oinowe / intro-data-capstone-biodiversity

0 stars 0 forks source link

Unused variables #4

Open sen1 opened 6 years ago

sen1 commented 6 years ago

https://github.com/oinowe/intro-data-capstone-biodiversity/blob/e67d428057243c2783b777d1fc1e2fd9fc19b5fc/biodiversity_capstone/biodiversity.py#L125

Good job here. However, there are some unused variables. All of them are important but the one we are most interested in is the p-value. So I could replace others with _. It is a special character in python. Read more here: https://hackernoon.com/understanding-the-underscore-of-python-309d1a029edc

 _, pval, _, _ = chi2_contingency(contingency) 
oinowe commented 6 years ago

To be honest, I did not know about this special character!, thanks a lot!