Skip to content

Commit 7e369a9

Browse files
committed
Merge branch 'main' into pandas-devgh-52343-timestamp-from-positional
2 parents c942b70 + 1c2ad16 commit 7e369a9

File tree

163 files changed

+2023
-959
lines changed

Some content is hidden

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

163 files changed

+2023
-959
lines changed

.github/actions/setup-conda/action.yml

-11
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,9 @@ inputs:
99
extra-specs:
1010
description: Extra packages to install
1111
required: false
12-
pyarrow-version:
13-
description: If set, overrides the PyArrow version in the Conda environment to the given string.
14-
required: false
1512
runs:
1613
using: composite
1714
steps:
18-
- name: Set Arrow version in ${{ inputs.environment-file }} to ${{ inputs.pyarrow-version }}
19-
run: |
20-
grep -q ' - pyarrow' ${{ inputs.environment-file }}
21-
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
22-
cat ${{ inputs.environment-file }}
23-
shell: bash
24-
if: ${{ inputs.pyarrow-version }}
25-
2615
- name: Install ${{ inputs.environment-file }}
2716
uses: mamba-org/provision-with-micromamba@v12
2817
with:
File renamed without changes.

.github/workflows/code-checks.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
python-version: '3.9'
3636

3737
- name: Run pre-commit
38-
uses: pre-commit/action@v2.0.3
38+
uses: pre-commit/action@v3.0.0
3939
with:
4040
extra_args: --verbose --all-files
4141

@@ -93,7 +93,7 @@ jobs:
9393
if: ${{ steps.build.outcome == 'success' && always() }}
9494

9595
- name: Typing + pylint
96-
uses: pre-commit/action@v2.0.3
96+
uses: pre-commit/action@v3.0.0
9797
with:
9898
extra_args: --verbose --hook-stage manual --all-files
9999
if: ${{ steps.build.outcome == 'success' && always() }}

.github/workflows/macos-windows.yml

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
uses: ./.github/actions/setup-conda
5353
with:
5454
environment-file: ci/deps/${{ matrix.env_file }}
55-
pyarrow-version: ${{ matrix.os == 'macos-latest' && '9' || '' }}
5655

5756
- name: Build Pandas
5857
uses: ./.github/actions/build_pandas

.github/workflows/stale-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/stale@v4
16+
- uses: actions/stale@v8
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
stale-pr-message: "This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this."

.github/workflows/ubuntu.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
strategy:
2727
matrix:
2828
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
29-
pattern: ["not single_cpu", "single_cpu"]
30-
pyarrow_version: ["8", "9", "10"]
29+
# Prevent the include jobs from overriding other jobs
30+
pattern: [""]
3131
include:
3232
- name: "Downstream Compat"
3333
env_file: actions-38-downstream_compat.yaml
@@ -75,21 +75,11 @@ jobs:
7575
# TODO(cython3): Re-enable once next-beta(after beta 1) comes out
7676
# There are some warnings failing the build with -werror
7777
pandas_ci: "0"
78-
exclude:
79-
- env_file: actions-38.yaml
80-
pyarrow_version: "8"
81-
- env_file: actions-38.yaml
82-
pyarrow_version: "9"
83-
- env_file: actions-39.yaml
84-
pyarrow_version: "8"
85-
- env_file: actions-39.yaml
86-
pyarrow_version: "9"
87-
- env_file: actions-310.yaml
88-
pyarrow_version: "8"
89-
- env_file: actions-310.yaml
90-
pyarrow_version: "9"
78+
- name: "Pyarrow Nightly"
79+
env_file: actions-311-pyarrownightly.yaml
80+
pattern: "not slow and not network and not single_cpu"
9181
fail-fast: false
92-
name: ${{ matrix.name || format('{0} pyarrow={1} {2}', matrix.env_file, matrix.pyarrow_version, matrix.pattern) }}
82+
name: ${{ matrix.name || matrix.env_file }}
9383
env:
9484
ENV_FILE: ci/deps/${{ matrix.env_file }}
9585
PATTERN: ${{ matrix.pattern }}
@@ -100,14 +90,14 @@ jobs:
10090
PANDAS_COPY_ON_WRITE: ${{ matrix.pandas_copy_on_write || '0' }}
10191
PANDAS_CI: ${{ matrix.pandas_ci || '1' }}
10292
TEST_ARGS: ${{ matrix.test_args || '' }}
103-
PYTEST_WORKERS: ${{ contains(matrix.pattern, 'not single_cpu') && 'auto' || '1' }}
93+
PYTEST_WORKERS: 'auto'
10494
PYTEST_TARGET: ${{ matrix.pytest_target || 'pandas' }}
10595
IS_PYPY: ${{ contains(matrix.env_file, 'pypy') }}
10696
# TODO: re-enable coverage on pypy, its slow
10797
COVERAGE: ${{ !contains(matrix.env_file, 'pypy') }}
10898
concurrency:
10999
# https://github.community/t/concurrecy-not-work-for-push/183068/7
110-
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.pyarrow_version || '' }}-${{ matrix.extra_apt || '' }}-${{ matrix.pandas_data_manager || '' }}
100+
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.extra_apt || '' }}-${{ matrix.pandas_data_manager || '' }}
111101
cancel-in-progress: true
112102

