@@ -1308,14 +1308,14 @@ def month_name(self, locale=None) -> npt.NDArray[np.object_]:
13081308 0 January
13091309 1 February
13101310 2 March
1311- dtype: object
1311+ dtype: str
13121312
13131313 >>> idx = pd.date_range(start="2018-01", freq="ME", periods=3)
13141314 >>> idx
13151315 DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31'],
13161316 dtype='datetime64[ns]', freq='ME')
13171317 >>> idx.month_name()
1318- Index(['January', 'February', 'March'], dtype='object ')
1318+ Index(['January', 'February', 'March'], dtype='str ')
13191319
13201320 Using the ``locale`` parameter you can set a different locale language,
13211321 for example: ``idx.month_name(locale='pt_BR.utf8')`` will return month
@@ -1326,7 +1326,7 @@ def month_name(self, locale=None) -> npt.NDArray[np.object_]:
13261326 DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31'],
13271327 dtype='datetime64[ns]', freq='ME')
13281328 >>> idx.month_name(locale="pt_BR.utf8") # doctest: +SKIP
1329- Index(['Janeiro', 'Fevereiro', 'Março'], dtype='object ')
1329+ Index(['Janeiro', 'Fevereiro', 'Março'], dtype='str ')
13301330 """
13311331 values = self ._local_timestamps ()
13321332
@@ -1376,14 +1376,14 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13761376 0 Monday
13771377 1 Tuesday
13781378 2 Wednesday
1379- dtype: object
1379+ dtype: str
13801380
13811381 >>> idx = pd.date_range(start="2018-01-01", freq="D", periods=3)
13821382 >>> idx
13831383 DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03'],
13841384 dtype='datetime64[ns]', freq='D')
13851385 >>> idx.day_name()
1386- Index(['Monday', 'Tuesday', 'Wednesday'], dtype='object ')
1386+ Index(['Monday', 'Tuesday', 'Wednesday'], dtype='str ')
13871387
13881388 Using the ``locale`` parameter you can set a different locale language,
13891389 for example: ``idx.day_name(locale='pt_BR.utf8')`` will return day
@@ -1394,7 +1394,7 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13941394 DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03'],
13951395 dtype='datetime64[ns]', freq='D')
13961396 >>> idx.day_name(locale="pt_BR.utf8") # doctest: +SKIP
1397- Index(['Segunda', 'Terça', 'Quarta'], dtype='object ')
1397+ Index(['Segunda', 'Terça', 'Quarta'], dtype='str ')
13981398 """
13991399 values = self ._local_timestamps ()
14001400
0 commit comments