xinrong-databricks commented on a change in pull request #33694:
URL: https://github.com/apache/spark/pull/33694#discussion_r689690796



##########
File path: python/pyspark/pandas/indexes/datetimes.py
##########
@@ -741,6 +741,13 @@ def pandas_at_time(pdf) -> ps.DataFrame[int]:
             psdf = psdf.pandas_on_spark.apply_batch(pandas_at_time)
         return ps.Index(first_series(psdf).rename(self.name))
 
+    def map(
+        self,
+        mapper: Union[dict, Callable[[Any], Any], pd.Series] = None,
+        na_action: Optional[str] = None,
+    ) -> "Index":
+        return MissingPandasLikeDatetimeIndex.map(self, mapper, na_action)

Review comment:
       Would you mind I file a follow-up PR for `map` of DatetimeIndex and 
CategoricalIndex together? I am not sure if directly inherits `Index.map` works 
without corner cases.




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

Reply via email to