Skip to content

Commit 2a66aea

Browse files
bwignallproost
authored andcommitted
DOC: fix typos (pandas-dev#29739)
1 parent 1bcf95e commit 2a66aea

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

pandas/_libs/hashing.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def hash_object_array(object[:] arr, object key, object encoding='utf8'):
7575
lens[i] = l
7676
cdata = data
7777

78-
# keep the references alive thru the end of the
78+
# keep the references alive through the end of the
7979
# function
8080
datas.append(data)
8181
vecs[i] = cdata

pandas/_libs/hashtable_func_helper.pxi.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ def duplicated_{{dtype}}({{c_type}}[:] values, object keep='first'):
144144
if keep == 'last':
145145
{{if dtype == 'object'}}
146146
for i in range(n - 1, -1, -1):
147-
# equivalent: range(n)[::-1], which cython doesnt like in nogil
147+
# equivalent: range(n)[::-1], which cython doesn't like in nogil
148148
kh_put_{{ttype}}(table, <PyObject*>values[i], &ret)
149149
out[i] = ret == 0
150150
{{else}}
151151
with nogil:
152152
for i in range(n - 1, -1, -1):
153-
# equivalent: range(n)[::-1], which cython doesnt like in nogil
153+
# equivalent: range(n)[::-1], which cython doesn't like in nogil
154154
kh_put_{{ttype}}(table, values[i], &ret)
155155
out[i] = ret == 0
156156
{{endif}}

pandas/_libs/window.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ def roll_weighted_var(float64_t[:] values, float64_t[:] weights,
19141914
values: float64_t[:]
19151915
values to roll window over
19161916
weights: float64_t[:]
1917-
array of weights whose lenght is window size
1917+
array of weights whose length is window size
19181918
minp: int64_t
19191919
minimum number of observations to calculate
19201920
variance of a window

pandas/core/algorithms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _ensure_data(values, dtype=None):
109109

110110
except (TypeError, ValueError, OverflowError):
111111
# if we are trying to coerce to a dtype
112-
# and it is incompat this will fall thru to here
112+
# and it is incompat this will fall through to here
113113
return ensure_object(values), "object"
114114

115115
# datetimelike

pandas/core/arrays/datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ def mean(self, skipna=True):
14861486
values = self
14871487

14881488
if not len(values):
1489-
# short-circut for empty max / min
1489+
# short-circuit for empty max / min
14901490
return NaT
14911491

14921492
result = nanops.nanmean(values.view("i8"), skipna=skipna)

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ def idxmin(self, axis=0, skipna=True, *args, **kwargs):
20872087
will be NA.
20882088
*args, **kwargs
20892089
Additional arguments and keywords have no effect but might be
2090-
accepted for compatability with NumPy.
2090+
accepted for compatibility with NumPy.
20912091
20922092
Returns
20932093
-------

pandas/io/formats/style.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ def _get_level_lengths(index, hidden_elements=None):
14501450
Optional argument is a list of index positions which
14511451
should not be visible.
14521452
1453-
Result is a dictionary of (level, inital_position): span
1453+
Result is a dictionary of (level, initial_position): span
14541454
"""
14551455
sentinel = object()
14561456
levels = index.format(sparsify=sentinel, adjoin=False, names=False)

0 commit comments

Comments
 (0)