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

Encode int column #780

Merged
merged 7 commits into from
Apr 18, 2023
Merged

Encode int column #780

merged 7 commits into from
Apr 18, 2023

Conversation

kshitijavis
Copy link
Contributor

No description provided.

"sturges",
"sqrt",
]
expected_min_histogram_bin = 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

were you having issue cutting this down from 1000? Or decide to keep it at 1000?

def test_json_encode(self):
self.maxDiff = None

mixin = NumericStatsMixin()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty mixin?

Comment on lines 1183 to 1185
options = IntOptions()
options.histogram_and_quantiles.bin_count_or_method = 5
profiler = IntColumn("0", options)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! only nit pick suggestion would be

Suggested change
options = IntOptions()
options.histogram_and_quantiles.bin_count_or_method = 5
profiler = IntColumn("0", options)
int_options = IntOptions()
int_options.histogram_and_quantiles.bin_count_or_method = 5
profiler = IntColumn("0", options=int_options)

@@ -1,3 +1,4 @@
import json
Copy link
Collaborator

@JGSweets JGSweets Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the other PR gets merged, this can get updated and we won't have this code in this one.

@taylorfturner taylorfturner enabled auto-merge (squash) April 14, 2023 15:36
auto-merge was automatically disabled April 14, 2023 17:45

Head branch was pushed to by a user without write access

JGSweets
JGSweets previously approved these changes Apr 14, 2023
@JGSweets JGSweets enabled auto-merge (squash) April 14, 2023 18:40
auto-merge was automatically disabled April 14, 2023 18:48

Head branch was pushed to by a user without write access

@JGSweets JGSweets enabled auto-merge (squash) April 14, 2023 20:59
auto-merge was automatically disabled April 17, 2023 21:32

Head branch was pushed to by a user without write access

@@ -25,7 +25,7 @@ def is_in_range(x: float | int, config: dict) -> bool:
raise TypeError("Value is not a float")


def is_in_list(x: str, config: dict) -> bool:
def is_in_list(x: str | int | float, config: dict) -> bool:
"""
Check to see x is in the config list.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to change the docstring with the type updates as well

@JGSweets JGSweets merged commit 3e81247 into capitalone:main Apr 18, 2023
4 checks passed
@kshitijavis kshitijavis deleted the encode_int_column branch April 19, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants