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/24 05:29:36 UTC

[GitHub] [spark] HyukjinKwon opened a new pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

HyukjinKwon opened a new pull request #33050:
URL: https://github.com/apache/spark/pull/33050


   ### What changes were proposed in this pull request?
   
   This PR proposes to add a migration guide for legacy Koalas users in pandas API on Spark.
   
   ### Why are the changes needed?
   
   For easier migration.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, this adds a new page for migration from Koalas.
   
   ### How was this patch tested?
   
   Manually built the docs and checked manually.


-- 
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


[GitHub] [spark] HyukjinKwon closed pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #33050:
URL: https://github.com/apache/spark/pull/33050


   


-- 
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


[GitHub] [spark] HyukjinKwon commented on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867348168


   cc @ueshin @itholic @xinrong-databricks FYI


-- 
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


[GitHub] [spark] SparkQA commented on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867348889


   **[Test build #140244 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/140244/testReport)** for PR 33050 at commit [`512ccf9`](https://github.com/apache/spark/commit/512ccf944db7beb2ef9c3b0ce6e3ff5a4ae4327b).


-- 
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


[GitHub] [spark] AmplabJenkins commented on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867379314






-- 
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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867379314






-- 
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


[GitHub] [spark] SparkQA removed a comment on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867348889


   **[Test build #140244 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/140244/testReport)** for PR 33050 at commit [`512ccf9`](https://github.com/apache/spark/commit/512ccf944db7beb2ef9c3b0ce6e3ff5a4ae4327b).


-- 
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


[GitHub] [spark] SparkQA commented on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867368554


   Kubernetes integration test unable to build dist.
   
   exiting with code: 1
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44773/
   


-- 
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


[GitHub] [spark] itholic commented on a change in pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
itholic commented on a change in pull request #33050:
URL: https://github.com/apache/spark/pull/33050#discussion_r657651295



##########
File path: python/docs/source/migration_guide/koalas_to_pyspark.rst
##########
@@ -0,0 +1,36 @@
+..  Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+..    http://www.apache.org/licenses/LICENSE-2.0
+
+..  Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+
+============================================
+Migrating from Koalas to pandas API on Spark
+============================================
+
+* The package name to import should be changed to ``pyspark.pandas`` from ``databricks.koalas``.
+
+   .. code-block:: python
+   
+      # import databricks.koalas as ks
+      import pyspark.pandas as ps
+
+* ``DataFrame.koalas`` in Koalas DataFrame was renamed to ``DataFrame.pandas_on_spark`` in pandas-on-Spark DataFrame. ``DataFrame.koalas`` was kept for compatibility reason but deprecated as of Spark 3.2.
+  ``DataFrame.koalas`` will be removed in the future releases.
+
+* Monkey-patched ``DataFrame.to_koalas`` in PySpark DataFrame was renamed to ``DataFrame.to_pandas_on_spark`` in PySpark DataFrame. ``DataFrame.to_koalas`` was kept for compatibility reason but deprecated as of Spark 3.2.
+  ``DataFrame.to_koalas`` will be removed in the future releases.
+
+* ``databricks.koalas.__version__`` was removed. ``pyspark.__version__`` should be used instead.

Review comment:
       I'll create the ticket and handle the version.




-- 
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


[GitHub] [spark] HyukjinKwon commented on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867465696


   Thanks all. Merged to master.


-- 
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


[GitHub] [spark] SparkQA commented on pull request #33050: [SPARK-35301][PYTHON][DOCS] Document migration guide from Koalas to pandas APIs on Spark

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #33050:
URL: https://github.com/apache/spark/pull/33050#issuecomment-867359826


   **[Test build #140244 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/140244/testReport)** for PR 33050 at commit [`512ccf9`](https://github.com/apache/spark/commit/512ccf944db7beb2ef9c3b0ce6e3ff5a4ae4327b).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
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