113103
services:
@@ -166,12 +156,24 @@ jobs:
166156
uses: ./.github/actions/setup-conda
167157
with:
168158
environment-file: ${{ env.ENV_FILE }}
169-
pyarrow-version: ${{ matrix.pyarrow_version }}
170159

171160
- name: Build Pandas
161+
id: build
172162
uses: ./.github/actions/build_pandas
173163

174-
- name: Test
164+
- name: Test (not single_cpu)
165+
uses: ./.github/actions/run-tests
166+
# TODO: Don't continue on error for PyPy
167+
continue-on-error: ${{ env.IS_PYPY == 'true' }}
168+
env:
169+
# Set pattern to not single_cpu if not already set
170+
PATTERN: ${{ env.PATTERN == '' && 'not single_cpu' || matrix.pattern }}
171+
172+
- name: Test (single_cpu)
175173
uses: ./.github/actions/run-tests
176174
# TODO: Don't continue on error for PyPy
177175
continue-on-error: ${{ env.IS_PYPY == 'true' }}
176+
env:
177+
PATTERN: 'single_cpu'
178+
PYTEST_WORKERS: 1
179+
if: ${{ matrix.pattern == '' && (always() && steps.build.outcome == 'success')}}

.github/workflows/wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
fetch-depth: 0
7272

7373
- name: Build wheels
74-
uses: pypa/cibuildwheel@v2.9.0
74+
uses: pypa/cibuildwheel@v2.12.1
7575
env:
7676
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
7777

ci/deps/actions-310.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141
- psycopg2>=2.8.6
4242
- pymysql>=1.0.2
4343
- pytables>=3.6.1
44-
- pyarrow
44+
- pyarrow>=7.0.0
4545
- pyreadstat>=1.1.2
4646
- python-snappy>=0.6.0
4747
- pyxlsb>=1.0.8
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pandas-dev
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.11
6+
7+
# build dependencies
8+
- versioneer[toml]
9+
- cython>=0.29.33
10+
11+
# test dependencies
12+
- pytest>=7.0.0
13+
- pytest-cov
14+
- pytest-xdist>=2.2.0
15+
- hypothesis>=6.34.2
16+
- pytest-asyncio>=0.17.0
17+
18+
# required dependencies
19+
- python-dateutil
20+
- numpy
21+
- pytz
22+
- pip
23+
24+
- pip:
25+
- "tzdata>=2022.1"
26+
- "--extra-index-url https://pypi.fury.io/arrow-nightlies/"
27+
- "--prefer-binary"
28+
- "--pre"
29+
- "pyarrow"

ci/deps/actions-311.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141
- psycopg2>=2.8.6
4242
- pymysql>=1.0.2
4343
# - pytables>=3.8.0 # first version that supports 3.11
44-
- pyarrow
44+
- pyarrow>=7.0.0
4545
- pyreadstat>=1.1.2
4646
- python-snappy>=0.6.0
4747
- pyxlsb>=1.0.8

ci/deps/actions-38-downstream_compat.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- openpyxl<3.1.1, >=3.0.7
4040
- odfpy>=1.4.1
4141
- psycopg2>=2.8.6
42-
- pyarrow
42+
- pyarrow>=7.0.0
4343
- pymysql>=1.0.2
4444
- pyreadstat>=1.1.2
4545
- pytables>=3.6.1

ci/deps/actions-38.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- odfpy>=1.4.1
4040
- pandas-gbq>=0.15.0
4141
- psycopg2>=2.8.6
42-
- pyarrow
42+
- pyarrow>=7.0.0
4343
- pymysql>=1.0.2
4444
- pyreadstat>=1.1.2
4545
- pytables>=3.6.1

ci/deps/actions-39.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
- pandas-gbq>=0.15.0
4141
- psycopg2>=2.8.6
4242
- pymysql>=1.0.2
43-
- pyarrow
43+
- pyarrow>=7.0.0
4444
- pyreadstat>=1.1.2
4545
- pytables>=3.6.1
4646
- python-snappy>=0.6.0

ci/deps/circle-38-arm64.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- odfpy>=1.4.1
4040
- pandas-gbq>=0.15.0
4141
- psycopg2>=2.8.6
42-
- pyarrow
42+
- pyarrow>=7.0.0
4343
- pymysql>=1.0.2
4444
# Not provided on ARM
4545
#- pyreadstat

doc/source/_static/css/getting_started.css

+26-27
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
font-size: 0.9rem;
1111
}
1212

