Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion python/pyspark/pandas/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -13490,7 +13490,13 @@ def __getattr__(self, key: str) -> Any:
if key.startswith("__"):
raise AttributeError(key)
if hasattr(MissingPandasLikeDataFrame, key):
if key in ["asfreq", "asof"] and get_option("compute.pandas_fallback"):
if key in [
"asfreq",
"asof",
"convert_dtypes",
"infer_objects",
"set_axis",
] and get_option("compute.pandas_fallback"):
return self._fall_back_frame(key)

property_or_func = getattr(MissingPandasLikeDataFrame, key)
Expand Down
4 changes: 3 additions & 1 deletion python/pyspark/pandas/missing/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class MissingPandasLikeDataFrame:
reorder_levels = _unsupported_function("reorder_levels")
set_axis = _unsupported_function("set_axis")
to_feather = _unsupported_function("to_feather")
to_gbq = _unsupported_function("to_gbq")
to_hdf = _unsupported_function("to_hdf")
to_period = _unsupported_function("to_period")
to_sql = _unsupported_function("to_sql")
Expand All @@ -56,6 +55,9 @@ class MissingPandasLikeDataFrame:
lookup = _unsupported_function(
"lookup", deprecated=True, reason="Use DataFrame.melt and DataFrame.loc instead."
)
to_gbq = _unsupported_function(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"to_gbq", deprecated=True, reason="Use pandas_gbq.to_gbq instead."
)

# Functions we won't support.
to_pickle = common.to_pickle(_unsupported_function)
Expand Down