[pymongoarrow] Add support for Pandas 3

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • pymongoarrow-1.12.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Pandas 3 is in its rc phase. It comes with some breaking changes, like the removal of deprecated functionality, and the change to use a string data type instead of a numpy object. I ran the tests with rc0 locally, and got the following result:

      ERROR test/pandas_types/test_decimal128.py::TestInterface::test_contains
      ...
      FAILED test/pandas_types/test_objectid.py::TestMissing::test_fillna_readonly - Failed: DID NOT RAISE <class 'ValueError'>
      FAILED test/test_pandas.py::TestExplicitPandasApi::test_auto_schema - AssertionError: Attributes of Series are different
      ...
      FAILED test/test_pandas.py::TestNulls::test_other_handling - AssertionError: 'str' != 'object'
      ====================== 33 failed, 987 passed, 4 skipped, 8 xfailed, 2 errors in 141.60s (0:02:21) ======================
      

      Definition of done

      Update the max supported version of pandas to <4 and update tests/functionality as needed.

      Pitfalls

      Some tests might only be runnable in pandas <3 or pandas >=3.

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: