Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

questionnaire functions return 0.0 when row entries are NaN --> should return NaN #48

Open
victoria1509 opened this issue Jul 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@victoria1509
Copy link
Collaborator

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:

  1. Use Biopsykit functions that involve sum calculations for subscales/scores.
  2. Provide a dataset with rows containing only NaN values.3.
  3. Calculate the score/subscales
  4. 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.

System Specifications:

  • Operating System: macOS
  • BioPsyKit version: 0.9.0
  • Python version: 3.9
@victoria1509 victoria1509 added the bug Something isn't working label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant