Skip to content

Commit cb6d8fd

Browse files
authored
Correct some typos in the repository (#52254)
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
1 parent d86cdb0 commit cb6d8fd

File tree

27 files changed

+35
-35
lines changed

27 files changed

+35
-35
lines changed

doc/source/getting_started/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ Data sets do not only contain numerical data. pandas provides a wide range of fu
533533
Coming from...
534534
--------------
535535

536-
Are you familiar with other software for manipulating tablular data? Learn
536+
Are you familiar with other software for manipulating tabular data? Learn
537537
the pandas-equivalent operations compared to software you already know:
538538

539539
.. panels::

doc/source/user_guide/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ As usual, **both sides** of the slicers are included as this is label indexing.
322322
.. warning::
323323

324324
You should specify all axes in the ``.loc`` specifier, meaning the indexer for the **index** and
325-
for the **columns**. There are some ambiguous cases where the passed indexer could be mis-interpreted
325+
for the **columns**. There are some ambiguous cases where the passed indexer could be misinterpreted
326326
  as indexing *both* axes, rather than into say the ``MultiIndex`` for the rows.
327327

328328
You should do this:

doc/source/user_guide/groupby.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ the columns except the one we specify:
149149
grouped.sum()
150150
151151
The above GroupBy will split the DataFrame on its index (rows). To split by columns, first do
152-
a tranpose:
152+
a transpose:
153153

154154
.. ipython::
155155

pandas/core/apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ def validate_func_kwargs(
14911491
Returns
14921492
-------
14931493
columns : List[str]
1494-
List of user-provied keys.
1494+
List of user-provided keys.
14951495
func : List[Union[str, callable[...,Any]]]
14961496
List of user-provided aggfuncs
14971497

pandas/core/config_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,13 +711,13 @@ def register_converter_cb(key) -> None:
711711
styler_max_rows = """
712712
: int, optional
713713
The maximum number of rows that will be rendered. May still be reduced to
714-
satsify ``max_elements``, which takes precedence.
714+
satisfy ``max_elements``, which takes precedence.
715715
"""
716716

717717
styler_max_columns = """
718718
: int, optional
719719
The maximum number of columns that will be rendered. May still be reduced to
720-
satsify ``max_elements``, which takes precedence.
720+
satisfy ``max_elements``, which takes precedence.
721721
"""
722722

723723
styler_precision = """

pandas/core/dtypes/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ def pandas_dtype(dtype) -> DtypeObj:
16971697
try:
16981698
with warnings.catch_warnings():
16991699
# GH#51523 - Series.astype(np.integer) doesn't show
1700-
# numpy deprication warning of np.integer
1700+
# numpy deprecation warning of np.integer
17011701
# Hence enabling DeprecationWarning
17021702
warnings.simplefilter("always", DeprecationWarning)
17031703
npdtype = np.dtype(dtype)

pandas/core/dtypes/dtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def _parse_dtype_strict(cls, freq: str_type) -> BaseOffset:
901901
return freq_offset
902902

903903
raise TypeError(
904-
"PeriodDtype argument should be string or BaseOffet, "
904+
"PeriodDtype argument should be string or BaseOffset, "
905905
f"got {type(freq).__name__}"
906906
)
907907

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6559,7 +6559,7 @@ def infer_objects(self, copy: bool_t | None = None) -> Self:
65596559
Parameters
65606560
----------
65616561
copy : bool, default True
6562-
Whether to make a copy for non-object or non-inferrable columns
6562+
Whether to make a copy for non-object or non-inferable columns
65636563
or Series.
65646564
65656565
Returns

pandas/io/excel/_pyxlsb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_sheet_data(
8989
file_rows_needed: int | None = None,
9090
) -> list[list[Scalar]]:
9191
data: list[list[Scalar]] = []
92-
prevous_row_number = -1
92+
previous_row_number = -1
9393
# When sparse=True the rows can have different lengths and empty rows are
9494
# not returned. The cells are namedtuples of row, col, value (r, c, v).
9595
for row in sheet.rows(sparse=True):
@@ -99,9 +99,9 @@ def get_sheet_data(
9999
# trim trailing empty elements
100100
converted_row.pop()
101101
if converted_row:
102-
data.extend([[]] * (row_number - prevous_row_number - 1))
102+
data.extend([[]] * (row_number - previous_row_number - 1))
103103
data.append(converted_row)
104-
prevous_row_number = row_number
104+
previous_row_number = row_number
105105
if file_rows_needed is not None and len(data) >= file_rows_needed:
106106
break
107107
if data:

pandas/io/formats/format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def _calc_max_rows_fitted(self) -> int | None:
740740
_, height = get_terminal_size()
741741
if self.max_rows == 0:
742742
# rows available to fill with actual data
743-
return height - self._get_number_of_auxillary_rows()
743+
return height - self._get_number_of_auxiliary_rows()
744744

745745
if self._is_screen_short(height):
746746
max_rows = height
@@ -775,7 +775,7 @@ def _is_screen_narrow(self, max_width) -> bool:
775775
def _is_screen_short(self, max_height) -> bool:
776776
return bool(self.max_rows == 0 and len(self.frame) > max_height)
777777

778-
def _get_number_of_auxillary_rows(self) -> int:
778+
def _get_number_of_auxiliary_rows(self) -> int:
779779
"""Get number of rows occupied by prompt, dots and dimension info."""
780780
dot_row = 1
781781
prompt_row = 1

0 commit comments

Comments
 (0)