xinrong-databricks commented on code in PR #36981:
URL: https://github.com/apache/spark/pull/36981#discussion_r906848613


##########
python/pyspark/pandas/series.py:
##########
@@ -405,6 +405,14 @@ def __init__(  # type: ignore[no-untyped-def]
                 assert not fastpath
                 s = data
             else:
+                from pyspark.pandas.indexes.base import Index
+
+                if isinstance(index, Index):
+                    raise TypeError(

Review Comment:
   That's a good question! I don't think pandas Series/DataFrame creation 
considers `ps.Index` as an input index officially. I have no objection if we 
want to mention this in the migration guide though.
   



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

Reply via email to