Skip to content

Commit

Permalink
FEAT-modin-project#2627: add missed *args
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Aug 24, 2021
1 parent 8df62d9 commit 1919329
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modin/data_management/factories/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ def to_sql(cls, *args, **kwargs):
def to_pickle(cls, *args, **kwargs):
return cls.__factory._to_pickle(*args, **kwargs)

@classmethod
@_inherit_docstrings(
factories.ExperimentalPandasOnRayFactory._to_pickle_distributed
)
def to_pickle_distributed(cls, *args, **kwargs):
return cls.__factory._to_pickle_distributed(*args, **kwargs)

@classmethod
@_inherit_docstrings(factories.BaseFactory._to_csv)
def to_csv(cls, *args, **kwargs):
Expand Down
14 changes: 14 additions & 0 deletions modin/data_management/factories/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,20 @@ def _read_csv_glob(cls, **kwargs):
def _read_pickle_distributed(cls, **kwargs):
return cls.io_cls.read_pickle_distributed(**kwargs)

@classmethod
def _to_pickle_distributed(cls, *args, **kwargs):
"""
Distributed pickle query compiler object.
Parameters
----------
*args : args
Arguments to the writer method.
**kwargs : kwargs
Arguments to the writer method.
"""
return cls.io_cls.to_pickle_distributed(*args, **kwargs)


@doc(_doc_factory_class, backend_name="experimental PandasOnPython")
class ExperimentalPandasOnPythonFactory(ExperimentalBaseFactory, PandasOnPythonFactory):
Expand Down

0 comments on commit 1919329

Please sign in to comment.