@@ -1308,14 +1308,14 @@ def month_name(self, locale=None) -> npt.NDArray[np.object_]:
1308
1308
0 January
1309
1309
1 February
1310
1310
2 March
1311
- dtype: object
1311
+ dtype: str
1312
1312
1313
1313
>>> idx = pd.date_range(start="2018-01", freq="ME", periods=3)
1314
1314
>>> idx
1315
1315
DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31'],
1316
1316
dtype='datetime64[ns]', freq='ME')
1317
1317
>>> idx.month_name()
1318
- Index(['January', 'February', 'March'], dtype='object ')
1318
+ Index(['January', 'February', 'March'], dtype='str ')
1319
1319
1320
1320
Using the ``locale`` parameter you can set a different locale language,
1321
1321
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_]:
1326
1326
DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31'],
1327
1327
dtype='datetime64[ns]', freq='ME')
1328
1328
>>> 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 ')
1330
1330
"""
1331
1331
values = self ._local_timestamps ()
1332
1332
@@ -1376,14 +1376,14 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
1376
1376
0 Monday
1377
1377
1 Tuesday
1378
1378
2 Wednesday
1379
- dtype: object
1379
+ dtype: str
1380
1380
1381
1381
>>> idx = pd.date_range(start="2018-01-01", freq="D", periods=3)
1382
1382
>>> idx
1383
1383
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03'],
1384
1384
dtype='datetime64[ns]', freq='D')
1385
1385
>>> idx.day_name()
1386
- Index(['Monday', 'Tuesday', 'Wednesday'], dtype='object ')
1386
+ Index(['Monday', 'Tuesday', 'Wednesday'], dtype='str ')
1387
1387
1388
1388
Using the ``locale`` parameter you can set a different locale language,
1389
1389
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_]:
1394
1394
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03'],
1395
1395
dtype='datetime64[ns]', freq='D')
1396
1396
>>> 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 ')
1398
1398
"""
1399
1399
values = self ._local_timestamps ()
1400
1400
0 commit comments