Skip to content

Commit 6da7717

Browse files
authored
Merge branch 'main' into Test_issue_57930
2 parents 0cbfa87 + 2a1ca9d commit 6da7717

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+383
-186
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:

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ minimum_pre_commit_version: 2.15.0
22
exclude: ^LICENSES/|\.(html|csv|svg)$
33
# reserve "manual" for relatively slow hooks which we still want to run in CI
44
default_stages: [
5-
commit,
6-
merge-commit,
7-
push,
5+
pre-commit,
6+
pre-merge-commit,
7+
pre-push,
88
prepare-commit-msg,
99
commit-msg,
1010
post-checkout,

ci/code_checks.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +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_integer PR01,SA01" \
89-
-i "pandas.api.types.is_iterator PR07,SA01" \
9088
-i "pandas.api.types.is_re_compilable PR07,SA01" \
9189
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
9290
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
@@ -97,7 +95,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9795
-i "pandas.arrays.NumpyExtensionArray SA01" \
9896
-i "pandas.arrays.SparseArray PR07,SA01" \
9997
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
100-
-i "pandas.core.groupby.DataFrameGroupBy.__iter__ RT03,SA01" \
10198
-i "pandas.core.groupby.DataFrameGroupBy.boxplot PR07,RT03,SA01" \
10299
-i "pandas.core.groupby.DataFrameGroupBy.get_group RT03,SA01" \
103100
-i "pandas.core.groupby.DataFrameGroupBy.groups SA01" \
@@ -106,7 +103,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
106103
-i "pandas.core.groupby.DataFrameGroupBy.nunique SA01" \
107104
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
108105
-i "pandas.core.groupby.DataFrameGroupBy.sem SA01" \
109-
-i "pandas.core.groupby.SeriesGroupBy.__iter__ RT03,SA01" \
110106
-i "pandas.core.groupby.SeriesGroupBy.get_group RT03,SA01" \
111107
-i "pandas.core.groupby.SeriesGroupBy.groups SA01" \
112108
-i "pandas.core.groupby.SeriesGroupBy.indices SA01" \
@@ -115,7 +111,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
115111
-i "pandas.core.groupby.SeriesGroupBy.nth PR02" \
116112
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
117113
-i "pandas.core.groupby.SeriesGroupBy.sem SA01" \
118-
-i "pandas.core.resample.Resampler.__iter__ RT03,SA01" \
119114
-i "pandas.core.resample.Resampler.get_group RT03,SA01" \
120115
-i "pandas.core.resample.Resampler.groups SA01" \
121116
-i "pandas.core.resample.Resampler.indices SA01" \
@@ -126,11 +121,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
126121
-i "pandas.core.resample.Resampler.quantile PR01,PR07" \
127122
-i "pandas.core.resample.Resampler.sem SA01" \
128123
-i "pandas.core.resample.Resampler.std SA01" \
129-
-i "pandas.core.resample.Resampler.sum SA01" \
130124
-i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \
131125
-i "pandas.core.resample.Resampler.var SA01" \
132126
-i "pandas.errors.AttributeConflictWarning SA01" \
133-
-i "pandas.errors.CSSWarning SA01" \
134127
-i "pandas.errors.ChainedAssignmentError SA01" \
135128
-i "pandas.errors.DataError SA01" \
136129
-i "pandas.errors.DuplicateLabelError SA01" \
@@ -139,22 +132,17 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
139132
-i "pandas.errors.NullFrequencyError SA01" \
140133
-i "pandas.errors.NumExprClobberingError SA01" \
141134
-i "pandas.errors.NumbaUtilError SA01" \
142-
-i "pandas.errors.OptionError SA01" \
143135
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
144136
-i "pandas.errors.PerformanceWarning SA01" \
145137
-i "pandas.errors.PossibleDataLossError SA01" \
146-
-i "pandas.errors.PossiblePrecisionLoss SA01" \
147138
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
148139
-i "pandas.errors.UnsortedIndexError SA01" \
149-
-i "pandas.errors.UnsupportedFunctionCall SA01" \
150140
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
151141
-i "pandas.infer_freq SA01" \
152142
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
153143
-i "pandas.io.stata.StataWriter.write_file SA01" \
154-
-i "pandas.json_normalize RT03,SA01" \
155144
-i "pandas.plotting.andrews_curves RT03,SA01" \
156145
-i "pandas.plotting.scatter_matrix PR07,SA01" \
157-
-i "pandas.set_eng_float_format RT03,SA01" \
158146
-i "pandas.tseries.offsets.BDay PR02,SA01" \
159147
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
160148
-i "pandas.tseries.offsets.BQuarterBegin.n GL08" \
@@ -300,7 +288,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
300288
-i "pandas.tseries.offsets.Second.is_on_offset GL08" \
301289
-i "pandas.tseries.offsets.Second.n GL08" \
302290
-i "pandas.tseries.offsets.Second.normalize GL08" \
303-
-i "pandas.tseries.offsets.SemiMonthBegin SA01" \
304291
-i "pandas.tseries.offsets.SemiMonthBegin.day_of_month GL08" \
305292
-i "pandas.tseries.offsets.SemiMonthBegin.is_on_offset GL08" \
306293
-i "pandas.tseries.offsets.SemiMonthBegin.n GL08" \

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies:
5252
- scipy>=1.10.0
5353
- sqlalchemy>=2.0.0
5454
- tabulate>=0.9.0
55-
- xarray>=2022.12.0
55+
- xarray>=2022.12.0, <=2024.9.0
5656
- xlrd>=2.0.1
5757
- xlsxwriter>=3.0.5
5858
- zstandard>=0.19.0

ci/deps/actions-311-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies:
5353
- scipy>=1.10.0
5454
- sqlalchemy>=2.0.0
5555
- tabulate>=0.9.0
56-
- xarray>=2022.12.0
56+
- xarray>=2022.12.0, <=2024.9.0
5757
- xlrd>=2.0.1
5858
- xlsxwriter>=3.0.5
5959
- zstandard>=0.19.0

ci/deps/actions-311.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies:
5252
- scipy>=1.10.0
5353
- sqlalchemy>=2.0.0
5454
- tabulate>=0.9.0
55-
- xarray>=2022.12.0
55+
- xarray>=2022.12.0, <=2024.9.0
5656
- xlrd>=2.0.1
5757
- xlsxwriter>=3.0.5
5858
- zstandard>=0.19.0

ci/deps/actions-312.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies:
5252
- scipy>=1.10.0
5353
- sqlalchemy>=2.0.0
5454
- tabulate>=0.9.0
55-
- xarray>=2022.12.0
55+
- xarray>=2022.12.0, <=2024.9.0
5656
- xlrd>=2.0.1
5757
- xlsxwriter>=3.0.5
5858
- zstandard>=0.19.0

ci/deps/circle-311-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies:
5252
- scipy>=1.10.0
5353
- sqlalchemy>=2.0.0
5454
- tabulate>=0.9.0
55-
- xarray>=2022.12.0
55+
- xarray>=2022.12.0, <2024.10.0
5656
- xlrd>=2.0.1
5757
- xlsxwriter>=3.0.5
5858
- zstandard>=0.19.0

doc/source/development/contributing_codebase.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ So, before actually writing any code, you should write your tests. Often the te
298298
taken from the original GitHub issue. However, it is always worth considering additional
299299
use cases and writing corresponding tests.
300300

301+
We use `code coverage <https://en.wikipedia.org/wiki/Code_coverage>`_ to help understand
302+
the amount of code which is covered by a test. We recommend striving to ensure code
303+
you add or change within Pandas is covered by a test. Please see our
304+
`code coverage dashboard through Codecov <https://app.codecov.io/github/pandas-dev/pandas>`_
305+
for more information.
306+
301307
Adding tests is one of the most common requests after code is pushed to pandas. Therefore,
302308
it is worth getting in the habit of writing tests ahead of time so this is never an issue.
303309

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``.

0 commit comments

Comments
 (0)