Skip to content

DOC: fix typos newly found by codespell #55859

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

Closed
wants to merge 1 commit into from
Closed
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 doc/source/development/debugging_extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ By default building pandas from source will generate a release build. To generat

.. note::

conda environements update CFLAGS/CPPFLAGS with flags that are geared towards generating releases. If using conda, you may need to set ``CFLAGS="$CFLAGS -O0"`` and ``CPPFLAGS="$CPPFLAGS -O0"`` to ensure optimizations are turned off for debugging
conda environments update CFLAGS/CPPFLAGS with flags that are geared towards generating releases. If using conda, you may need to set ``CFLAGS="$CFLAGS -O0"`` and ``CPPFLAGS="$CPPFLAGS -O0"`` to ensure optimizations are turned off for debugging

By specifying ``builddir="debug"`` all of the targets will be built and placed in the debug directory relative to the project root. This helps to keep your debug and release artifacts separate; you are of course able to choose a different directory name or omit altogether if you do not care to separate build types.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/merging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ Performing an outer join with duplicate join keys in :class:`DataFrame`

.. warning::

Merging on duplicate keys sigificantly increase the dimensions of the result
Merging on duplicate keys significantly increases the dimensions of the result
and can cause a memory overflow.

.. _merging.validation:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/reshaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ The values can be cast to a different type using the ``dtype`` argument.

.. versionadded:: 1.5.0

:func:`~pandas.from_dummies` coverts the output of :func:`~pandas.get_dummies` back into
:func:`~pandas.from_dummies` converts the output of :func:`~pandas.get_dummies` back into
a :class:`Series` of categorical values from indicator values.

.. ipython:: python
Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/parsing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None:
# the offset is separated into two tokens, ex. ['+', '0900’].
# This separation will prevent subsequent processing
# from correctly parsing the time zone format.
# So in addition to the format nomalization, we rejoin them here.
# So in addition to the format normalization, we rejoin them here.
try:
tokens[offset_index] = parsed_datetime.strftime("%z")
except ValueError:
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def _getitem_tuple_same_dim(self, tup: tuple):
This is only called after a failed call to _getitem_lowerdim.
"""
retval = self.obj
# Selecting columns before rows is signficiantly faster
# Selecting columns before rows is significantly faster
start_val = (self.ndim - len(tup)) + 1
for i, key in enumerate(reversed(tup)):
i = self.ndim - i - start_val
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 @@ -2722,7 +2722,7 @@ def hide(
- Boolean
- ValueError: cannot supply ``subset`` and ``level`` simultaneously.

Note this method only hides the identifed elements so can be chained to hide
Note this method only hides the identified elements so can be chained to hide
multiple elements in sequence.

Examples
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/frame/constructors/test_from_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_from_records_sequencelike(self):
columns=df.columns
)

# list of tupels (no dtype info)
# list of tuples (no dtype info)
result4 = DataFrame.from_records(lists, columns=columns).reindex(
columns=df.columns
)
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/indexing/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_loc_setitem_with_expansion_non_category(self, df):
)
tm.assert_frame_equal(df3, expected3)

# Settig a new row _and_ new column
# Setting a new row _and_ new column
df4 = df.copy()
df4.loc["d", "C"] = 10
expected3 = DataFrame(
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/internals/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ def test_make_block_no_pandas_array(block_maker):
assert result.dtype.kind in ["i", "u"]
assert result.is_extension is False

# new_block no longer taked dtype keyword
# new_block no longer takes dtype keyword
# ndarray, NumpyEADtype
result = block_maker(
arr.to_numpy(), slice(len(arr)), dtype=arr.dtype, ndim=arr.ndim
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/reshape/concat/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_categorical_concat_gh7864(self):

def test_categorical_index_upcast(self):
# GH 17629
# test upcasting to object when concatinating on categorical indexes
# test upcasting to object when concatenating on categorical indexes
# with non-identical categories

a = DataFrame({"foo": [1, 2]}, index=Categorical(["foo", "bar"]))
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/series/methods/test_infer_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_infer_objects_series(self, index_or_series):
expected = index_or_series([1.0, 2.0, 3.0, np.nan])
tm.assert_equal(actual, expected)

# only soft conversions, unconvertable pass thru unchanged
# only soft conversions, unconvertible pass thru unchanged

obj = index_or_series(np.array([1, 2, 3, None, "a"], dtype="O"))
actual = obj.infer_objects()
Expand Down