-
Notifications
You must be signed in to change notification settings - Fork 62
Initial support of DataFrame.GroupBy by single literal column #590
Initial support of DataFrame.GroupBy by single literal column #590
Conversation
|
Hello @kozlov-alexey! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-02-18 15:55:06 UTC |
6525865 to
af914cb
Compare
sdc/tests/test_groupby.py
Outdated
| pd.testing.assert_frame_equal(result, result_ref) | ||
|
|
||
| @skip_sdc_jit('Fails with old-pipeline from the start') | ||
| def test_dataframe_groupby_count_by_int(self): |
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.
Maybe to combine tests test_dataframe_groupby_count_by_* via subTest?
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.
Done!
sdc/tests/test_groupby.py
Outdated
| 'A': [2, 1, 2, 1, 2, 2, 1, 0, 3, 1, 3], | ||
| 'B': np.arange(n, dtype=np.intp), | ||
| 'C': np.arange(n, dtype=np.float_), | ||
| 'D': [np.nan, 2., -1.3, np.nan, 3.5, 0, 10, 0.42, np.nan, -2.5, 23], | ||
| 'E': [np.inf, 2., -1.3, -np.inf, 3.5, 0, 10, 0.42, np.nan, -2.5, 23] |
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.
The data is used in a lot of places. Wouldn't you like to move it to some common place?
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.
Yes, you're probably right, I moved it to a global var.
densmirn
left a comment
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.
If you will you could apply above comments in the separate PR.
|
@kozlov-alexey conflicts. |
2e3b42c to
49ea6dd
Compare
49ea6dd to
62d9b4d
Compare
No description provided.