Description
Returning 0.0 instead of NaN in certain questionnaire functions in Biopsykit when the entries (rows) contain only NaN values, particularly when calculating the sum. For instance, NaN is returned as the value when calculating the mean for a subscale/score.
To Reproduce
Steps to reproduce the behavior:
Use Biopsykit functions that involve sum calculations for subscales/scores.
Provide a dataset with rows containing only NaN values.3.
Calculate the score/subscales
Check NaN rows in returned df
Expected behavior
When calculating the sum for a subscale/score, the function should return NaN if the participant's row contains only NaN values.
Description Returning 0.0 instead of NaN in certain questionnaire functions in Biopsykit when the entries (rows) contain only NaN values, particularly when calculating the sum. For instance, NaN is returned as the value when calculating the mean for a subscale/score.
To Reproduce Steps to reproduce the behavior:
Expected behavior When calculating the sum for a subscale/score, the function should return NaN if the participant's row contains only NaN values.
System Specifications: