-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
util.testing.assert_almost_equal() gives Key Error #11584
Comments
You should use Better to add docstring of |
Sorry sinhrks - I meant to highlight the fact there are small differences in the dataframes. Hence i specifically need assert_almost_equal() |
Did you updated the example? Use Strangely |
Yes see update in the example When I use the .values property to return an ndarray the test assert_almost_equal() works for me. However I would want to do a dataframe test. One that ensure indexes etc. match. Yet it allows for the small variation in the values. |
Currently it should be possible by More flexible comparison tolerance is being discussed in #10788. |
Thanks - when should I use .assert_almost_equal() with respect to dataframes? |
Let me summarize:
As a workaround until the bug is fixed, you can use |
Test 1 works successfully with a square dataframe
Test 2 fails with a dataframe where number rows > number of columns
KeyError: 5L
The text was updated successfully, but these errors were encountered: