-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: Test for the Enum triggering TypeError (#22551 issue) #47715
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5b39d02
TST
Shadimrad e0a27b2
TST
Shadimrad bd32b97
TST
Shadimrad 48a27f8
updated strign formatting
Shadimrad dceccf0
updated formatting
Shadimrad 1904094
updating the test place within files
Shadimrad 7270b34
removing an additional parentheses
Shadimrad 7fb362d
removing the buggy file that was pushed
Shadimrad e48a63d
removing the buggy file that was pushed
Shadimrad 15be2f5
fixing initial file
Shadimrad 204affb
fixing order of import
Shadimrad 22843cc
fixing space
Shadimrad d1d0601
fixing space
Shadimrad c795d5d
fixing space
Shadimrad f78ef3b
series
Shadimrad 2b22f4a
series
Shadimrad f00dcb9
series
Shadimrad 53dba67
series
Shadimrad f413e94
syntax
Shadimrad c758b97
Merge branch 'main' into new-test
Shadimrad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
test_enum_column_equality
pandas/tests/frame/test_arithmetic.py
?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.
Sure! Thank you for your guide.
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.
@mroeschke by
result = q1[Cols.col1] == q2[Cols.col1]
do you mean that I remove the.all()
method as well?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.
Correct
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 changes in this file can be removed now.
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.
If you inspect
result
, it's a SeriesSo
expected
should also be aSeries
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.
@mroeschke
Right. but when I created the series and tried to compare,
checking if
expected == result
gave me the Error that the truth value of the Series is ambiguous, that is why. Unlesstm.assert_equal
accounts for that. update: it did not.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.
Yup,
tm.assert_equal
will check the values and the aspects of the SeriesThere 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.
Update: changing it to
tm.assert_series_equal(result, expected)
, hoping it works.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.
Oh, I've just seen your reply. There was a syntax issue that I fixed.
pd.Series
now replaced withSeries
which hopefully should be working now. Thank you for your guidance as well.