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
Stop calculating top_values
for Double columns with integer values
#1692
Conversation
@@ -1369,7 +1369,8 @@ def test_describe_callback(describe_df, mock_callback): | |||
assert mock_callback.total_elapsed_time > 0 | |||
|
|||
|
|||
def test_describe_dict_extra_stats(describe_df): | |||
@pytest.mark.parametrize("use_age", [True, False]) | |||
def test_describe_dict_extra_stats(use_age, describe_df): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to make sure to cover age usage and confirm its behavior matches int and double usage, but I recognize that this may be a bit overkill. If anyone would rather I make a completely separate test that more minimally tests age vs integer usage, lmk.
Codecov Report
@@ Coverage Diff @@
## main #1692 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 98 98
Lines 11805 11809 +4
=======================================
+ Hits 11663 11667 +4
Misses 142 142
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why the install for 3.11 is failing, but changes LGTM
49c7da5
to
25f3778
Compare
if isinstance( | ||
column.logical_type, | ||
(Age, AgeNullable, Integer, IntegerNullable), | ||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not something we need in this PR, but might be nice if we had an is_integer_type
property on the column schema to use instead of having to maintain a list of logical types here.
_get_describe_dict