Skip to content

Commit f5ea024

Browse files
Merge branch 'main' into fix/read_csv_date_parsing
2 parents 7d7c519 + 2a1ca9d commit f5ea024

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

+389
-189
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 & 16 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,43 +95,35 @@ 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" \
104101
-i "pandas.core.groupby.DataFrameGroupBy.indices SA01" \
105102
-i "pandas.core.groupby.DataFrameGroupBy.nth PR02" \
106103
-i "pandas.core.groupby.DataFrameGroupBy.nunique SA01" \
107-
-i "pandas.core.groupby.DataFrameGroupBy.ohlc SA01" \
108104
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
109105
-i "pandas.core.groupby.DataFrameGroupBy.sem SA01" \
110-
-i "pandas.core.groupby.SeriesGroupBy.__iter__ RT03,SA01" \
111106
-i "pandas.core.groupby.SeriesGroupBy.get_group RT03,SA01" \
112107
-i "pandas.core.groupby.SeriesGroupBy.groups SA01" \
113108
-i "pandas.core.groupby.SeriesGroupBy.indices SA01" \
114109
-i "pandas.core.groupby.SeriesGroupBy.is_monotonic_decreasing SA01" \
115110
-i "pandas.core.groupby.SeriesGroupBy.is_monotonic_increasing SA01" \
116111
-i "pandas.core.groupby.SeriesGroupBy.nth PR02" \
117-
-i "pandas.core.groupby.SeriesGroupBy.ohlc SA01" \
118112
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
119113
-i "pandas.core.groupby.SeriesGroupBy.sem SA01" \
120-
-i "pandas.core.resample.Resampler.__iter__ RT03,SA01" \
121114
-i "pandas.core.resample.Resampler.get_group RT03,SA01" \
122115
-i "pandas.core.resample.Resampler.groups SA01" \
123116
-i "pandas.core.resample.Resampler.indices SA01" \
124117
-i "pandas.core.resample.Resampler.max PR01,RT03,SA01" \
125118
-i "pandas.core.resample.Resampler.mean SA01" \
126119
-i "pandas.core.resample.Resampler.min PR01,RT03,SA01" \
127-
-i "pandas.core.resample.Resampler.ohlc SA01" \
128120
-i "pandas.core.resample.Resampler.prod SA01" \
129121
-i "pandas.core.resample.Resampler.quantile PR01,PR07" \
130122
-i "pandas.core.resample.Resampler.sem SA01" \
131123
-i "pandas.core.resample.Resampler.std SA01" \
132-
-i "pandas.core.resample.Resampler.sum SA01" \
133124
-i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \
134125
-i "pandas.core.resample.Resampler.var SA01" \
135126
-i "pandas.errors.AttributeConflictWarning SA01" \
136-
-i "pandas.errors.CSSWarning SA01" \
137127
-i "pandas.errors.ChainedAssignmentError SA01" \
138128
-i "pandas.errors.DataError SA01" \
139129
-i "pandas.errors.DuplicateLabelError SA01" \
@@ -142,22 +132,17 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
142132
-i "pandas.errors.NullFrequencyError SA01" \
143133
-i "pandas.errors.NumExprClobberingError SA01" \
144134
-i "pandas.errors.NumbaUtilError SA01" \
145-
-i "pandas.errors.OptionError SA01" \
146135
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
147136
-i "pandas.errors.PerformanceWarning SA01" \
148137
-i "pandas.errors.PossibleDataLossError SA01" \
149-
-i "pandas.errors.PossiblePrecisionLoss SA01" \
150138
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
151139
-i "pandas.errors.UnsortedIndexError SA01" \
152-
-i "pandas.errors.UnsupportedFunctionCall SA01" \
153140
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
154141
-i "pandas.infer_freq SA01" \
155142
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
156143
-i "pandas.io.stata.StataWriter.write_file SA01" \
157-
-i "pandas.json_normalize RT03,SA01" \
158144
-i "pandas.plotting.andrews_curves RT03,SA01" \
159145
-i "pandas.plotting.scatter_matrix PR07,SA01" \
160-
-i "pandas.set_eng_float_format RT03,SA01" \
161146
-i "pandas.tseries.offsets.BDay PR02,SA01" \
162147
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
163148
-i "pandas.tseries.offsets.BQuarterBegin.n GL08" \
@@ -303,7 +288,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
303288
-i "pandas.tseries.offsets.Second.is_on_offset GL08" \
304289
-i "pandas.tseries.offsets.Second.n GL08" \
305290
-i "pandas.tseries.offsets.Second.normalize GL08" \
306-
-i "pandas.tseries.offsets.SemiMonthBegin SA01" \
307291
-i "pandas.tseries.offsets.SemiMonthBegin.day_of_month GL08" \
308292
-i "pandas.tseries.offsets.SemiMonthBegin.is_on_offset GL08" \
309293
-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)