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

Make _assimilate_histogram() not use self (alternative) #1073

Conversation

junholee6a
Copy link
Contributor

NOTE: This is an alternative for PR #1071. If this is merged, then close PR #1071

Issue: #820

This is a necessary step to resolving issue #820. Previously, _assimilate_histogram() called self to decide whether the given histogram contained integers or floats, and rounded the bins for histograms that only contained integers.

However, that rounding seems unnecessary. Here, we remove that rounding code entirely and modify the one test that fails, TestTextColumnProfiler.test_profile(). To make sure the test is still valid, here are its values:

The data in the profile of that test is:
data

The old expected histogram is:
old_histogram

And the new expected histogram is:
new_histogram

@junholee6a junholee6a requested a review from a team as a code owner November 21, 2023 20:13
@junholee6a junholee6a changed the title Make _assimilate_histogram not use self (alternative) Make _assimilate_histogram() not use self (alternative) Nov 21, 2023
@junholee6a junholee6a changed the base branch from main to dev November 21, 2023 20:15
@taylorfturner
Copy link
Contributor

Taking a gander at these today -- thanks for the patience, @junholee6a!

@taylorfturner
Copy link
Contributor

Sticking with 1071 for this changed. Closing 1073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants