xinrong-databricks commented on a change in pull request #33400: URL: https://github.com/apache/spark/pull/33400#discussion_r672428169
########## File path: python/pyspark/pandas/indexes/category.py ########## @@ -115,6 +115,10 @@ def __new__(cls, data=None, categories=None, ordered=None, dtype=None, copy=Fals ) ) + @property + def dtype(self) -> CategoricalDtype: + return cast(CategoricalDtype, super().dtype) Review comment: Nice! -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org