Skip to content

Commit

Permalink
Merge branch 'pandas-dev:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zain581 authored Jan 2, 2024
2 parents 2e6da9e + 86ad444 commit 5041543
Show file tree
Hide file tree
Showing 181 changed files with 1,500 additions and 1,315 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.1.x
- 2.2.x
pull_request:
branches:
- main
- 2.1.x
- 2.2.x

env:
ENV_FILE: environment.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deprecation-tracking-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
issues: write
runs-on: ubuntu-22.04
env:
DEPRECATION_TRACKER_ISSUE: 50578
DEPRECATION_TRACKER_ISSUE: 56596
steps:
- uses: actions/github-script@v7
id: update-deprecation-issue
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docbuild-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
push:
branches:
- main
- 2.1.x
- 2.2.x
tags:
- '*'
pull_request:
branches:
- main
- 2.1.x
- 2.2.x

env:
ENV_FILE: environment.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.1.x
- 2.2.x
pull_request:
branches:
- main
- 2.1.x
- 2.2.x
types: [ labeled, opened, synchronize, reopened ]

permissions:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.1.x
- 2.2.x
pull_request:
branches:
- main
- 2.1.x
- 2.2.x
paths-ignore:
- "doc/**"
- "web/**"
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: "Numpy Dev"
env_file: actions-311-numpydev.yaml
pattern: "not slow and not network and not single_cpu"
test_args: "-W error::FutureWarning"
test_args: "-W error::DeprecationWarning -W error::FutureWarning"
- name: "Pyarrow Nightly"
env_file: actions-311-pyarrownightly.yaml
pattern: "not slow and not network and not single_cpu"
Expand Down
14 changes: 2 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ repos:
# TODO: remove autofixe-only rules when they are checked by ruff
name: ruff-selected-autofixes
alias: ruff-selected-autofixes
files: ^pandas
exclude: ^pandas/tests
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.10'
Expand Down Expand Up @@ -356,18 +358,6 @@ repos:
files: ^pandas/
exclude: ^(pandas/_libs/|pandas/tests/|pandas/errors/__init__.py$|pandas/_version.py)
types: [python]
- id: future-annotations
name: import annotations from __future__
entry: 'from __future__ import annotations'
language: pygrep
args: [--negate]
files: ^pandas/
types: [python]
exclude: |
(?x)
/(__init__\.py)|(api\.py)|(_version\.py)|(testing\.py)|(conftest\.py)$
|/tests/
|/_testing/
- id: check-test-naming
name: check that test names start with 'test'
entry: python -m scripts.check_test_naming
Expand Down
40 changes: 39 additions & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,50 @@ title: 'pandas-dev/pandas: Pandas'
message: 'If you use this software, please cite it as below.'
authors:
- name: "The pandas development team"
website: "https://pandas.pydata.org/about/team.html"
abstract: "Pandas is a powerful data structures for data analysis, time series, and statistics."
doi: 10.5281/zenodo.3509134
license: BSD-3-Clause
license-url: "https://github.com/pandas-dev/pandas/blob/main/LICENSE"
repository-code: "https://github.com/pandas-dev/pandas"
keywords:
- python
- data science
- flexible
- pandas
- alignment
- data analysis
type: software
url: "https://github.com/pandas-dev/pandas"
url: "https://pandas.pydata.org/"
references:
- type: article
authors:
- given-names: Wes
family-names: McKinney
affiliation: AQR Capital Management, LLC
email: wesmckinn@gmail.com
title: Data Structures for Statistical Computing in Python
doi: 10.25080/Majora-92bf1922-00a
license: CC-BY-3.0
start: 56
end: 61
year: 2010
collection-title: Proceedings of the 9th Python in Science Conference
collection-doi: 10.25080/Majora-92bf1922-012
collection-type: proceedings
editors:
- given-names: Stéfan
name-particle: van der
family-names: Walt
- given-names: Jarrod
family-names: Millman
conference:
name: 9th Python in Science Conference (SciPy 2010)
city: Austin, TX
country: US
date-start: "2010-06-28"
date-end: "2010-07-03"
keywords:
- data structure
- statistics
- R
2 changes: 1 addition & 1 deletion ci/deps/actions-310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-311-downstream_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-311-pyarrownightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz
- pip

Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-311-sanitizers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# pandas dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-311.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-312.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-39-minimum_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:

# required dependencies
- python-dateutil=2.8.2
- numpy=1.22.4, <2
- numpy=1.22.4
- pytz=2020.1

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# optional dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-pypy-39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
- hypothesis>=6.46.1

# required
- numpy<2
- numpy
- python-dateutil
- pytz
- pip:
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/circle-310-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:

# required dependencies
- python-dateutil
- numpy<2
- numpy
- pytz

# optional dependencies
Expand Down
4 changes: 2 additions & 2 deletions doc/source/user_guide/copy_on_write.rst
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ you are modifying one object inplace.
.. ipython:: python
df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
df2 = df.reset_index()
df2 = df.reset_index(drop=True)
df2.iloc[0, 0] = 100
This creates two objects that share data and thus the setitem operation will trigger a
Expand All @@ -328,7 +328,7 @@ held by the object.
.. ipython:: python
df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
df = df.reset_index()
df = df.reset_index(drop=True)
df.iloc[0, 0] = 100
No copy is necessary in this example.
Expand Down
9 changes: 9 additions & 0 deletions doc/source/whatsnew/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ This is the list of changes to pandas between each release. For full details,
see the `commit logs <https://github.com/pandas-dev/pandas/commits/>`_. For install and
upgrade instructions, see :ref:`install`.

Version 2.3
-----------

.. toctree::
:maxdepth: 2

v2.3.0


Version 2.2
-----------

Expand Down
Loading

0 comments on commit 5041543

Please sign in to comment.