From bc012884e12a91d719857faffa8e0fa25c3d1a1e Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Mon, 13 Feb 2023 17:32:42 -0800 Subject: [PATCH] [data] Fix pandas import failures by moving it to a top-level data import (#32447) --- python/ray/data/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/ray/data/__init__.py b/python/ray/data/__init__.py index 9a114f84490a..ce978149e8ea 100644 --- a/python/ray/data/__init__.py +++ b/python/ray/data/__init__.py @@ -1,3 +1,7 @@ +# Short term workaround for https://github.com/ray-project/ray/issues/32435 +# Datasets currently has a hard dependency on pandas, so it doesn't need to be delayed. +import pandas # noqa + from ray.data._internal.compute import ActorPoolStrategy from ray.data._internal.progress_bar import set_progress_bars from ray.data.dataset import Dataset