-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Unary plus feature #16103
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
Unary plus feature #16103
Changes from all commits
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 |
---|---|---|
|
@@ -91,6 +91,9 @@ def check(series, other, check_reverse=False): | |
check(self.ts, 5, check_reverse=True) | ||
check(tm.makeFloatSeries(), tm.makeFloatSeries(), check_reverse=True) | ||
|
||
def test_pos(self): | ||
assert_series_equal(+self.series, self.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. need to add a test for dataframes, too 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'm new to contributing to this Pandas. Are there any other datatypes that I need to write test cases for other than series and dataframes? I'll write these tests and resubmit tomorrow. |
||
|
||
def test_neg(self): | ||
assert_series_equal(-self.series, -1 * self.series) | ||
|
||
|
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.
This shouldn't be changed