Skip to content

DOC: fix typos #29739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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