Skip to content

Fix : Silent data corruption in load_centiles due to unassigned pandas sort#397

Merged
contsili merged 1 commit intoamarquand:devfrom
divye-joshi:fix-load-centiles
Mar 17, 2026
Merged

Fix : Silent data corruption in load_centiles due to unassigned pandas sort#397
contsili merged 1 commit intoamarquand:devfrom
divye-joshi:fix-load-centiles

Conversation

@divye-joshi
Copy link

In response to issue #396

I have added a simple fix by making the sorted dataframe actually reflect. This makes the previously ineffective line now effective.
This fix has been verified by me.

This can also be verified by doing the change inside the Colab notebook I gave (it installs an editable version of pcntoolkit). After making the change, please restart the notebook, and the bug should not happen.

fixed load centiles
@contsili
Copy link
Collaborator

thanks!

@contsili contsili merged commit 8947c8f into amarquand:dev Mar 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants