itholic commented on code in PR #40722:
URL: https://github.com/apache/spark/pull/40722#discussion_r1168276449
##########
python/pyspark/pandas/internal.py:
##########
@@ -628,7 +624,13 @@ def __init__(
>>> internal.column_label_names
[('column_labels_a',), ('column_labels_b',)]
"""
- assert isinstance(spark_frame, GenericDataFrame.__args__) # type:
ignore[attr-defined]
Review Comment:
I think the code is the same with previous assert? Because `assert
isinstance(spark_frame, SparkDataFrame)` below check the if `spark_frame` is a
`ConnectDataFrame` or a `PySparkDataFrame` which is the same as `assert
isinstance(spark_frame, GenericDataFrame.__args__)`
--
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]