reneshbedre / bioinfokit

Bioinformatics data analysis and visualization toolkit
MIT License
333 stars 77 forks source link

Limit dropna to named variables in ttest #40

Closed JILPulvino closed 2 years ago

JILPulvino commented 2 years ago

rows are only dropped if they are nan for a named variable, either res or xfac, in the ttest function. This ensures that rows with data in res and xfac are not dropped simply because of nan in other variables. This aligns output with ttest functions in scipy and statsmodels.

reneshbedre commented 2 years ago

@JILPulvino

Thank you. I will check this and pull the changes.