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:
       Good question, let me try if inheriting `base` directly works.




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