You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/06/01 13:41:36 UTC

[GitHub] [spark] srowen commented on a change in pull request #32729: [SPARK-35539] Restore to_koalas to keep the backward compatibility

srowen commented on a change in pull request #32729:
URL: https://github.com/apache/spark/pull/32729#discussion_r643113808



##########
File path: python/pyspark/pandas/frame.py
##########
@@ -4545,6 +4545,15 @@ def to_pandas_on_spark(self, index_col: Optional[Union[str, List[str]]] = None)
             )
             return DataFrame(internal)
 
+    # Keep to_koalas for backward compatibility for now.
+    def to_koalas(self, index_col: Optional[Union[str, List[str]]] = None) -> "DataFrame":
+        warnings.warn(
+            "DataFrame.to_koalas is deprecated as of DataFrame.to_pandas_on_spark. "

Review comment:
       Maybe: `DataFrame.to_koalas is deprecated. Use DataFrame.to_pandas_on_spark instead.`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org