-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Add a test for agg std #52371
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
Add a test for agg std #52371
Changes from 1 commit
5b91b0f
71e046c
a69083f
246d9c6
d948779
25b97fe
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 | ||||
---|---|---|---|---|---|---|
|
@@ -1577,3 +1577,9 @@ def test_agg_groupings_selection(): | |||||
) | ||||||
expected = DataFrame({"b": [6, 4], "c": [11, 7]}, index=index) | ||||||
tm.assert_frame_equal(result, expected) | ||||||
|
||||||
def test_agg_std(): | ||||||
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}) | ||||||
std = df.agg(np.std) | ||||||
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.
Suggested change
Could you also compare 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. Hello @mroeschke, I'm sorry but I'm not sure what you are asking. Do you want me to check the type of class? e.g (pandas.core.series.Series) 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. Just asking to add a test to also check the result of |
||||||
expected = pd.Series({'A': 1.0, 'B': 1.0}, dtype=float) | ||||||
assert std.equals(expected) | ||||||
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.
Suggested change
|
Uh oh!
There was an error while loading. Please reload this page.
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.
Can you use the exact DataFrame from the issue?