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

adding check for pyarrow strings in columns_equal #375

Merged
merged 3 commits into from
Feb 5, 2025
Merged

Conversation

fdosani
Copy link
Member

@fdosani fdosani commented Feb 4, 2025

Fixes #373

  • Will display dtype.__repr__() in report
  • additional check for string[pyarrow] and string[python] as these should probably compare and return a value.

"dtype1": str(self.df1[column].dtype),
"dtype2": str(self.df2[column].dtype),
"dtype1": str(self.df1[column].dtype.__repr__())
if self.df1[column].dtype == "string"
Copy link
Contributor

Choose a reason for hiding this comment

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

For a string, will self.df1[column].dtype return string or something like string[python]/string[pyarrow]

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the second option. It was returning string before the fix.

"dtype1": str(self.df1[column].dtype),
"dtype2": str(self.df2[column].dtype),
"dtype1": str(self.df1[column].dtype.__repr__())
if self.df1[column].dtype == "string"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the second option. It was returning string before the fix.

fdosani and others added 2 commits February 5, 2025 11:15
Co-authored-by: Gladys Teh <[email protected]>
Co-authored-by: Gladys Teh <[email protected]>
Copy link
Contributor

@gladysteh99 gladysteh99 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks 🔥

@fdosani fdosani merged commit 2ae7d43 into develop Feb 5, 2025
39 checks passed
@fdosani fdosani deleted the pyarrow-strings branch February 5, 2025 18:05
@fdosani fdosani mentioned this pull request Feb 5, 2025
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.

String comparison displayed dtypes
3 participants