Skip to content

Commit

Permalink
DOC: fix typos (pandas-dev#29739)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwignall authored and proost committed Dec 19, 2019
1 parent 7e86c05 commit 23f7566
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pandas/_libs/hashing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def hash_object_array(object[:] arr, object key, object encoding='utf8'):
lens[i] = l
cdata = data

# keep the references alive thru the end of the
# keep the references alive through the end of the
# function
datas.append(data)
vecs[i] = cdata
Expand Down
4 changes: 2 additions & 2 deletions pandas/_libs/hashtable_func_helper.pxi.in
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ def duplicated_{{dtype}}({{c_type}}[:] values, object keep='first'):
if keep == 'last':
{{if dtype == 'object'}}
for i in range(n - 1, -1, -1):
# equivalent: range(n)[::-1], which cython doesnt like in nogil
# equivalent: range(n)[::-1], which cython doesn't like in nogil
kh_put_{{ttype}}(table, <PyObject*>values[i], &ret)
out[i] = ret == 0
{{else}}
with nogil:
for i in range(n - 1, -1, -1):
# equivalent: range(n)[::-1], which cython doesnt like in nogil
# equivalent: range(n)[::-1], which cython doesn't like in nogil
kh_put_{{ttype}}(table, values[i], &ret)
out[i] = ret == 0
{{endif}}
Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/window.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ def roll_weighted_var(float64_t[:] values, float64_t[:] weights,
values: float64_t[:]
values to roll window over
weights: float64_t[:]
array of weights whose lenght is window size
array of weights whose length is window size
minp: int64_t
minimum number of observations to calculate
variance of a window
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _ensure_data(values, dtype=None):

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

# datetimelike
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/arrays/datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ def mean(self, skipna=True):
values = self

if not len(values):
# short-circut for empty max / min
# short-circuit for empty max / min
return NaT

result = nanops.nanmean(values.view("i8"), skipna=skipna)
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ def idxmin(self, axis=0, skipna=True, *args, **kwargs):
will be NA.
*args, **kwargs
Additional arguments and keywords have no effect but might be
accepted for compatability with NumPy.
accepted for compatibility with NumPy.
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ def _get_level_lengths(index, hidden_elements=None):
Optional argument is a list of index positions which
should not be visible.
Result is a dictionary of (level, inital_position): span
Result is a dictionary of (level, initial_position): span
"""
sentinel = object()
levels = index.format(sparsify=sentinel, adjoin=False, names=False)
Expand Down

0 comments on commit 23f7566

Please sign in to comment.