You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandas 2 introduced error-raising behavior when calling to_json with incompatible orient and index arguments, which presents itself in Morpheus when using Pandas 2 (discovered while updating RAPIDS). The old Pandas behavior was to ignore index=True when orient="records", as seen in this issue. The error-producing behavior was introduced in this PR.
The error-raising behavior needs to be avoided. An easy work around is to simply use index=Falsehere, and ignore the value passed in by calling code, but this may confuse the caller. Since we allow calling code to inject the index argument, we may need to issue a warning when the index argument is incompatible and adjust it accordingly.
Code of Conduct
I agree to follow Morpheus' Code of Conduct
I have searched the open bugs and have found no duplicates for this bug report
The text was updated successfully, but these errors were encountered:
Version
24.10
Which installation method(s) does this occur on?
No response
Describe the bug.
Pandas 2 introduced error-raising behavior when calling
to_json
with incompatibleorient
andindex
arguments, which presents itself in Morpheus when using Pandas 2 (discovered while updating RAPIDS). The old Pandas behavior was to ignoreindex=True
whenorient="records"
, as seen in this issue. The error-producing behavior was introduced in this PR.The error-raising behavior needs to be avoided. An easy work around is to simply use
index=False
here, and ignore the value passed in by calling code, but this may confuse the caller. Since we allow calling code to inject theindex
argument, we may need to issue a warning when theindex
argument is incompatible and adjust it accordingly.Code of Conduct
The text was updated successfully, but these errors were encountered: