-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
assert_frame_equal fails when dtype is categorical #12108
Comments
Show pd.show_versions() and a complete copy-pastable example |
Show versions:
Example:
|
this is correct. These frames are not exactly equal, so an exception is raised. what exactly are you trying to do? usually one wants to know if things are equal.
|
btw, a more general idiom is to do the following for these types of soft-conversions
|
Hi @jreback, Thanks for addressing the question. We are trying to coerce some strings into those 3 types as appropriate in a semi-intelligent fashion. Thanks for the idiom you pasted above. I know that it should have thrown for the example I pasted, but I do think there's a bug here, as it was not clear at all that it had failed with legitimate reasons. My point being that |
This was already changed slightly in master, and will give an error like this (in 0.18), releasing soon.
|
That would close this 😃 |
HI, I am trying to compare two data frames, one got data from hive database and the other got data from oracle,prolem is In hive all column data types are strings so data frames taking it as object, but oracle has int, so frame taking it as int64, I am getting the following error |
The text was updated successfully, but these errors were encountered: