mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 18:45:03 +08:00
Ship Modin with Ray. (#3109)
This commit is contained in:
committed by
Philipp Moritz
parent
48a5935224
commit
4d2010a852
@@ -46,6 +46,9 @@ except ImportError as e:
|
||||
e.args += (helpful_message, )
|
||||
raise
|
||||
|
||||
modin_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "modin")
|
||||
sys.path.insert(0, modin_path)
|
||||
|
||||
from ray.raylet import ObjectID, _config # noqa: E402
|
||||
from ray.profiling import profile # noqa: E402
|
||||
from ray.worker import (error_info, init, connect, disconnect, get, put, wait,
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import ray # noqa F401
|
||||
|
||||
|
||||
def test_modin_import():
|
||||
import modin.pandas as pd
|
||||
frame_data = [1, 2, 3, 4, 5, 6, 7, 8]
|
||||
frame = pd.DataFrame(frame_data)
|
||||
assert frame.sum().squeeze() == sum(frame_data)
|
||||
Reference in New Issue
Block a user