Skip to content

Commit 1907822

Browse files
authored
DOC: Fix typos (#61580)
1 parent 05f032c commit 1907822

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

doc/source/user_guide/reshaping.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ variables and the values representing the presence of those variables per row.
395395
pd.get_dummies(df["key"])
396396
df["key"].str.get_dummies()
397397
398-
``prefix`` adds a prefix to the the column names which is useful for merging the result
398+
``prefix`` adds a prefix to the column names which is useful for merging the result
399399
with the original :class:`DataFrame`:
400400

401401
.. ipython:: python

doc/source/user_guide/user_defined_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ to the original data.
319319
320320
In the example, the ``warm_up_all_days`` function computes the ``max`` like an aggregation, but instead
321321
of returning just the maximum value, it returns a ``DataFrame`` with the same shape as the original one
322-
with the values of each day replaced by the the maximum temperature of the city.
322+
with the values of each day replaced by the maximum temperature of the city.
323323

324324
``transform`` is also available for :meth:`SeriesGroupBy.transform`, :meth:`DataFrameGroupBy.transform` and
325325
:meth:`Resampler.transform`, where it's more common. You can read more about ``transform`` in groupby

doc/source/whatsnew/v1.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ Missing
10391039
^^^^^^^
10401040
- Calling :meth:`fillna` on an empty :class:`Series` now correctly returns a shallow copied object. The behaviour is now consistent with :class:`Index`, :class:`DataFrame` and a non-empty :class:`Series` (:issue:`32543`).
10411041
- Bug in :meth:`Series.replace` when argument ``to_replace`` is of type dict/list and is used on a :class:`Series` containing ``<NA>`` was raising a ``TypeError``. The method now handles this by ignoring ``<NA>`` values when doing the comparison for the replacement (:issue:`32621`)
1042-
- Bug in :meth:`~Series.any` and :meth:`~Series.all` incorrectly returning ``<NA>`` for all ``False`` or all ``True`` values using the nulllable Boolean dtype and with ``skipna=False`` (:issue:`33253`)
1042+
- Bug in :meth:`~Series.any` and :meth:`~Series.all` incorrectly returning ``<NA>`` for all ``False`` or all ``True`` values using the nullable Boolean dtype and with ``skipna=False`` (:issue:`33253`)
10431043
- Clarified documentation on interpolate with ``method=akima``. The ``der`` parameter must be scalar or ``None`` (:issue:`33426`)
10441044
- :meth:`DataFrame.interpolate` uses the correct axis convention now. Previously interpolating along columns lead to interpolation along indices and vice versa. Furthermore interpolating with methods ``pad``, ``ffill``, ``bfill`` and ``backfill`` are identical to using these methods with :meth:`DataFrame.fillna` (:issue:`12918`, :issue:`29146`)
10451045
- Bug in :meth:`DataFrame.interpolate` when called on a :class:`DataFrame` with column names of string type was throwing a ValueError. The method is now independent of the type of the column names (:issue:`33956`)

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ Groupby/resample/rolling
833833
- Bug in :meth:`DataFrameGroupby.transform` and :meth:`SeriesGroupby.transform` with a reducer and ``observed=False`` that coerces dtype to float when there are unobserved categories. (:issue:`55326`)
834834
- Bug in :meth:`Rolling.apply` for ``method="table"`` where column order was not being respected due to the columns getting sorted by default. (:issue:`59666`)
835835
- Bug in :meth:`Rolling.apply` where the applied function could be called on fewer than ``min_period`` periods if ``method="table"``. (:issue:`58868`)
836-
- Bug in :meth:`Series.resample` could raise when the the date range ended shortly before a non-existent time. (:issue:`58380`)
836+
- Bug in :meth:`Series.resample` could raise when the date range ended shortly before a non-existent time. (:issue:`58380`)
837837

838838
Reshaping
839839
^^^^^^^^^

pandas/_libs/tslibs/conversion.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ cdef int64_t parse_pydatetime(
797797
dts : *npy_datetimestruct
798798
Needed to use in pydatetime_to_dt64, which writes to it.
799799
creso : NPY_DATETIMEUNIT
800-
Resolution to store the the result.
800+
Resolution to store the result.
801801
802802
Raises
803803
------

pandas/core/arrays/categorical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ def __array__(
16661666
Parameters
16671667
----------
16681668
dtype : np.dtype or None
1669-
Specifies the the dtype for the array.
1669+
Specifies the dtype for the array.
16701670
16711671
copy : bool or None, optional
16721672
See :func:`numpy.asarray`.

pandas/tests/io/xml/test_to_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ def test_ea_dtypes(any_numeric_ea_dtype, parser):
13451345
assert equalize_decl(result).strip() == expected
13461346

13471347

1348-
def test_unsuported_compression(parser, geom_df):
1348+
def test_unsupported_compression(parser, geom_df):
13491349
with pytest.raises(ValueError, match="Unrecognized compression type"):
13501350
with tm.ensure_clean() as path:
13511351
geom_df.to_xml(path, parser=parser, compression="7z")

pandas/tests/io/xml/test_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,7 @@ def test_wrong_compression(parser, compression, compression_only):
19611961
read_xml(path, parser=parser, compression=attempted_compression)
19621962

19631963

1964-
def test_unsuported_compression(parser):
1964+
def test_unsupported_compression(parser):
19651965
with pytest.raises(ValueError, match="Unrecognized compression type"):
19661966
with tm.ensure_clean() as path:
19671967
read_xml(path, parser=parser, compression="7z")

web/pandas/pdeps/0007-copy-on-write.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ following cases:
525525
* Selecting a single column (as a Series) out of a DataFrame is always a view
526526
(``df['a']``)
527527
* Slicing columns from a DataFrame creating a subset DataFrame (``df[['a':'b']]`` or
528-
``df.loc[:, 'a': 'b']``) is a view _if_ the the original DataFrame consists of a
528+
``df.loc[:, 'a': 'b']``) is a view _if_ the original DataFrame consists of a
529529
single block (single dtype, consolidated) and _if_ you are slicing (so not a list
530530
selection). In all other cases, getting a subset is always a copy.
531531
* Selecting rows _can_ return a view, when the row indexer is a `slice` object.

web/pandas/pdeps/0014-string-dtype.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ in pandas 2.3 and removed in pandas 3.0.
220220

221221
The `storage` keyword of `StringDtype` is kept to disambiguate the underlying
222222
storage of the string data (using pyarrow or python objects), but an additional
223-
`na_value` is introduced to disambiguate the the variants using NA semantics
224-
and NaN semantics.
223+
`na_value` is introduced to disambiguate the variants using NA semantics and
224+
NaN semantics.
225225

226226
Overview of the different ways to specify a dtype and the resulting concrete
227227
dtype of the data:

0 commit comments

Comments
 (0)