Skip to content

Commit f078a24

Browse files
author
Robert Schmidtke
committed
Merge branch 'main' into bugfix/timestamp-overflow
2 parents 86be21a + 1aeaf6b commit f078a24

File tree

110 files changed

+3546
-3209
lines changed

Some content is hidden

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

110 files changed

+3546
-3209
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
skip: [pylint, pyright, mypy]
2020
repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.1.6
22+
rev: v0.1.13
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -31,8 +31,7 @@ repos:
3131
exclude: ^pandas/tests
3232
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
3333
- id: ruff-format
34-
# TODO: "." not needed in ruff 0.1.8
35-
args: ["."]
34+
exclude: ^scripts
3635
- repo: https://github.com/jendrikseipp/vulture
3736
rev: 'v2.10'
3837
hooks:

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
136136
pandas.Timedelta.resolution\
137137
pandas.Interval\
138138
pandas.Grouper\
139-
pandas.core.groupby.SeriesGroupBy.apply\
140139
pandas.core.groupby.DataFrameGroupBy.nth\
141140
pandas.core.groupby.DataFrameGroupBy.rolling\
142141
pandas.core.groupby.SeriesGroupBy.nth\

doc/make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _run_os(*args) -> None:
113113
114114
Examples
115115
--------
116-
>>> DocBuilder()._run_os('python', '--version')
116+
>>> DocBuilder()._run_os("python", "--version")
117117
"""
118118
subprocess.check_call(args, stdout=sys.stdout, stderr=sys.stderr)
119119

@@ -129,7 +129,7 @@ def _sphinx_build(self, kind: str):
129129
130130
Examples
131131
--------
132-
>>> DocBuilder(num_jobs=4)._sphinx_build('html')
132+
>>> DocBuilder(num_jobs=4)._sphinx_build("html")
133133
"""
134134
if kind not in ("html", "latex", "linkcheck"):
135135
raise ValueError(f"kind must be html, latex or linkcheck, not {kind}")

doc/source/reference/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ to be stable.
6262
..
6363
.. toctree::
6464
65-
api/pandas.Index.holds_integer
6665
api/pandas.Index.nlevels
6766
api/pandas.Index.sort
6867

doc/source/reference/indexing.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ Modifying and computations
6161
Index.identical
6262
Index.insert
6363
Index.is_
64-
Index.is_boolean
65-
Index.is_categorical
66-
Index.is_floating
67-
Index.is_integer
68-
Index.is_interval
69-
Index.is_numeric
70-
Index.is_object
7164
Index.min
7265
Index.max
7366
Index.reindex

doc/source/whatsnew/v3.0.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ Deprecations
104104
Removal of prior version deprecations/changes
105105
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106106
- All arguments except the first ``path``-like argument in IO writers are now keyword only (:issue:`54229`)
107-
- Removed :meth:`DataFrame.first` and :meth:`DataFrame.last` (:issue:`53710`)
108-
- Removed :meth:`DataFrameGroupby.fillna` and :meth:`SeriesGroupBy.fillna` (:issue:`55719`)
109107
- Removed ``DataFrameGroupBy.grouper`` and ``SeriesGroupBy.grouper`` (:issue:`56521`)
108+
- Removed ``DataFrameGroupby.fillna`` and ``SeriesGroupBy.fillna``` (:issue:`55719`)
110109
- Removed ``axis`` argument from :meth:`DataFrame.groupby`, :meth:`Series.groupby`, :meth:`DataFrame.rolling`, :meth:`Series.rolling`, :meth:`DataFrame.resample`, and :meth:`Series.resample` (:issue:`51203`)
111110
- Removed ``axis`` argument from all groupby operations (:issue:`50405`)
112111
- Removed ``pandas.io.sql.execute`` (:issue:`50185`)
113112
- Removed ``read_gbq`` and ``DataFrame.to_gbq``. Use ``pandas_gbq.read_gbq`` and ``pandas_gbq.to_gbq`` instead https://pandas-gbq.readthedocs.io/en/latest/api.html (:issue:`55525`)
114113
- Removed deprecated argument ``obj`` in :meth:`.DataFrameGroupBy.get_group` and :meth:`.SeriesGroupBy.get_group` (:issue:`53545`)
115114
- Removed the ``ArrayManager`` (:issue:`55043`)
115+
- Removed the ``is_boolean``, ``is_integer``, ``is_floating``, ``holds_integer``, ``is_numeric``, ``is_categorical``, ``is_object``, and ``is_interval`` attributes of :class:`Index` (:issue:`50042`)
116116
- Removed unused arguments ``*args`` and ``**kwargs`` in :class:`Resampler` methods (:issue:`50977`)
117117
- Unrecognized timezones when parsing strings to datetimes now raises a ``ValueError`` (:issue:`51477`)
118118

pandas/_config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ class option_context(ContextDecorator):
476476
Examples
477477
--------
478478
>>> from pandas import option_context
479-
>>> with option_context('display.max_rows', 10, 'display.max_columns', 5):
479+
>>> with option_context("display.max_rows", 10, "display.max_columns", 5):
480480
... pass
481481
"""
482482

pandas/_testing/_warnings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ class for all warnings. To raise multiple types of exceptions,
7676
>>> import warnings
7777
>>> with assert_produces_warning():
7878
... warnings.warn(UserWarning())
79-
...
8079
>>> with assert_produces_warning(False):
8180
... warnings.warn(RuntimeWarning())
82-
...
8381
Traceback (most recent call last):
8482
...
8583
AssertionError: Caused unexpected warning(s): ['RuntimeWarning'].

pandas/_testing/asserters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,8 +1178,8 @@ def assert_frame_equal(
11781178
but with columns of differing dtypes.
11791179
11801180
>>> from pandas.testing import assert_frame_equal
1181-
>>> df1 = pd.DataFrame({'a': [1, 2], 'b': [3, 4]})
1182-
>>> df2 = pd.DataFrame({'a': [1, 2], 'b': [3.0, 4.0]})
1181+
>>> df1 = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
1182+
>>> df2 = pd.DataFrame({"a": [1, 2], "b": [3.0, 4.0]})
11831183
11841184
df1 equals itself.
11851185

pandas/_testing/contexts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ def set_timezone(tz: str) -> Generator[None, None, None]:
7070
>>> tzlocal().tzname(datetime(2021, 1, 1)) # doctest: +SKIP
7171
'IST'
7272
73-
>>> with set_timezone('US/Eastern'):
73+
>>> with set_timezone("US/Eastern"):
7474
... tzlocal().tzname(datetime(2021, 1, 1))
75-
...
7675
'EST'
7776
"""
7877
import time

0 commit comments

Comments
 (0)