13+
.gs-data-header {
14+
background-color: var(--pst-color-on-surface);
15+
}
16+
17+
.gs-data-list {
18+
background-color: var(--pst-color-on-background);
19+
}
20+
1321
.gs-data-title .badge {
1422
margin: 10px;
1523
padding: 5px;
@@ -57,45 +65,33 @@
5765
margin-top: -5px;
5866
}
5967
.gs-callout-remember {
60-
border-left-color: #f0ad4e;
68+
border-left-color: var(--pst-color-secondary);
6169
align-items: center;
6270
font-size: 1.2rem;
6371
}
6472
.gs-callout-remember h4 {
65-
color: #f0ad4e;
73+
color: var(--pst-color-secondary);
6674
}
6775

6876
/* reference to user guide */
6977
.gs-torefguide {
7078
align-items: center;
7179
font-size: 0.9rem;
80+
background-color: var(--pst-color-on-background);
81+
border-radius: .25rem;
82+
padding: 2px;
7283
}
7384

7485
.gs-torefguide .badge {
75-
background-color: #130654;
76-
margin: 10px 10px 10px 0px;
86+
background-color: var(--pst-color-primary);
87+
margin: 10px 10px 10px 10px;
7788
padding: 5px;
7889
}
7990

80-
.gs-torefguide a {
81-
margin-left: 5px;
82-
color: #130654;
83-
border-bottom: 1px solid #FFCA00f3;
84-
box-shadow: 0px -10px 0px #FFCA00f3 inset;
85-
}
86-
8791
.gs-torefguide p {
8892
margin-top: 1rem;
8993
}
9094

91-
.gs-torefguide a:hover {
92-
margin-left: 5px;
93-
color: grey;
94-
text-decoration: none;
95-
border-bottom: 1px solid #b2ff80f3;
96-
box-shadow: 0px -10px 0px #b2ff80f3 inset;
97-
}
98-
9995
/* question-task environment */
10096

10197
ul.task-bullet, ol.custom-bullet{
@@ -113,14 +109,14 @@ ul.task-bullet > li:before {
113109
margin-left:-2em;
114110
background-position:center;
115111
background-repeat:no-repeat;
116-
background-color: #130654;
112+
background-color: var(--pst-color-primary);
117113
border-radius: 50%;
118114
background-size:100%;
119115
background-image:url('../question_mark_noback.svg');
120116
}
121117

122118
ul.task-bullet > li {
123-
border-left: 1px solid #130654;
119+
border-left: 1px solid var(--pst-color-primary);
124120
padding-left:1em;
125121
}
126122

@@ -132,7 +128,7 @@ ul.task-bullet > li > p:first-child {
132128
/* Getting started index page */
133129

134130
.comparison-card {
135-
background:#FFF;
131+
background-color: var(--pst-color-background);
136132
border-radius:0;
137133
padding: 30px 10px 10px 10px;
138134
margin: 10px 0px;
@@ -146,6 +142,7 @@ ul.task-bullet > li > p:first-child {
146142
margin: 10px;
147143
margin-bottom: 20px;
148144
height: 72px;
145+
background: none !important;
149146
}
150147

151148
.comparison-card-excel .card-img-top, .comparison-card-stata .card-img-top, .comparison-card-sas .card-img-top {
@@ -154,7 +151,7 @@ ul.task-bullet > li > p:first-child {
154151

155152
.comparison-card .card-footer {
156153
border: none;
157-
background-color: transparent;
154+
background-color: var(--pst-color-background);
158155
}
159156

160157
.install-block {
@@ -236,15 +233,16 @@ ul.task-bullet > li > p:first-child {
236233

237234
.tutorial-card .card-header {
238235
cursor: pointer;
239-
background-color: transparent;
236+
background-color: var(--pst-color-surface);
237+
border: 1px solid var(--pst-color-border)
240238
}
241239

242240
.tutorial-card .card-body {
243-
background-color: transparent;
241+
background-color: var(--pst-color-on-background);
244242
}
245243

246244
.tutorial-card .badge {
247-
background-color: #130654;
245+
background-color: var(--pst-color-primary);
248246
margin: 10px 10px 10px 10px;
249247
padding: 5px;
250248
}
@@ -253,8 +251,9 @@ ul.task-bullet > li > p:first-child {
253251
margin: 0px;
254252
}
255253

254+
256255
.tutorial-card .gs-badge-link a {
257-
color: white;
256+
color: var(--pst-color-text-base);
258257
text-decoration: none;
259258
}
260259

doc/source/_static/css/pandas.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ table {
2525
.intro-card .card-img-top {
2626
margin: 10px;
2727
height: 52px;
28+
background: none !important;
2829
}
2930

3031
.intro-card .card-header {
@@ -48,5 +49,5 @@ table {
4849
}
4950

5051
.card, .card img {
51-
background-color: transparent !important;
52+
background-color: var(--pst-color-background);
5253
}

0 commit comments

Comments
 (0)