From f5d9b809881552c0e1b5af72b2a32caa25018eb3 Mon Sep 17 00:00:00 2001 From: Ruifeng Zheng Date: Wed, 29 May 2024 20:51:29 +0800 Subject: [PATCH] [MINOR][PS] Fallback code clean up ### What changes were proposed in this pull request? Fallback code clean up ### Why are the changes needed? ``` DataFrame.to_feather DataFrame.to_stata ``` the two methods were already added as normal methods, no need to be in the fallback list ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #46784 from zhengruifeng/ps_fallback_cleanup. Authored-by: Ruifeng Zheng Signed-off-by: Ruifeng Zheng --- python/pyspark/pandas/frame.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/python/pyspark/pandas/frame.py b/python/pyspark/pandas/frame.py index 2bf91c2be2f3c..1a69e88a81d04 100644 --- a/python/pyspark/pandas/frame.py +++ b/python/pyspark/pandas/frame.py @@ -13626,14 +13626,6 @@ def _set_axis_fallback(self, *args: Any, **kwargs: Any) -> "DataFrame": _f = self._build_fallback_method("set_axis") return _f(*args, **kwargs) - def _to_feather_fallback(self, *args: Any, **kwargs: Any) -> None: - _f = self._build_fallback_driver_method("to_feather") - return _f(*args, **kwargs) - - def _to_stata_fallback(self, *args: Any, **kwargs: Any) -> None: - _f = self._build_fallback_driver_method("to_stata") - return _f(*args, **kwargs) - def __getattr__(self, key: str) -> Any: if key.startswith("__"): raise AttributeError(key)