Skip to content

Commit 21e0e05

Browse files
committed
fix ci
1 parent 5061311 commit 21e0e05

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

modin/pandas/dataframe.py

+1-22
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from modin.error_message import ErrorMessage
4545
from modin.logging import disable_logging
4646
from modin.pandas import Categorical
47-
from modin.pandas.io import from_non_pandas, from_pandas, to_pandas, from_ray, to_ray
47+
from modin.pandas.io import from_non_pandas, from_pandas, to_pandas, to_ray
4848
from modin.utils import (
4949
MODIN_UNNAMED_SERIES_LABEL,
5050
_inherit_docstrings,
@@ -921,27 +921,6 @@ def from_dict(
921921
)
922922
)
923923

924-
@classmethod
925-
def from_ray(cls, ray_obj):
926-
"""
927-
Convert a Ray Dataset into Modin DataFrame.
928-
929-
Parameters
930-
----------
931-
ray_obj : ray.data.Dataset
932-
The Ray Dataset to convert from.
933-
934-
Returns
935-
-------
936-
DataFrame
937-
A new Modin DataFrame object.
938-
939-
Notes
940-
-----
941-
Ray Dataset may only be converted to Modin Dataframe if Modin uses a Ray engine.
942-
"""
943-
return from_ray(ray_obj)
944-
945924
@classmethod
946925
def from_records(
947926
cls,

modin/pandas/test/test_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_dataframe_api_equality():
152152

153153
ignore_in_pandas = ["timetuple"]
154154
# modin - namespace for using experimental functionality
155-
ignore_in_modin = ["modin", "to_pandas"]
155+
ignore_in_modin = ["modin", "to_pandas", "to_ray"]
156156
missing_from_modin = set(pandas_dir) - set(modin_dir)
157157
assert not len(
158158
missing_from_modin - set(ignore_in_pandas)
@@ -164,7 +164,7 @@ def test_dataframe_api_equality():
164164
), "Differences found in API: {}".format(set(modin_dir) - set(pandas_dir))
165165

166166
# These have to be checked manually
167-
allowed_different = ["to_hdf", "hist", "modin", "to_pandas"]
167+
allowed_different = ["to_hdf", "hist", "modin", "to_pandas", "to_ray"]
168168

169169
assert_parameters_eq((pandas.DataFrame, pd.DataFrame), modin_dir, allowed_different)
170170

modin/pandas/test/test_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3246,7 +3246,7 @@ def test_to_ray():
32463246
RuntimeError,
32473247
match="Modin Dataframe may only be converted to a Ray Dataset if Modin uses a Ray engine.",
32483248
):
3249-
_= modin_df.to_ray()
3249+
_ = modin_df.to_ray()
32503250

32513251

32523252
@pytest.mark.filterwarnings(default_to_pandas_ignore_string)

0 commit comments

Comments
 (0)