Skip to content

Commit

Permalink
REFACTOR-modin-project#6958: Remove DataFrame.to_pickle_distributed i…
Browse files Browse the repository at this point in the history
…n favour of DataFrame.modin.to_pickle_distributed (modin-project#6959)

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev authored and tochigiv committed Feb 22, 2024
1 parent d190e1e commit 75ce2ca
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions modin/experimental/pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
>>> df = pd.read_csv_glob("data*.csv")
"""

import functools
import warnings

from modin.pandas import * # noqa F401, F403

from .io import ( # noqa F401
Expand All @@ -45,20 +42,4 @@
read_pickle_distributed,
read_sql,
read_xml_glob,
to_pickle_distributed,
)

old_to_pickle_distributed = to_pickle_distributed


@functools.wraps(to_pickle_distributed)
def to_pickle_distributed(*args, **kwargs):
warnings.warn(
"`DataFrame.to_pickle_distributed` is deprecated and will be removed in a future version. "
+ "Please use `DataFrame.modin.to_pickle_distributed` instead.",
category=FutureWarning,
)
return old_to_pickle_distributed(*args, **kwargs)


setattr(DataFrame, "to_pickle_distributed", to_pickle_distributed) # noqa: F405

0 comments on commit 75ce2ca

Please sign in to comment.