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

feat(python): Improved assert equal messages #6737

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Feb 8, 2023

Resolves #6418

New message when inputs are not dataframes / series like expected.

  • Old: DataFrames are different. Type mismatch
  • New: Inputs are different. Invalid input types

New message when values do not match

  • Old: DataFrames are different. Value mismatch -> includes values, but not the name of the Series!
  • New: Values for column 'a' are different. -> Raised from another error that includes the values

Plus some general cleanup like adding interpunction.

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars labels Feb 8, 2023
@ritchie46 ritchie46 merged commit d43500e into pola-rs:master Feb 9, 2023
Vincenthays pushed a commit to Vincenthays/polars that referenced this pull request Feb 9, 2023
@stinodego stinodego deleted the improve-assert-type-check branch February 22, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

assert_frame_equal should raise an informative error when input are Series
2 participants