Skip to content

Commit 4f8814a

Browse files
authored
Merge branch 'pandas-dev:main' into t03
2 parents e5ccfa4 + c293caf commit 4f8814a

File tree

252 files changed

+4324
-2870
lines changed

Some content is hidden

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

252 files changed

+4324
-2870
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deprecations Bot
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types:
8+
[closed]
9+
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
deprecation_update:
16+
permissions:
17+
issues: write
18+
if: >-
19+
contains(github.event.pull_request.labels.*.name, 'Deprecate') && github.event.pull_request.merged == true
20+
runs-on: ubuntu-22.04
21+
env:
22+
DEPRECATION_TRACKER_ISSUE: 50578
23+
steps:
24+
- name: Checkout
25+
run: |
26+
echo "Adding deprecation PR number to deprecation tracking issue"
27+
export PR=${{ github.event.pull_request.number }}
28+
BODY=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/issues/${DEPRECATION_TRACKER_ISSUE} |
29+
python3 -c "import sys, json, os; x = {'body': json.load(sys.stdin)['body']}; pr = os.environ['PR']; x['body'] += f'\n- [ ] #{pr}'; print(json.dumps(x))")
30+
echo ${BODY}
31+
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X PATCH -d "${BODY}" https://api.github.com/repos/${{ github.repository }}/issues/${DEPRECATION_TRACKER_ISSUE}

.pep8speaks.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
rev: v2.2.2
4343
hooks:
4444
- id: codespell
45-
types_or: [python, rst, markdown]
45+
types_or: [python, rst, markdown, cython, c]
4646
additional_dependencies: [tomli]
4747
- repo: https://github.com/MarcoGorelli/cython-lint
4848
rev: v0.12.5
@@ -160,14 +160,6 @@ repos:
160160
types: [pyi]
161161
args: [scripts/run_stubtest.py]
162162
stages: [manual]
163-
- id: flake8-rst
164-
name: flake8-rst
165-
description: Run flake8 on code snippets in docstrings or RST files
166-
language: python
167-
entry: flake8-rst
168-
types: [rst]
169-
args: [--filename=*.rst]
170-
additional_dependencies: [flake8-rst==0.7.0, flake8==3.7.9]
171163
- id: inconsistent-namespace-usage
172164
name: 'Check for inconsistent use of pandas namespace'
173165
entry: python scripts/check_for_inconsistent_pandas_namespace.py

ci/code_checks.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9393
pandas.Series.item \
9494
pandas.Series.pipe \
9595
pandas.Series.mode \
96-
pandas.Series.sem \
97-
pandas.Series.skew \
9896
pandas.Series.is_unique \
9997
pandas.Series.is_monotonic_increasing \
10098
pandas.Series.is_monotonic_decreasing \
@@ -542,8 +540,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
542540
pandas.DataFrame.keys \
543541
pandas.DataFrame.iterrows \
544542
pandas.DataFrame.pipe \
545-
pandas.DataFrame.sem \
546-
pandas.DataFrame.skew \
547543
pandas.DataFrame.backfill \
548544
pandas.DataFrame.pad \
549545
pandas.DataFrame.swapaxes \

doc/source/_static/css/getting_started.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ ul.task-bullet > li > p:first-child {
236236

237237
.tutorial-card .card-header {
238238
cursor: pointer;
239-
background-color: white;
239+
background-color: transparent;
240240
}
241241

242242
.tutorial-card .card-body {
243-
background-color: #F0F0F0;
243+
background-color: transparent;
244244
}
245245

246246
.tutorial-card .badge {

doc/source/_static/legacy_0.10.h5

-233 KB
Binary file not shown.

doc/source/_static/stub

Whitespace-only changes.

doc/source/ecosystem.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,3 +600,20 @@ Install pandas-stubs to enable basic type coverage of pandas API.
600600
Learn more by reading through :issue:`14468`, :issue:`26766`, :issue:`28142`.
601601

602602
See installation and usage instructions on the `GitHub page <https://github.com/pandas-dev/pandas-stubs>`__.
603+
604+
`Hamilton <https://github.com/dagworks-inc/hamilton>`__
605+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
606+
607+
Hamilton is a declarative dataflow framework that came out of Stitch Fix. It was designed to help one manage a Pandas code base, specifically with respect to feature engineering for machine learning models.
608+
609+
It prescibes an opinionated paradigm, that ensures all code is:
610+
611+
* unit testable
612+
* integration testing friendly
613+
* documentation friendly
614+
* transformation logic is reusable, as it is decoupled from the context of where it is used.
615+
* integratable with runtime data quality checks.
616+
617+
This helps one to scale your pandas code base, at the same time, keeping maintenance costs low.
618+
619+
For more information, see `documentation <https://hamilton.readthedocs.io/>`__.

doc/source/styled.xlsx

-5.55 KB
Binary file not shown.

doc/source/user_guide/categorical.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ even if some categories are not present in the data:
617617
df = pd.DataFrame(
618618
data=[[1, 2, 3], [4, 5, 6]],
619619
columns=pd.MultiIndex.from_arrays([["A", "B", "B"], columns]),
620-
)
621-
df.groupby(axis=1, level=1).sum()
620+
).T
621+
df.groupby(level=1).sum()
622622
623623
Groupby will also show "unused" categories:
624624

0 commit comments

Comments
 (0)