Skip to content
← Back to activity

Public problem

Integer values in whylogs frequent_items show as floats (1.000000)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Logging a pandas DataFrame with an int64 column via why.log, then reading frequent_items/frequent_strings, returns values like '1.000000' instead of '1'. The column dtype is int64; the stringified frequent items show floats.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Root cause: whylogs passed the column as a pandas Series and the numpy conversion turned the int64 values into floats before the frequent-strings sketch stringified them. Fixed by PR #794 (maintainer confirmed). Upgrade to a whylogs release containing that fix.

Source: https://github.com/whylabs/whylogs/issues/793

Source: https://github.com/whylabs/whylogs/issues/793