-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: Fix Grouper with a datetime key in conjunction with another key #51414
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
Changes from 3 commits
53777cd
dde4665
212a3cf
a0e5a08
132b46b
66bf4c8
d42e081
124b4bc
bc4b969
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1113,6 +1113,9 @@ def groups(self): | |
} | ||
return result | ||
|
||
def __iter__(self) -> Iterator[Hashable]: | ||
return iter(self.groupings[0].grouping_vector) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is the parent class method wrong? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I forgot to add description. Please, see the description of the PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if it would be better to refactor the indices here to align better with the base class rather than override iter. But I'm not certain if that's a good idea and I'm okay with this fix. cc @jbrockmendel There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jbrockmendel - friendly ping. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the delay. i had in mind something more like @rhshadrach's suggestion, that needing this here might indicate that the self.indices (which the parent class method iterates over) might be wrong |
||
|
||
@property | ||
def nkeys(self) -> int: | ||
# still matches len(self.groupings), but we can hard-code | ||
|
Uh oh!
There was an error while loading. Please reload this page.