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 2020/10/21 04:29:41 UTC

[GitHub] [spark] HyukjinKwon opened a new pull request #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   ### What changes were proposed in this pull request?
   
   This PR is a small followup of https://github.com/apache/spark/pull/28793 and  proposes to use `is_categorical_dtype` instead of deprecated `is_categorical`.
   
   `is_categorical_dtype` exists from minimum pandas version we support (https://github.com/pandas-dev/pandas/blob/v0.23.2/pandas/core/dtypes/api.py), and `is_categorical` was deprecated from pandas 1.1.0 (https://github.com/pandas-dev/pandas/commit/87a1cc21cab751c16fda4e6f0a95988a8d90462b).
   
   ### Why are the changes needed?
   
   To avoid using deprecated APIs, and remove warnings.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, it will remove warnings that says `is_categorical` is deprecated.
   
   ### How was this patch tested?
   
   By running any pandas UDF with pandas 1.1.0+: 
   
   ```python
   import pandas as pd
   from pyspark.sql.functions import pandas_udf
   
   def func(x: pd.Series) -> pd.Series:
       return x
   
   spark.range(10).select(pandas_udf(func, "long")("id")).show()
   ```
   
   Before:
   
   ```
   /.../python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py:151: FutureWarning: is_categorical is deprecated and will be removed in a future version.  Use is_categorical_dtype instead
   ...
   ```
   
   After:
   
   ```
   ...
   ```


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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






----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   Thanks, @BryanCutler and @srowen.


----------------------------------------------------------------
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] BryanCutler commented on pull request #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   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] BryanCutler closed pull request #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   **[Test build #130068 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130068/testReport)** for PR 30114 at commit [`4b1ef1f`](https://github.com/apache/spark/commit/4b1ef1f938c3af9e6b011aaddb2da2f249441ffd).


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   **[Test build #130068 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130068/testReport)** for PR 30114 at commit [`4b1ef1f`](https://github.com/apache/spark/commit/4b1ef1f938c3af9e6b011aaddb2da2f249441ffd).
    * 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


[GitHub] [spark] SparkQA commented on pull request #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34677/
   


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   Merged build finished. Test FAILed.


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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






----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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






----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/34677/
   Test FAILed.


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   **[Test build #130068 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130068/testReport)** for PR 30114 at commit [`4b1ef1f`](https://github.com/apache/spark/commit/4b1ef1f938c3af9e6b011aaddb2da2f249441ffd).


----------------------------------------------------------------
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 #30114: [SPARK-31964][PYTHON][FOLLOW-UP] Use is_categorical_dtype instead of deprecated is_categorical

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


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34677/
   


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