Skip to content

Commit 3079a46

Browse files
roadrollerdafjorstpmhatre1
authored andcommitted
DOC: fixed EX03 errors in docstrings for pandas.Series.dt.day_name and pandas.Series.dt.day_name (pandas-dev#56835)
resolve flake8 errors
1 parent 42cf97a commit 3079a46

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
7171

7272
MSG='Partially validate docstrings (EX03)' ; echo $MSG
7373
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX03 --ignore_functions \
74-
pandas.Series.dt.day_name \
75-
pandas.Series.str.len \
7674
pandas.Series.cat.set_categories \
7775
pandas.Series.plot.bar \
7876
pandas.Series.plot.hist \

pandas/core/arrays/datetimes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
13651365
>>> idx
13661366
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03'],
13671367
dtype='datetime64[ns]', freq='D')
1368-
>>> idx.day_name(locale='pt_BR.utf8') # doctest: +SKIP
1368+
>>> idx.day_name(locale='pt_BR.utf8') # doctest: +SKIP
13691369
Index(['Segunda', 'Terça', 'Quarta'], dtype='object')
13701370
"""
13711371
values = self._local_timestamps()

pandas/core/strings/accessor.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -3055,11 +3055,11 @@ def len(self):
30553055
number of entries for dictionaries, lists or tuples.
30563056
30573057
>>> s = pd.Series(['dog',
3058-
... '',
3059-
... 5,
3060-
... {'foo' : 'bar'},
3061-
... [2, 3, 5, 7],
3062-
... ('one', 'two', 'three')])
3058+
... '',
3059+
... 5,
3060+
... {'foo' : 'bar'},
3061+
... [2, 3, 5, 7],
3062+
... ('one', 'two', 'three')])
30633063
>>> s
30643064
0 dog
30653065
1

0 commit comments

Comments
 (0)