cloud-fan commented on a change in pull request #32964:
URL: https://github.com/apache/spark/pull/32964#discussion_r681131819
##########
File path: python/pyspark/pandas/frame.py
##########
@@ -4815,6 +4815,13 @@ def to_spark_io(
index_col: Optional[Union[str, List[str]]] = None,
**options
) -> None:
+ """An alias for :func:`DataFrame.spark.to_spark_io`.
+ See
:meth:`pyspark.pandas.spark.accessors.SparkFrameMethods.to_spark_io`.
+
+ .. deprecated:: 3.2.0
+ Use :func:`DataFrame.spark.to_spark_io` instead.
+ """
+ warnings.warn("Deprecated in 3.2, Use spark.to_spark_io instead.",
FutureWarning)
Review comment:
shall we use `DataFrame.spark.to_spark_io`
##########
File path: python/pyspark/pandas/frame.py
##########
@@ -4815,6 +4815,13 @@ def to_spark_io(
index_col: Optional[Union[str, List[str]]] = None,
**options
) -> None:
+ """An alias for :func:`DataFrame.spark.to_spark_io`.
+ See
:meth:`pyspark.pandas.spark.accessors.SparkFrameMethods.to_spark_io`.
+
+ .. deprecated:: 3.2.0
+ Use :func:`DataFrame.spark.to_spark_io` instead.
+ """
+ warnings.warn("Deprecated in 3.2, Use spark.to_spark_io instead.",
FutureWarning)
Review comment:
shall we use `DataFrame.spark.to_spark_io` ?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]