Skip to content

Improve dataframe sorting in KTNB UI by handling non-comparable columns #836

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

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

ermolenkodev
Copy link
Contributor

Fixes #822

Enhanced the sorting function to handle columns with non-comparable types by converting them to their string representation.
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done! A good number of tests too :). Aside from my note about isComparable it looks good to me

Refactored `isComparable` check to use the `isComparable` extension function directly on the column. Added test case for sorting columns containing mixed data types of strings and integers to ensure correct functionality. Removed redundant KType extension method `isComparable`.
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the extra test :)

@ermolenkodev ermolenkodev merged commit b95b767 into master Aug 23, 2024
5 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.

DataFrame.describe() Sortable by Type
2 participants