Skip to content

fix tablereport error in histogram when data range is very narrow#2189

Open
jeromedockes wants to merge 6 commits into
skrub-data:mainfrom
jeromedockes:fix-tablereport-narrow-range
Open

fix tablereport error in histogram when data range is very narrow#2189
jeromedockes wants to merge 6 commits into
skrub-data:mainfrom
jeromedockes:fix-tablereport-narrow-range

Conversation

@jeromedockes

@jeromedockes jeromedockes commented Jun 25, 2026

Copy link
Copy Markdown
Member

we can get an error in matplotlib / numpy histogram if the column is not constant but the data range does not contain enough representable floating numbers for the default number of bins

for example it would fail on a column like this

    low = np.float32(10.0)
    high = np.nextafter(low, 11.0)
    data = pd.Series([low, high])

@jeromedockes jeromedockes added bug Something isn't working TableReport anything related to the TableReport labels Jun 25, 2026
@jeromedockes jeromedockes added this to the Release 0.10 milestone Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working TableReport anything related to the TableReport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant