Skip to content
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 gokart.testing.assert_frame_equal #256

Merged

Conversation

mski-iksm
Copy link
Contributor

I've added a new feature gokart.testing.assert_frame_equal() for comparing pd.DataFrame.

As mentioned in the issue, this is useful when index/columns orders are different.

Related issue: #243 raised by @vaaaaanquish

Please review!

gokart/testing/__init__.py Outdated Show resolved Hide resolved
gokart/testing/pandas_assert.py Outdated Show resolved Hide resolved
Copy link
Contributor

@vaaaaanquish vaaaaanquish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The most exciting PR in recent times.

Copy link
Member

@Hi-king Hi-king left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a explanation of difference from pd.testing.assert_frame_equal, plz

Copy link
Collaborator

@hirosassa hirosassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@Hi-king
Copy link
Member

Hi-king commented Nov 6, 2021

@mski-iksm thx I've understand functionalities!

IMO, how about more descriptive name indicating difference (e.g. assert_frame_contents_equal, assert_frame_equal_ignoring_index)

@mski-iksm
Copy link
Contributor Author

@Hi-king

IMO, how about more descriptive name indicating difference (e.g. assert_frame_contents_equal, assert_frame_equal_ignoring_index)

I agree with your idea. I've changed the method name assert_frame_equal -> assert_frame_contents_equal .

Please review.

@Hi-king
Copy link
Member

Hi-king commented Nov 16, 2021

@mski-iksm 🆒 LGTM!

@Hi-king Hi-king merged commit 00475f3 into m3dev:master Nov 16, 2021
@Hi-king
Copy link
Member

Hi-king commented Nov 16, 2021

@mski-iksm Thx for cool function :) Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants