-
Notifications
You must be signed in to change notification settings - Fork 598
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
Error using TestSuites for numerical data #1122
Comments
Hi @jeric250, could you try to run |
Thanks @elenasamuylova for responding so quickly. Forgot to mention, I did try When I tried to test on a single numerical column, I get the same error as well.
Error: Same error when I tried DataDriftTable:
When I limit DataDriftTable to just categorical columns, it works fine with a report generated. |
I found out that the Solution: To address this, remove (drop) the index from the dataframe:
Hope this helps! |
Hi there, first time opening an issue so bear with me (and let me know if more info is needed).
Basic information:
Package version used: 0.4.20
Operating system and version: macOS VSCode
Programming language and version used: Python 3.12.2
Code snippet:
The above code is based on Evidently documentation: https://github.com/evidentlyai/evidently/blob/main/examples/how_to_questions/how_to_specify_stattest_for_a_testsuite.ipynb
Error message:
The above code snippet takes in only numerical data in a pandas DataFrame (data type of 'float64', 'int64'). When I use the exact same code for only categorical data (data type of 'object','category'), the above code works fine with a report generated.
I checked whether the numerical data used contain any weird values, and it doesn't seem to be the case. For example, to find records with non-numeric values:
ref_df[~ref_df.applymap(np.isreal).all(1)]
What am I missing? Any advice?
The text was updated successfully, but these errors were encountered: