Race condition on imports with Ray
On Ray 0.8.3, there is a race condition that will break the imports. Relevant thread in the Ray repo: ray-project/ray#7879
diff --git a/modin/pandas/__init__.py b/modin/pandas/__init__.py
index e42dbcaa9..75ca624e3 100644
--- a/modin/pandas/__init__.py
+++ b/modin/pandas/__init__.py
@@ -226,6 +226,14 @@ def initialize_ray():
             move_stdlib_ahead_of_site_packages
         )
 
+        # Register a fix to import pandas on all workers before running tasks.
+        # This prevents a race condition between two threads deserializing functions
+        # and trying to import pandas at the same time.
+        def import_pandas(*args):
+            import pandas  # noqa F401
+
+        ray.worker.global_worker.run_function_on_all_workers(import_pandas)
+
 
 if execution_engine == "Ray":
     import ray
['modin/pandas/__init__.py']