mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
[Dataframes] Call ray.init() on ray.dataframe import (#1626)
* ray.init on dataframe import * wrapping ray.init in a try/except * removing ray.init calls from test code * resolving flake8
This commit is contained in:
committed by
Devin Petersohn
parent
34664dbf76
commit
4a15c2c65c
@@ -5,7 +5,6 @@ from __future__ import print_function
|
||||
import pytest
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import ray
|
||||
import ray.dataframe as rdf
|
||||
|
||||
|
||||
@@ -145,7 +144,6 @@ def create_test_dataframe():
|
||||
|
||||
|
||||
def test_int_dataframe():
|
||||
ray.init()
|
||||
|
||||
pandas_df = pd.DataFrame({'col1': [0, 1, 2, 3],
|
||||
'col2': [4, 5, 6, 7],
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import print_function
|
||||
import pytest
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import ray
|
||||
import ray.dataframe as rdf
|
||||
import ray.dataframe.io as io
|
||||
import os
|
||||
@@ -58,7 +57,6 @@ def teardown_csv_file():
|
||||
|
||||
|
||||
def test_from_parquet_small():
|
||||
ray.init()
|
||||
|
||||
setup_parquet_file(SMALL_ROW_SIZE)
|
||||
|
||||
|
||||
@@ -4,9 +4,6 @@ from __future__ import print_function
|
||||
|
||||
import pytest
|
||||
import ray.dataframe as rdf
|
||||
import ray
|
||||
|
||||
ray.init()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user