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

How to sort alphabetical order in attribute showing unique data of each column #2

Closed
j00n162 opened this issue Feb 1, 2020 · 0 comments

Comments

@j00n162
Copy link

j00n162 commented Feb 1, 2020

Hello,

While I was looking at the code that the author created, I had a curious if there is a way to sort the attribute showing unique data of each column in alphabetical order when the csv format converted to arff format. For example, in @Attribute 'Group', it shows {'h','f','b','a','c','d','e','g'}. But, I am wondering how I can make it show as {'a','b','c','d','e','f','g','h'}.

I've tried sort() function in the code, but it did not work and was confused about where to put it.
Please help me to solve this issue.

Thank you!

@j00n162 j00n162 closed this as completed Feb 2, 2020
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

No branches or pull requests

1 participant