AutoViML / AutoViz

Automatically Visualize any dataset, any size with a single line of code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.
Apache License 2.0
1.71k stars 197 forks source link

AutoViz is recognizing int numbers as categorical vars, not numerical #41

Closed aveusalex closed 3 years ago

aveusalex commented 3 years ago
When plotting charts, me and my team could see that numerical vars was being plotted as categorical vars. This means that an "age" data was being plotted as categories, like it was the same type as "card category" information.
We have dealt with that only transforming the "age" information, that was int64 type, to float numbers, which seemed to have worked and treated correctly as numerical var.
We used this dataset: https://www.kaggle.com/sakshigoyal7/credit-card-customers
AutoViML commented 3 years ago

Yes we treat integers as categories if the number of unique integer values in that column is less than 30. If you want to treat it as a numeric variable, you can change it to float and it will treat it correctly.