-
Notifications
You must be signed in to change notification settings - Fork 135
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
Conversation
datacompy/core.py
Outdated
"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" |
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.
For a string, will self.df1[column].dtype
return string
or something like string[python]
/string[pyarrow]
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.
I think the second option. It was returning string
before the fix.
datacompy/core.py
Outdated
"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" |
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.
I think the second option. It was returning string
before the fix.
Co-authored-by: Gladys Teh <[email protected]>
Co-authored-by: Gladys Teh <[email protected]>
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.
LGTM! Thanks 🔥
Fixes #373
dtype.__repr__()
inreport
string[pyarrow]
andstring[python]
as these should probably compare and return a value.