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

bug fix len vs any #407

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

ernestoarbitrio
Copy link
Contributor

No description provided.

@@ -459,8 +459,9 @@ def _subtotal_columns(self):

def _subtotal_column(self, subtotal, default):
"""Return (n_rows,) ndarray of values for `subtotal` column."""
if self._dimensions[1].dimension_type == DT.CAT_DATE and any(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

any([0]) returns False and this is a bug cause the [0] means we have a subtrahend in the first position.

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3c3b551) to head (c652488).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #407   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         4862      4862           
=========================================
  Hits          4862      4862           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@gergness gergness left a comment

Choose a reason for hiding this comment

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

LGTM. !dm truthiness

@ernestoarbitrio ernestoarbitrio merged commit 6935f6b into master Nov 27, 2024
9 checks passed
@ernestoarbitrio ernestoarbitrio deleted the cat-date-diff-bug-fix-188552693 branch November 27, 2024 15:02
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.

2 participants