Skip to content

Commit b23e39d

Browse files
Merge remote-tracking branch 'upstream/main' into ci-numpy-legacy-state
2 parents 0bffc75 + 2a1ca9d commit b23e39d

File tree

19 files changed

+94
-57
lines changed

19 files changed

+94
-57
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
157157

158158
- name: Build wheels
159-
uses: pypa/[email protected].0
159+
uses: pypa/[email protected].3
160160
with:
161161
package-dir: ./dist/${{ startsWith(matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
162162
env:

ci/code_checks.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8585
-i "pandas.Timestamp.resolution PR02" \
8686
-i "pandas.Timestamp.tzinfo GL08" \
8787
-i "pandas.Timestamp.year GL08" \
88-
-i "pandas.api.types.is_iterator PR07,SA01" \
8988
-i "pandas.api.types.is_re_compilable PR07,SA01" \
9089
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
9190
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
@@ -144,7 +143,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
144143
-i "pandas.io.stata.StataWriter.write_file SA01" \
145144
-i "pandas.plotting.andrews_curves RT03,SA01" \
146145
-i "pandas.plotting.scatter_matrix PR07,SA01" \
147-
-i "pandas.set_eng_float_format RT03,SA01" \
148146
-i "pandas.tseries.offsets.BDay PR02,SA01" \
149147
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
150148
-i "pandas.tseries.offsets.BQuarterBegin.n GL08" \

doc/source/user_guide/cookbook.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ These are some neat pandas ``idioms``
3535
)
3636
df
3737
38-
if-then...
38+
If-then...
3939
**********
4040

4141
An if-then on one column
@@ -176,7 +176,7 @@ One could hard code:
176176
Selection
177177
---------
178178

179-
Dataframes
179+
DataFrames
180180
**********
181181

182182
The :ref:`indexing <indexing>` docs.
@@ -1489,7 +1489,7 @@ of the data values:
14891489
)
14901490
df
14911491
1492-
Constant series
1492+
Constant Series
14931493
---------------
14941494

14951495
To assess if a series has a constant value, we can check if ``series.nunique() <= 1``.

doc/source/user_guide/gotchas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Below is how to check if any of the values are ``True``:
121121
if pd.Series([False, True, False]).any():
122122
print("I am any")
123123
124-
Bitwise boolean
124+
Bitwise Boolean
125125
~~~~~~~~~~~~~~~
126126

127127
Bitwise boolean operators like ``==`` and ``!=`` return a boolean :class:`Series`

doc/source/user_guide/groupby.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ this will make an extra copy.
618618
619619
.. _groupby.aggregate.udf:
620620

621-
Aggregation with User-Defined Functions
621+
Aggregation with user-defined functions
622622
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
623623

624624
Users can also provide their own User-Defined Functions (UDFs) for custom aggregations.
@@ -1261,7 +1261,7 @@ with
12611261
df.groupby("A", group_keys=False).apply(lambda x: x, include_groups=False)
12621262
12631263
1264-
Numba Accelerated Routines
1264+
Numba accelerated routines
12651265
--------------------------
12661266

12671267
.. versionadded:: 1.1
@@ -1696,7 +1696,7 @@ introduction <categorical>` and the
16961696
16971697
dfg.groupby(["A", [0, 0, 0, 1, 1]]).ngroup()
16981698
1699-
Groupby by indexer to 'resample' data
1699+
GroupBy by indexer to 'resample' data
17001700
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17011701

17021702
Resampling produces new hypothetical samples (resamples) from already existing observed data or from a model that generates data. These new samples are similar to the pre-existing samples.

doc/source/user_guide/integer_na.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Reduction and groupby operations such as :meth:`~DataFrame.sum` work as well.
147147
df.sum()
148148
df.groupby("B").A.sum()
149149
150-
Scalar NA Value
150+
Scalar NA value
151151
---------------
152152

153153
:class:`arrays.IntegerArray` uses :attr:`pandas.NA` as its scalar

doc/source/user_guide/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5996,7 +5996,7 @@ Full documentation can be found `here <https://pandas-gbq.readthedocs.io/en/late
59965996

59975997
.. _io.stata:
59985998

5999-
Stata format
5999+
STATA format
60006000
------------
60016001

60026002
.. _io.stata_writer:

doc/source/whatsnew/v1.0.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Fixed regressions
4747

4848
.. ---------------------------------------------------------------------------
4949
50-
Indexing with nullable boolean arrays
50+
Indexing with nullable Boolean arrays
5151
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5252

5353
Previously indexing with a nullable Boolean array containing ``NA`` would raise a ``ValueError``, however this is now permitted with ``NA`` being treated as ``False``. (:issue:`31503`)

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ Performance improvements
592592
- Performance improvement in :meth:`RangeIndex.take` returning a :class:`RangeIndex` instead of a :class:`Index` when possible. (:issue:`57445`, :issue:`57752`)
593593
- Performance improvement in :func:`merge` if hash-join can be used (:issue:`57970`)
594594
- Performance improvement in :meth:`CategoricalDtype.update_dtype` when ``dtype`` is a :class:`CategoricalDtype` with non ``None`` categories and ordered (:issue:`59647`)
595+
- Performance improvement in :meth:`DataFrame.astype` when converting to extension floating dtypes, e.g. "Float64" (:issue:`60066`)
595596
- Performance improvement in :meth:`to_hdf` avoid unnecessary reopenings of the HDF5 file to speedup data addition to files with a very large number of groups . (:issue:`58248`)
596597
- Performance improvement in ``DataFrameGroupBy.__len__`` and ``SeriesGroupBy.__len__`` (:issue:`57595`)
597598
- Performance improvement in indexing operations for string dtypes (:issue:`56997`)

pandas/_libs/lib.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,23 @@ def is_iterator(obj: object) -> bool:
259259
Check if the object is an iterator.
260260

261261
This is intended for generators, not list-like objects.
262+
This method checks whether the passed object is an iterator. It
263+
returns `True` if the object is an iterator, and `False` otherwise.
262264

263265
Parameters
264266
----------
265267
obj : The object to check
268+
The object to check for iterator type.
266269

267270
Returns
268271
-------
269272
is_iter : bool
270273
Whether `obj` is an iterator.
274+
`True` if the object is of iterator type, otherwise `False`.
275+
276+
See Also
277+
--------
278+
api.types.is_list_like : Check if the input is list-like.
271279

272280
Examples
273281
--------

0 commit comments

Comments
 (0)