Skip to content

Commit 8bd9f64

Browse files
validate PR09 errors (#44524)
* validate PR09 errors * fullstops Added * timestamps.pyx updated with a fullstop * full stop added to rolling.py and shared_docs.py * backticks added to Latex position argument * merge_conflict_resolved_PRO9 * remove extra blank line Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent 835c78e commit 8bd9f64

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

ci/code_checks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ fi
9393
### DOCSTRINGS ###
9494
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9595

96-
MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS03, SS04, SS05, PR03, PR04, PR05, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG
97-
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS03,SS04,SS05,PR03,PR04,PR05,PR10,EX04,RT01,RT04,RT05,SA02,SA03
96+
MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS03, SS04, SS05, PR03, PR04, PR05, PRO9, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG
97+
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS03,SS04,SS05,PR03,PR04,PR05,PR09,PR10,EX04,RT01,RT04,RT05,SA02,SA03
9898
RET=$(($RET + $?)) ; echo $MSG "DONE"
9999

100100
fi

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ class Timestamp(_Timestamp):
10191019
Due to daylight saving time, one wall clock time can occur twice
10201020
when shifting from summer to winter time; fold describes whether the
10211021
datetime-like corresponds to the first (0) or the second time (1)
1022-
the wall clock hits the ambiguous time
1022+
the wall clock hits the ambiguous time.
10231023
10241024
.. versionadded:: 1.1.0
10251025

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7748,7 +7748,7 @@ def update(
77487748
Wild 185.0
77497749
77507750
We can also choose to include NA in group keys or not by setting
7751-
`dropna` parameter, the default setting is `True`:
7751+
`dropna` parameter, the default setting is `True`.
77527752
77537753
>>> l = [[1, 2, 3], [1, None, 4], [2, 1, 3], [1, 2, 2]]
77547754
>>> df = pd.DataFrame(l, columns=["a", "b", "c"])

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ def _set_name(self, name, inplace=False) -> Series:
18381838
Name: Max Speed, dtype: float64
18391839
18401840
We can also choose to include `NA` in group keys or not by defining
1841-
`dropna` parameter, the default setting is `True`:
1841+
`dropna` parameter, the default setting is `True`.
18421842
18431843
>>> ser = pd.Series([1, 2, 3, 3], index=["a", 'a', 'b', np.nan])
18441844
>>> ser.groupby(level=0).sum()

pandas/core/shared_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
dropna : bool, default True
127127
If True, and if group keys contain NA values, NA values together
128128
with row/column will be dropped.
129-
If False, NA values will also be treated as the key in groups
129+
If False, NA values will also be treated as the key in groups.
130130
131131
.. versionadded:: 1.1.0
132132

pandas/core/window/rolling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ class Window(BaseWindow):
912912
If ``'neither'``, the first and last points in the window are excluded
913913
from calculations.
914914
915-
Default ``None`` (``'right'``)
915+
Default ``None`` (``'right'``).
916916
917917
.. versionchanged:: 1.2.0
918918

pandas/io/formats/style.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class Styler(StylerRenderer):
159159
in cell display string with HTML-safe sequences.
160160
Use 'latex' to replace the characters ``&``, ``%``, ``$``, ``#``, ``_``,
161161
``{``, ``}``, ``~``, ``^``, and ``\`` in the cell display string with
162-
LaTeX-safe sequences. If not given uses ``pandas.options.styler.format.escape``
162+
LaTeX-safe sequences. If not given uses ``pandas.options.styler.format.escape``.
163163
164164
.. versionadded:: 1.3.0
165165
formatter : str, callable, dict, optional
@@ -527,7 +527,7 @@ def to_latex(
527527
position : str, optional
528528
The LaTeX positional argument (e.g. 'h!') for tables, placed in location:
529529
530-
\\begin{table}[<position>]
530+
``\\begin{table}[<position>]``.
531531
position_float : {"centering", "raggedleft", "raggedright"}, optional
532532
The LaTeX float command placed in location:
533533
@@ -2842,7 +2842,7 @@ def bar(
28422842
When None (default): the maximum value of the data will be used.
28432843
props : str, optional
28442844
The base CSS of the cell that is extended to add the bar chart. Defaults to
2845-
`"width: 10em;"`
2845+
`"width: 10em;"`.
28462846
28472847
.. versionadded:: 1.4.0
28482848
@@ -3143,7 +3143,7 @@ def highlight_quantile(
31433143
----------
31443144
%(subset)s
31453145
color : str, default 'yellow'
3146-
Background color to use for highlighting
3146+
Background color to use for highlighting.
31473147
axis : {0 or 'index', 1 or 'columns', None}, default 0
31483148
Axis along which to determine and highlight quantiles. If ``None`` quantiles
31493149
are measured over the entire DataFrame. See examples.

pandas/io/formats/style_render.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -817,12 +817,12 @@ def format(
817817
.. versionadded:: 1.3.0
818818
819819
decimal : str, default "."
820-
Character used as decimal separator for floats, complex and integers
820+
Character used as decimal separator for floats, complex and integers.
821821
822822
.. versionadded:: 1.3.0
823823
824824
thousands : str, optional, default None
825-
Character used as thousands separator for floats, complex and integers
825+
Character used as thousands separator for floats, complex and integers.
826826
827827
.. versionadded:: 1.3.0
828828
@@ -1011,9 +1011,9 @@ def format_index(
10111011
Floating point precision to use for display purposes, if not determined by
10121012
the specified ``formatter``.
10131013
decimal : str, default "."
1014-
Character used as decimal separator for floats, complex and integers
1014+
Character used as decimal separator for floats, complex and integers.
10151015
thousands : str, optional, default None
1016-
Character used as thousands separator for floats, complex and integers
1016+
Character used as thousands separator for floats, complex and integers.
10171017
escape : str, optional
10181018
Use 'html' to replace the characters ``&``, ``<``, ``>``, ``'``, and ``"``
10191019
in cell display string with HTML-safe sequences.

pandas/io/parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def read_parquet(
457457
A file URL can also be a path to a directory that contains multiple
458458
partitioned parquet files. Both pyarrow and fastparquet support
459459
paths to directories as well as file URLs. A directory path could be:
460-
``file://localhost/path/to/tables`` or ``s3://bucket/partition_dir``
460+
``file://localhost/path/to/tables`` or ``s3://bucket/partition_dir``.
461461
engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto'
462462
Parquet library to use. If 'auto', then the option
463463
``io.parquet.engine`` is used. The default ``io.parquet.engine``

pandas/io/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def read_sql_query(
376376
rows to include in each chunk.
377377
dtype : Type name or dict of columns
378378
Data type for data or columns. E.g. np.float64 or
379-
{‘a’: np.float64, ‘b’: np.int32, ‘c’: ‘Int64’}
379+
{‘a’: np.float64, ‘b’: np.int32, ‘c’: ‘Int64’}.
380380
381381
.. versionadded:: 1.3.0
382382

0 commit comments

Comments
 (0)