Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
10.83k stars 549 forks source link

[BUG] data view throws error when column contains the same number #507

Closed wzherwa closed 3 months ago

wzherwa commented 4 months ago

Describe the bug whenever you load a data with a least one column that contains the same number (doesn't matter if integer or float) - also with one row only (!), it throws the following error: Out of Range Error: cannot take logarithm of zero and does not show the respective data and histograms.

To Reproduce just load any data with only one row OR a column that contains the same number ...

Expected behavior in that case, provide in the statistics only this number (and don't try binning/creating histogram)

Screenshots

image

Versions

Additional context Please fix asap ... this is a very "surprising" bug (!)

longxiaofei commented 4 months ago

@wzherwa

Thanks for your feedback. I reproduced it.

This bug will be reproduced when the data in a certain column is same number, we will fix it as soon as possible.

reason: duckdb execute log10(number)