Pandas ImportError with ray.data.Dataset.show

Hello,

I’m reading in a CSV file and inspecting data as follows:

from ray import data

ray_data = data.read_csv("file_name.csv")
ray_data.show(10)

This works fine with Pandas versions <= 2.1.4. However, with Pandas version 2.2.0 (just released yesterday), I get the following error running the above code:

ImportError: cannot import name 'ExtensionArrayFormatter' from 'pandas.io.formats.format' (.../lib/python3.9/site-packages/pandas/io/formats/format.py)

Not a big deal since it works on earlier Pandas versions, but just FYI. Thanks!

Thanks for reporting, I have opened a GH issue to track here: [Data] `ExtensionArrayFormatter` import error with pandas 2.2.0 · Issue #42842 · ray-project/ray · GitHub