Skip to content

Commit a72fa1b

Browse files
authored
CLN/DOC: typos (#46328)
* fix typos * fix typo * fix typo * fix typo
1 parent 17dda44 commit a72fa1b

File tree

19 files changed

+22
-22
lines changed

19 files changed

+22
-22
lines changed

pandas/_libs/hashtable_func_helper.pxi.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ cdef ismember_{{dtype}}(const {{dtype}}_t[:] arr, const {{dtype}}_t[:] values):
190190

191191
Returns
192192
-------
193-
boolean ndarry len of (arr)
193+
boolean ndarray len of (arr)
194194
"""
195195
cdef:
196196
Py_ssize_t i, n

pandas/_libs/index.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ cdef class ExtensionEngine(SharedEngine):
10661066
try:
10671067
return self.values == val
10681068
except TypeError:
1069-
# e.g. if __eq__ returns a BooleanArray instead of ndarry[bool]
1069+
# e.g. if __eq__ returns a BooleanArray instead of ndarray[bool]
10701070
try:
10711071
return (self.values == val).to_numpy(dtype=bool, na_value=False)
10721072
except (TypeError, AttributeError) as err:

pandas/core/arrays/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ def _reduce(self, name: str, *, skipna: bool = True, **kwargs):
14011401

14021402
# ------------------------------------------------------------------------
14031403
# Non-Optimized Default Methods; in the case of the private methods here,
1404-
# these are not guaranteeed to be stable across pandas versions.
1404+
# these are not guaranteed to be stable across pandas versions.
14051405

14061406
def tolist(self) -> list:
14071407
"""

pandas/core/indexes/multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ def swaplevel(self, i=-2, j=-1) -> MultiIndex:
23112311
See Also
23122312
--------
23132313
Series.swaplevel : Swap levels i and j in a MultiIndex.
2314-
Dataframe.swaplevel : Swap levels i and j in a MultiIndex on a
2314+
DataFrame.swaplevel : Swap levels i and j in a MultiIndex on a
23152315
particular axis.
23162316
23172317
Examples

pandas/io/formats/style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3423,7 +3423,7 @@ def highlight_between(
34233423
34243424
.. figure:: ../../_static/style/hbetw_basic.png
34253425
3426-
Using a range input sequnce along an ``axis``, in this case setting a ``left``
3426+
Using a range input sequence along an ``axis``, in this case setting a ``left``
34273427
and ``right`` for each column individually
34283428
34293429
>>> df.style.highlight_between(left=[1.4, 2.4, 3.4], right=[1.6, 2.6, 3.6],

pandas/io/formats/style_render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def _generate_col_header_row(self, iter: tuple, max_cols: int, col_lengths: dict
436436
Looping variables from outer scope
437437
max_cols : int
438438
Permissible number of columns
439-
col_lenths :
439+
col_lengths :
440440
c
441441
442442
Returns

pandas/io/formats/xml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class BaseXMLFormatter:
6262
elem_cols : list
6363
List of columns to write as children in row element.
6464
65-
namespacess : dict
65+
namespaces : dict
6666
The namespaces to define in XML document as dicts with key
6767
being namespace and value the URI.
6868
@@ -485,9 +485,9 @@ def build_tree(self) -> bytes:
485485

486486
def convert_empty_str_key(self) -> None:
487487
"""
488-
Replace zero-lengh string in `namespaces`.
488+
Replace zero-length string in `namespaces`.
489489
490-
This method will replce '' with None to align to `lxml`
490+
This method will replace '' with None to align to `lxml`
491491
requirement that empty string prefixes are not allowed.
492492
"""
493493

pandas/io/xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class _XMLFrameParser:
6060
The XPath expression to parse required set of nodes for
6161
migration to `Data Frame`. `etree` supports limited XPath.
6262
63-
namespacess : dict
63+
namespaces : dict
6464
The namespaces defined in XML document (`xmlns:namespace='URI')
6565
as dicts with key being namespace and value the URI.
6666

pandas/tests/arithmetic/test_datetime64.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ def test_dti_add_tdi(self, tz_naive_fixture):
20182018
expected = date_range("2017-01-01", periods=10, tz=tz)
20192019
expected = expected._with_freq(None)
20202020

2021-
# add with TimdeltaIndex
2021+
# add with TimedeltaIndex
20222022
result = dti + tdi
20232023
tm.assert_index_equal(result, expected)
20242024

@@ -2040,7 +2040,7 @@ def test_dti_iadd_tdi(self, tz_naive_fixture):
20402040
expected = date_range("2017-01-01", periods=10, tz=tz)
20412041
expected = expected._with_freq(None)
20422042

2043-
# iadd with TimdeltaIndex
2043+
# iadd with TimedeltaIndex
20442044
result = DatetimeIndex([Timestamp("2017-01-01", tz=tz)] * 10)
20452045
result += tdi
20462046
tm.assert_index_equal(result, expected)

pandas/tests/arrays/masked_shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_ufunc_with_out(self, dtype):
127127
assert isinstance(result, np.ndarray)
128128
assert result.all()
129129

130-
# result |= mask worked because mask could be cast lossslessly to
130+
# result |= mask worked because mask could be cast losslessly to
131131
# boolean ndarray. mask2 can't, so this raises
132132
result = np.zeros(3, dtype=bool)
133133
msg = "Specify an appropriate 'na_value' for this dtype"

0 commit comments

Comments
 (0)