title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
TYP: tslibs.parsing.pyi
diff --git a/pandas/_libs/tslibs/parsing.pyi b/pandas/_libs/tslibs/parsing.pyi new file mode 100644 index 0000000000000..f346204d69d25 --- /dev/null +++ b/pandas/_libs/tslibs/parsing.pyi @@ -0,0 +1,81 @@ +from datetime import datetime + +import numpy as np + +from pandas._libs.tslibs.offsets import BaseOffset + +class ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40576
2021-03-22T23:28:01Z
2021-03-30T12:57:59Z
2021-03-30T12:57:59Z
2021-03-30T14:02:30Z
BUG: groupby rank computing incorrect percentiles
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 63902b53ea36d..f10b8f602ea56 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -561,6 +561,7 @@ Numeric - Bug in :func:`select_dtypes` different behavior between Windows and Linux with ``include="int"``...
- [x] closes #40518 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Built on #40546, is a relatively minor change after that.
https://api.github.com/repos/pandas-dev/pandas/pulls/40575
2021-03-22T22:23:19Z
2021-04-01T15:54:05Z
2021-04-01T15:54:05Z
2021-04-01T16:16:09Z
TYP: libtesting, conversion, dtypes, fields
diff --git a/pandas/__init__.py b/pandas/__init__.py index 7cad3eded0585..37d008a91a1e7 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -25,6 +25,8 @@ is_numpy_dev as _is_numpy_dev, ) +from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib + try: from pandas._libs impor...
https://api.github.com/repos/pandas-dev/pandas/pulls/40572
2021-03-22T17:16:32Z
2021-03-23T19:38:21Z
null
2021-03-23T19:38:27Z
CLN/DEPR: remove Block._holder, deprecated Block.is_categorical
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index c13eb3f109354..4986822a3ed5a 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -13,6 +13,7 @@ Union, cast, ) +import warnings import numpy as np @@ -191,16 +192,6 @@ def __init__(self...
https://api.github.com/repos/pandas-dev/pandas/pulls/40571
2021-03-22T16:38:52Z
2021-03-23T18:02:26Z
2021-03-23T18:02:26Z
2021-03-24T08:03:26Z
STY: enable flake8-bugbear
There are some cases where one of the values of a `zip()` was not used. I removed the `zip()`. If the two sequences for `zip()` have different lengths, this would change the behavior.
https://api.github.com/repos/pandas-dev/pandas/pulls/40570
2021-03-22T15:57:35Z
2021-05-02T14:44:34Z
null
2021-05-02T14:44:34Z
DEPR: use DeprecationWarning instead of FutureWarning for CategoricalBlock
diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py index 1be8df2fabfd4..18e584575bc97 100644 --- a/pandas/core/internals/__init__.py +++ b/pandas/core/internals/__init__.py @@ -53,7 +53,7 @@ def __getattr__(name: str): warnings.warn( "CategoricalBlock is deprecated ...
Follow-up on https://github.com/pandas-dev/pandas/pull/40527 There is no need for end-users to see this warning if an underlying library they use generates this, so using a DeprecationWarning instead of FutureWarning (as we did before with potentially noisy or internal warnings). At a later point we can change to Fu...
https://api.github.com/repos/pandas-dev/pandas/pulls/40568
2021-03-22T13:33:39Z
2021-03-22T17:06:08Z
2021-03-22T17:06:08Z
2021-03-22T23:46:57Z
CLN: a couple of minor cleanups
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 769ae52744c74..1398db6960cc8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -49,6 +49,7 @@ from pandas.core.dtypes.common import ( ensure_int64, ensure_object, + ensure_platf...
https://api.github.com/repos/pandas-dev/pandas/pulls/40567
2021-03-22T12:16:47Z
2021-03-22T13:08:41Z
2021-03-22T13:08:41Z
2021-03-22T13:08:49Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3dd6b018b8aa..5bfceec6605c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,11 +47,11 @@ repos: types: [text] args: [--append-config=flake8/cython-template.cfg] - repo: https://github.com/PyCQA/isort - ...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/nod...
https://api.github.com/repos/pandas-dev/pandas/pulls/40564
2021-03-22T07:29:07Z
2021-03-22T10:49:50Z
2021-03-22T10:49:50Z
2021-03-22T10:49:55Z
BUG: Fix query doesn't support equals or not equals with Python parse…
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 16f76651a65aa..3f12b1b21ff30 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -682,6 +682,7 @@ Other - Bug in :class:`.Styler` where copying from Jupyter dropped top left cell and misaligned headers (:...
…r (#40436) - [X] closes #40436 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40563
2021-03-22T05:23:10Z
2021-11-09T00:20:37Z
null
2021-11-09T00:20:37Z
ENH: applymap get kwargs #39987
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 16f76651a65aa..4e7067da3cc72 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -128,6 +128,7 @@ Other enhancements - :meth:`.Rolling.sum`, :meth:`.Expanding.sum`, :meth:`.Rolling.mean`, :meth:`.Expandin...
- [X] closes #39987 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40562
2021-03-22T04:17:36Z
2021-03-23T16:11:17Z
2021-03-23T16:11:16Z
2021-03-23T16:11:20Z
CLN: remove unused axis keyword from Block.where
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c20b2840a40ab..93c597d738501 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8933,7 +8933,7 @@ def _where( # align the cond to same shape as myself cond = com.apply_if_callable(cond, self) if isinstance(co...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40561
2021-03-22T03:03:20Z
2021-03-22T13:11:24Z
2021-03-22T13:11:24Z
2021-03-22T14:25:23Z
REF/PERF: deduplicate kth_smallest
diff --git a/pandas/_libs/algos.pxd b/pandas/_libs/algos.pxd index 4bca5b33a3c62..7e87f4767c86d 100644 --- a/pandas/_libs/algos.pxd +++ b/pandas/_libs/algos.pxd @@ -1,21 +1,4 @@ from pandas._libs.util cimport numeric -cdef inline Py_ssize_t swap(numeric *a, numeric *b) nogil: - cdef: - numeric t - - #...
Ensuring a contiguous input seems to give about a 5-10% performance improvement on the existing benchmark `gil.ParallelKth`
https://api.github.com/repos/pandas-dev/pandas/pulls/40559
2021-03-21T20:48:52Z
2021-03-23T16:10:30Z
2021-03-23T16:10:30Z
2021-03-23T16:18:52Z
TST: add test_ffill_with_string_column
diff --git a/pandas/tests/groupby/test_missing.py b/pandas/tests/groupby/test_missing.py index e53518269408a..f3149abb52291 100644 --- a/pandas/tests/groupby/test_missing.py +++ b/pandas/tests/groupby/test_missing.py @@ -43,6 +43,18 @@ def test_ffill_missing_arguments(): df.groupby("b").fillna() +@pytest.m...
- [x] closes #40250 - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry #40250 is an issue which seems to have been fixed in master already through #39446. This ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40557
2021-03-21T17:31:44Z
2021-05-13T23:27:45Z
2021-05-13T23:27:44Z
2021-05-13T23:27:48Z
ENH: Pluggable SQL performance via new SQL `engine` keyword
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index 1fcaac1a91d09..278eb907102ed 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -456,6 +456,10 @@ io.hdf.dropna_table True drop ALL nan rows when appe io.parquet.e...
- [x] xref, but is first step in implementing #36893 - [x] tests added and passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry (in the docstring) - [ ] whatsnew entry (in the docs) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40556
2021-03-21T16:07:22Z
2021-05-03T17:31:13Z
2021-05-03T17:31:13Z
2021-05-03T19:07:13Z
BUG: Fix behavior of replace_list with mixed types.
diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst index 60e146b2212eb..e936519383520 100644 --- a/doc/source/whatsnew/v1.2.5.rst +++ b/doc/source/whatsnew/v1.2.5.rst @@ -16,7 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Regression in :func:`concat` between two :class:`DataFrames` where on...
- [x] closes #40371 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40555
2021-03-21T15:15:44Z
2021-06-01T12:36:36Z
2021-06-01T12:36:36Z
2021-06-01T13:05:04Z
CLN: Remove unnecessary code in docs/make.py
diff --git a/doc/make.py b/doc/make.py index 76ce2aca2916c..5d2476fcdca8d 100755 --- a/doc/make.py +++ b/doc/make.py @@ -54,7 +54,6 @@ def __init__( if single_doc: single_doc = self._process_single_doc(single_doc) - include_api = False os.environ["SPHINX_PATTERN"] = singl...
Simple cleaning in docs/make.py. `include_api = False` in the if block doesn't have any effect.
https://api.github.com/repos/pandas-dev/pandas/pulls/40553
2021-03-21T11:51:37Z
2021-03-23T16:12:20Z
2021-03-23T16:12:20Z
2021-03-23T16:12:24Z
DOC: Fix minimum Python version in contributing docs
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 8a457d2c210b5..bc0a3556b9ac1 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -189,7 +189,7 @@ Creating a Python envir...
- [x] closes #40485
https://api.github.com/repos/pandas-dev/pandas/pulls/40552
2021-03-21T10:16:35Z
2021-04-04T19:57:20Z
2021-04-04T19:57:20Z
2021-04-04T19:59:26Z
TST: `test_highlight.py` convert to functional tests not class
diff --git a/pandas/tests/io/formats/style/test_highlight.py b/pandas/tests/io/formats/style/test_highlight.py index 7cf958be11392..8aca3cadff0b4 100644 --- a/pandas/tests/io/formats/style/test_highlight.py +++ b/pandas/tests/io/formats/style/test_highlight.py @@ -5,61 +5,68 @@ pytest.importorskip("jinja2") +from ...
- [x] add `pytest.fixture` instead of Class setup method - [x] no test removed or added, just amended to accept new fixtures
https://api.github.com/repos/pandas-dev/pandas/pulls/40551
2021-03-21T08:57:15Z
2021-03-23T16:13:15Z
2021-03-23T16:13:15Z
2021-03-23T16:24:49Z
TST: `test_tooltip.py` convert to functional tests instead of class
diff --git a/pandas/tests/io/formats/style/test_tooltip.py b/pandas/tests/io/formats/style/test_tooltip.py index 9539780287f15..71ce496cca030 100644 --- a/pandas/tests/io/formats/style/test_tooltip.py +++ b/pandas/tests/io/formats/style/test_tooltip.py @@ -7,99 +7,79 @@ from pandas.io.formats.style import Styler -...
- [x] adds `pytest.fixture` instead of Class setup method. - [x] removes `test_tooltip_reindex` since it is already being tested by `test_tooltip_render` - [x] other tests no changes except adopting fixtures
https://api.github.com/repos/pandas-dev/pandas/pulls/40550
2021-03-21T08:04:04Z
2021-03-23T16:14:12Z
2021-03-23T16:14:12Z
2021-03-23T16:24:57Z
TYP: internals.pyi
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi new file mode 100644 index 0000000000000..446ee299698c5 --- /dev/null +++ b/pandas/_libs/internals.pyi @@ -0,0 +1,58 @@ +from typing import ( + Iterator, + Sequence, + overload, +) + +import numpy as np + +from pandas._typing import ArrayLike...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40549
2021-03-21T04:07:27Z
2021-03-29T18:28:14Z
2021-03-29T18:28:14Z
2021-03-29T18:32:25Z
REF: simplify BlockManager.idelete
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
https://api.github.com/repos/pandas-dev/pandas/pulls/40548
2021-03-21T00:41:20Z
2021-03-30T13:13:03Z
2021-03-30T13:13:03Z
2021-03-30T14:01:35Z
CLN: remove unreachable quantile code
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40547
2021-03-21T00:35:35Z
2021-03-22T13:05:03Z
2021-03-22T13:05:03Z
2021-03-22T14:17:49Z
CLN: rank_1d
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 047eb848b7540..cda20e536c11c 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -946,15 +946,19 @@ def rank_1d( cdef: TiebreakEnumType tiebreak Py_ssize_t i, j, N, grp_start=0, dups=0, sum_ranks=0 - Py_ssiz...
Long overdue followup to #38744. Only half the diff is relevant since the changes are duplicated over the if rank_t is object... else with no_gil... structure.
https://api.github.com/repos/pandas-dev/pandas/pulls/40546
2021-03-21T00:22:13Z
2021-03-23T20:31:22Z
2021-03-23T20:31:22Z
2021-03-23T20:32:33Z
TYP: mostly core.arrays, some core.indexes
diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in index 3b472b162cdff..301644274111b 100644 --- a/pandas/_libs/hashtable_class_helper.pxi.in +++ b/pandas/_libs/hashtable_class_helper.pxi.in @@ -411,7 +411,7 @@ cdef class {{name}}HashTable(HashTable): k = kh_ge...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40545
2021-03-20T20:44:23Z
2021-04-02T01:51:44Z
2021-04-02T01:51:44Z
2021-04-02T18:25:07Z
DOC: Fixing indentation of example of DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b1f0ad8eda2aa..039c287189a6c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -528,7 +528,7 @@ class DataFrame(NDFrame, OpsMixin): >>> from dataclasses import make_dataclass >>> Point = make_dataclass("Point", [("x", int), ("y", int...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40544
2021-03-20T18:07:14Z
2021-03-28T21:03:33Z
2021-03-28T21:03:33Z
2021-03-28T21:03:39Z
CLN: Don't catch TypeError in FrameApply.agg
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 3a2c2d7124963..cb20f6c69e6f1 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -633,25 +633,18 @@ def agg(self): obj = self.obj axis = self.axis - try: - if axis == 1: - result = FrameRowApp...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them Ref: #34224. Back when transform and agg shared code, this was introduced to stop transform from having an infinite recursive loop. N...
https://api.github.com/repos/pandas-dev/pandas/pulls/40543
2021-03-20T17:52:48Z
2021-03-26T14:46:59Z
2021-03-26T14:46:59Z
2021-03-26T14:54:27Z
DOC: suppress warnings from CategoricalBlock deprecation
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40542
2021-03-20T17:26:44Z
2021-03-21T20:59:07Z
2021-03-21T20:59:07Z
2021-03-21T21:45:23Z
Revert "PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e6"
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 4f14ea73d5a88..0dbe5e8d83741 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -40,7 +40,7 @@ } # the minimum prod shape that we will use numexpr -_MIN_ELEMENTS = 1_00...
Reverts pandas-dev/pandas#40502 Troubleshooting the CI
https://api.github.com/repos/pandas-dev/pandas/pulls/40541
2021-03-20T16:48:37Z
2021-03-20T18:17:10Z
2021-03-20T18:17:10Z
2021-03-20T18:18:15Z
TYP: make typing DatetimeLikeScalar a Union instead of TypeVar
diff --git a/pandas/_typing.py b/pandas/_typing.py index e95dff2e69ff0..f90ef33434773 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -80,7 +80,7 @@ # scalars PythonScalar = Union[str, int, float, bool] -DatetimeLikeScalar = TypeVar("DatetimeLikeScalar", "Period", "Timestamp", "Timedelta") +DatetimeLikeSc...
In `_typing.py` change `DatetimeLikeScalar` from `TypeVar` to `Union` Allows removal of 4 `#type: ignore` lines Per split out from #39501
https://api.github.com/repos/pandas-dev/pandas/pulls/40540
2021-03-20T16:21:51Z
2021-03-21T21:01:24Z
2021-03-21T21:01:24Z
2021-03-22T11:59:32Z
TYP: make EA registry private
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 78a7f1890b5de..b5a17e1ef882e 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -33,7 +33,7 @@ from pandas.core.dtypes.base import ( ExtensionDtype, - registry, + _registry as registry, ) from pandas....
From #39501 splitting out the part to make the EA `registry` private. This will make it so that `pyright --verifytypes` accepts pandas public API.
https://api.github.com/repos/pandas-dev/pandas/pulls/40538
2021-03-20T16:11:26Z
2021-03-21T21:00:40Z
2021-03-21T21:00:40Z
2021-03-22T11:58:59Z
Revert "CLN: intp_t instead of int64_t for indexers in libs funcs"
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 047eb848b7540..5783d3c2353aa 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -199,10 +199,8 @@ def groupsort_indexer(const int64_t[:] index, Py_ssize_t ngroups): Returns ------- - ndarray[intp_t, ndim=1] - Index...
Reverts pandas-dev/pandas#40475 Looks like some combination of this, #40474, #40476 are resposible for broken CI. Trying this one first.
https://api.github.com/repos/pandas-dev/pandas/pulls/40537
2021-03-20T15:19:09Z
2021-03-20T18:18:30Z
null
2021-03-20T18:18:33Z
REF: move shift logic from BlockManager to DataFrame
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
Partially-fixes one of the currently-disabled ArrayManager tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/40536
2021-03-20T15:07:43Z
2021-03-23T16:47:15Z
2021-03-23T16:47:15Z
2021-06-26T07:44:15Z
TYP: first_valid_index & last_valid_index
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c20b2840a40ab..2e34bc0563210 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -11143,7 +11143,7 @@ def __ixor__(self, other): # Misc methods @final - def _find_valid_index(self, how: str): + def _find_valid_index(sel...
Typing of `first_valid_index` & `last_valid_index` + make the `how` param in internal functions a named parameter for better readability.
https://api.github.com/repos/pandas-dev/pandas/pulls/40535
2021-03-20T14:57:52Z
2021-03-23T16:23:02Z
2021-03-23T16:23:02Z
2021-03-23T17:08:08Z
CLN: Optional[Hashable] in dict type hints
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c20b2840a40ab..c9cbc858fae29 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -231,7 +231,7 @@ class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin): _metadata: List[str] = [] _is_copy: Optional[weakref.Referen...
Minor clean-up. ```python >>> from typing import Hashable >>> isinstance(None, Hashable) True ``` In old versions of mypy, mypy had a bug and didn't see this, but is has been fixed now. There are many instances of `Optional[Hashable]` instead of just `Hashable` in the code base, other than in these dicts. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40534
2021-03-20T14:40:45Z
2021-03-23T01:33:04Z
2021-03-23T01:33:04Z
2021-03-23T10:10:17Z
STYLE loosen inconsistent namespace check
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8524a302f4c9..8fd9bc3424ed5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -86,11 +86,10 @@ repos: types: [python] exclude: ^pandas/_typing\.py$ - id: inconsistent-namespace-usage - name: 'Check ...
For context, see #40468, where the error which was fixed was arguably a false-positive. I've loosened the check so that now it only errors / replaces if: - you imported an object from somewhere in pandas `e.g. from pandas.io.formats import info` - you also accessed that object as `pd.` or `pandas.` (e.g. `pd.info`...
https://api.github.com/repos/pandas-dev/pandas/pulls/40532
2021-03-20T12:29:02Z
2021-04-02T14:50:54Z
2021-04-02T14:50:54Z
2021-04-02T16:30:17Z
CI: testing wip branch on ci.
diff --git a/ci/deps/actions-37-db-min.yaml b/ci/deps/actions-37-db-min.yaml index 1d3794576220a..0dfc806f4b631 100644 --- a/ci/deps/actions-37-db-min.yaml +++ b/ci/deps/actions-37-db-min.yaml @@ -27,6 +27,7 @@ dependencies: - lxml=4.3.0 - matplotlib - nomkl + - numba - numexpr - openpyxl - pandas-gb...
No need to review. will be closing to clear the queue later today.
https://api.github.com/repos/pandas-dev/pandas/pulls/40530
2021-03-20T10:06:07Z
2021-03-21T14:34:41Z
null
2021-03-21T14:34:41Z
REF: share external_values ArrayManager/BlockManager
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40529
2021-03-20T03:52:13Z
2021-03-22T13:07:03Z
2021-03-22T13:07:03Z
2021-03-22T14:24:10Z
CLN: ensure_platform_int earlier
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 94bd8b49777cf..a6bfff9bb00fe 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -191,7 +191,7 @@ def is_lexsorted(list_of_arrays: list) -> bint: @cython.boundscheck(False) @cython.wraparound(False) -def groupsort_indexer(const int64...
https://api.github.com/repos/pandas-dev/pandas/pulls/40528
2021-03-20T03:48:52Z
2021-03-23T20:31:50Z
2021-03-23T20:31:50Z
2021-03-23T20:39:48Z
DEPR: CategoricalBlock; combine Block.replace methods
diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py index ea9f9abc4a4c7..da2fa304e5b07 100644 --- a/pandas/core/internals/__init__.py +++ b/pandas/core/internals/__init__.py @@ -9,7 +9,6 @@ ) from pandas.core.internals.blocks import ( # io.pytables, io.packers Block, - Categori...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40527
2021-03-20T01:59:54Z
2021-03-20T15:41:37Z
2021-03-20T15:41:37Z
2021-03-20T16:53:03Z
CLN: remove FloatBlock, share _can_hold_na
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40526
2021-03-20T01:49:55Z
2021-03-22T13:03:21Z
2021-03-22T13:03:21Z
2021-03-22T14:28:26Z
BUG: to_json failing on PyPy
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index edf23bf89d7e1..c7bc337239faf 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greate...
- [x] closes #39837 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Not sure how best to test this - confirmed this now works when run on PyPy, but since we don't test against PyPy the e...
https://api.github.com/repos/pandas-dev/pandas/pulls/40525
2021-03-20T00:20:37Z
2021-03-23T15:17:56Z
2021-03-23T15:17:56Z
2021-03-23T15:19:21Z
TYP: io.sas
diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py index 392dfa22ee67b..05cc742b45d83 100644 --- a/pandas/io/sas/sas7bdat.py +++ b/pandas/io/sas/sas7bdat.py @@ -13,6 +13,8 @@ Reference for binary data compression: http://collaboration.cmc.ec.gc.ca/science/rpn/biblio/ddj/Website/articles/CUJ/1992/921...
The way we pass state back and forth is a bit nutty, punting on that.
https://api.github.com/repos/pandas-dev/pandas/pulls/40524
2021-03-19T22:23:55Z
2021-03-23T16:35:07Z
2021-03-23T16:35:07Z
2021-03-23T16:36:18Z
DOC/MAINT: Clean up docs build warnings
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 864bd0684d445..53929ad9eadc8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -305,7 +305,7 @@ class Categorical(NDArrayBackedExtensionArray, PandasObject, ObjectStringArrayMi Notes ...
For example: `Duplicate explicit target name: "user guide"` I was seeing these warnings in the dask docs build because dask pulls docstrings from pandas. I think using anonomous links like this should fix it based on https://github.com/sphinx-doc/sphinx/issues/3921
https://api.github.com/repos/pandas-dev/pandas/pulls/40523
2021-03-19T22:16:08Z
2021-03-20T01:24:05Z
2021-03-20T01:24:05Z
2021-03-25T20:52:44Z
DOC/TYP: index.take return val
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 44743aa0dffcf..50c1a7924bd4a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -929,19 +929,20 @@ def astype(self, dtype, copy=True): Parameters ---------- - indices : list + indice...
xref https://github.com/pandas-dev/pandas/pull/40513#discussion_r597541594
https://api.github.com/repos/pandas-dev/pandas/pulls/40521
2021-03-19T18:52:21Z
2021-05-23T11:41:58Z
2021-05-23T11:41:58Z
2021-05-23T11:42:13Z
DOC fix misspelling of countries
diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index 75f133745e3a2..cab31ff2cfbca 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -327,15 +327,15 @@ def _json_normalize( >>> data = [{'state': 'Florida', ... 'shortname': 'FL', ... ...
simple misspelling fix. From "counties" to "countries" - [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40520
2021-03-19T15:25:35Z
2021-03-19T15:33:48Z
null
2021-03-19T15:33:48Z
DataFrame.rolling documentation of method='table'
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 6db86b940737e..97a7e837cb89f 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -1610,6 +1610,36 @@ def count(self): template_returns, create_section_header("See Also"), template_se...
- [X] closes #40374 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/40519
2021-03-19T14:13:15Z
2021-07-11T23:47:21Z
null
2021-07-11T23:47:21Z
STYLE no no-string-hints, combine some hooks
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa8c2b74d7a7e..e3dd6b018b8aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,10 +50,6 @@ repos: rev: 5.7.0 hooks: - id: isort -- repo: https://github.com/MarcoGorelli/no-string-hints - rev: v0.1.7 - h...
I got a PR into [pyupgrade](https://github.com/asottile/pyupgrade/blob/c90a455fceacdecc7484dab8519688353b6b2931/pyupgrade/_plugins/typing_pep563.py) to do what no-string-hints did (and in a much better way, their maintainer is amazing), so my little tool can be archived / removed from here :tada: Also combining som...
https://api.github.com/repos/pandas-dev/pandas/pulls/40516
2021-03-19T08:46:09Z
2021-03-19T14:47:39Z
2021-03-19T14:47:39Z
2021-03-19T15:01:36Z
CLN/PERF: remove catching of numpy deprecation warning in comparison_op
diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py index 04737d91c0d4e..333bdbf57bab3 100644 --- a/pandas/core/ops/array_ops.py +++ b/pandas/core/ops/array_ops.py @@ -6,7 +6,6 @@ from functools import partial import operator from typing import Any -import warnings import numpy as np @@ -23...
xref https://github.com/pandas-dev/pandas/issues/39146 In some of the `FrameWithFrameWide` benchmarks, this takes up around 15% of the time. While I don't think this should be needed (but let's see if warnings appear in the CI builds).
https://api.github.com/repos/pandas-dev/pandas/pulls/40515
2021-03-19T08:35:33Z
2021-03-19T17:15:26Z
2021-03-19T17:15:26Z
2021-03-19T17:15:29Z
CLN/TYP: remove unused arguments in merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index c01bf3931b27a..5ceac80c340ba 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -10,6 +10,8 @@ import string from typing import ( TYPE_CHECKING, + Hashable, + List, Optional, Tuple, ca...
https://api.github.com/repos/pandas-dev/pandas/pulls/40513
2021-03-19T05:11:09Z
2021-03-21T21:12:06Z
2021-03-21T21:12:06Z
2021-03-21T21:48:22Z
CI: move 32-bit build to container job
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 56da4e87f2709..9a6bc177a5634 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,19 +26,31 @@ jobs: pool: vmImage: ubuntu-18.04 + container: quay.io/pypa/manylinux2014_i686 + steps: - script: | - docker pull quay.io/pyp...
Run 32-bit build in a container job to separate build steps.
https://api.github.com/repos/pandas-dev/pandas/pulls/40511
2021-03-19T03:54:57Z
2021-03-19T06:27:30Z
null
2022-11-18T02:21:56Z
CLN/PERF: remove unused out kwd in take_nd
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cf153ddd2cbbd..3b7a6037a9715 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5240,6 +5240,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read...
And in a few places where we know allow_fill=False, just call the numpy version directly.
https://api.github.com/repos/pandas-dev/pandas/pulls/40510
2021-03-19T01:39:03Z
2021-03-22T14:32:36Z
2021-03-22T14:32:36Z
2021-04-06T19:19:10Z
BUG: fillna overwriting other missing vals
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 63902b53ea36d..8319aa957d232 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -620,6 +620,7 @@ Missing - Bug in :class:`Grouper` now correctly propagates ``dropna`` argument and :meth:`DataFrameGroup...
- [x] closes #40498 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40509
2021-03-19T01:18:49Z
2021-04-03T00:33:00Z
null
2021-04-03T00:33:00Z
TYP: parsers.pyi
diff --git a/pandas/_libs/parsers.pyi b/pandas/_libs/parsers.pyi new file mode 100644 index 0000000000000..1051c319b769b --- /dev/null +++ b/pandas/_libs/parsers.pyi @@ -0,0 +1,77 @@ +from typing import ( + Hashable, + Literal, +) + +import numpy as np + +from pandas._typing import ( + ArrayLike, + Dtype, +...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40508
2021-03-18T23:20:59Z
2021-04-14T14:25:21Z
2021-04-14T14:25:21Z
2021-04-14T14:27:55Z
BUG: Respect ignore_index in Series.explode
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 9c8968f7f8223..77fdf38416f8c 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -630,6 +630,7 @@ Reshaping - Allow :class:`Index` to be passed to the :func:`numpy.all` function (:issue:`40180`) - Bug in...
- [x] closes https://github.com/pandas-dev/pandas/issues/40487 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40507
2021-03-18T23:06:09Z
2021-03-23T20:44:38Z
2021-03-23T20:44:38Z
2021-03-23T21:00:13Z
DOC: Fix documentation for DataFrame.groupby.transform
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 1f79823746a87..f33833193e4e0 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -119,19 +119,19 @@ class providing the base-class of operations. _apply_docs = { "template": """ - Apply function...
- The doc template should no longer reference "Series" transforms explicitly. - Make consistent the formatting for references to function argument names.
https://api.github.com/repos/pandas-dev/pandas/pulls/40506
2021-03-18T20:10:06Z
2021-03-25T01:09:12Z
2021-03-25T01:09:12Z
2021-03-25T01:45:18Z
BUG: Remove artificial precision limit in rolling var & std
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 9c8968f7f8223..8190c80d774bc 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -299,6 +299,24 @@ cast to ``dtype=object`` (:issue:`38709`) ser ser2 + +.. _whatsnew_130.notable_bug_fixes.rolling...
- [x] closes #37051, xref #40448, xref #39872 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40505
2021-03-18T19:41:14Z
2021-03-21T21:06:58Z
2021-03-21T21:06:58Z
2021-03-21T22:02:18Z
TYP: nattype.pyi
diff --git a/pandas/_libs/tslibs/nattype.pyi b/pandas/_libs/tslibs/nattype.pyi new file mode 100644 index 0000000000000..0f81dcb4b2df1 --- /dev/null +++ b/pandas/_libs/tslibs/nattype.pyi @@ -0,0 +1,135 @@ + +from datetime import datetime + +import numpy as np + +NaT: NaTType +iNaT: int +nat_strings: set[str] + +def is_...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40503
2021-03-18T18:27:03Z
2021-03-22T12:43:14Z
2021-03-22T12:43:14Z
2021-03-22T14:30:26Z
PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e6
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 0dbe5e8d83741..4f14ea73d5a88 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -40,7 +40,7 @@ } # the minimum prod shape that we will use numexpr -_MIN_ELEMENTS = 1000...
See https://github.com/pandas-dev/pandas/issues/40500 for the analysis.
https://api.github.com/repos/pandas-dev/pandas/pulls/40502
2021-03-18T16:27:29Z
2021-03-20T01:14:14Z
2021-03-20T01:14:13Z
2021-03-24T08:28:12Z
PERF: optimize is_numeric_v_string_like
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 7a2d6468f1b63..32ea82d9c0402 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1100,7 +1100,7 @@ def is_datetime_or_timedelta_dtype(arr_or_dtype) -> bool: # This exists to silence numpy deprecation warning...
In some of the arithmetic benchmarks (xref https://github.com/pandas-dev/pandas/issues/39146#issuecomment-799482699), just this `is_numeric_v_string_like` check takes up 15-35% of the overall time. This improves the performance of this check by using some ndarray-specialized dtype checks (checking the kind instead ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40501
2021-03-18T16:17:55Z
2021-03-19T16:51:29Z
2021-03-19T16:51:29Z
2021-03-19T16:51:32Z
[ArrayManager] TST: include subset of ArrayManager tests in all CI builds
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index ec4c87e8c91b0..d73940c1010ad 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -29,3 +29,8 @@ fi echo $PYTEST_CMD sh -c "$PYTEST_CMD" + +PYTEST_AM_CMD="PANDAS_DATA_MANAGER=array pytest -m \"$PATTERN and arraymanager\" -n $PYTEST_WORKERS --dist=loadfile -s --...
xref #39146
https://api.github.com/repos/pandas-dev/pandas/pulls/40496
2021-03-18T08:48:04Z
2021-03-25T08:28:21Z
2021-03-25T08:28:21Z
2021-03-31T20:00:30Z
[ArrayManager] TST: run all tests with separate not slow / slow build
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 014c666a17084..d6744f578560c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,6 +141,9 @@ jobs: data_manager: name: Test experimental data manager runs-on: ubuntu-latest + strategy: + matrix: + ...
xref #39146
https://api.github.com/repos/pandas-dev/pandas/pulls/40495
2021-03-18T08:10:16Z
2021-03-20T01:15:23Z
2021-03-20T01:15:23Z
2021-03-20T19:55:21Z
[ArrayManager] TST: enable remaining top-level tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b40670d743e18..014c666a17084 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,6 +165,7 @@ jobs: pytest pandas/tests/series/ pytest pandas/tests/indexing/ + pytest pandas/tests/test_* py...
xref https://github.com/pandas-dev/pandas/issues/39146
https://api.github.com/repos/pandas-dev/pandas/pulls/40494
2021-03-18T07:46:20Z
2021-03-18T10:09:19Z
2021-03-18T10:09:18Z
2021-03-18T10:09:24Z
DOC: Styler docs - split PR from #39720
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 3abb39d2194c0..5ec2141028fa4 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -217,8 +217,10 @@ def set_tooltips( css_class: Optional[str] = None, ) -> Styler: """ - Add string based toolt...
Split the docs upgrade in #39720 into these smaller changes just to `style.py` and will focus *only* on the user guide in that PR after this.
https://api.github.com/repos/pandas-dev/pandas/pulls/40493
2021-03-18T07:40:03Z
2021-03-20T01:17:05Z
2021-03-20T01:17:05Z
2021-03-20T08:08:54Z
Two missing spaces in documentation
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c00cec450c85e..48a3c464b8fe2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: pull_request: branches: - master - - 1.1.x + - 1.2.x env: ENV_FILE: environment.yml @@ -64,7 +64,7 @...
I fixed the missing space that made the documentation render "isthe" instead of "is the". Before the change: - This **isthe** equivalent of the numpy.ndarray method argmax. - This **isthe** equivalent of the numpy.ndarray method argmin. After the change: - This **is the** equivalent of the numpy.ndarray method...
https://api.github.com/repos/pandas-dev/pandas/pulls/40492
2021-03-18T03:04:34Z
2021-04-11T00:32:24Z
null
2021-04-11T00:32:25Z
CLN: sqlalchemy deprecation, annotations, share shape properties
diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index a8728050f8071..1af5b23e3393f 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -238,6 +238,8 @@ NODE_CLASSES = {} {{for dtype, dtype_title, closed, closed_title, cmp_left, cmp_right, cmp_...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40491
2021-03-18T00:42:26Z
2021-03-20T01:18:39Z
2021-03-20T01:18:39Z
2021-03-20T01:47:46Z
REF: share to_native_types with ArrayManager
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index ef9981f40efe1..460d19290d56f 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -88,6 +88,7 @@ from pandas.core.internals.blocks import ( ensure_block_shape, new...
also combine implementations of Block.fill_value
https://api.github.com/repos/pandas-dev/pandas/pulls/40490
2021-03-17T22:50:04Z
2021-03-19T16:46:37Z
2021-03-19T16:46:37Z
2021-03-19T17:01:12Z
TYP: index.pyi
diff --git a/pandas/_libs/index.pyi b/pandas/_libs/index.pyi new file mode 100644 index 0000000000000..979619c3d14c4 --- /dev/null +++ b/pandas/_libs/index.pyi @@ -0,0 +1,86 @@ +import numpy as np + +class IndexEngine: + over_size_threshold: bool + + def __init__(self, vgetter, n: int): ... + + def __contains_...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40486
2021-03-17T19:19:52Z
2021-03-30T21:21:28Z
2021-03-30T21:21:28Z
2021-03-30T21:56:43Z
REF: avoid broadcasting of Series to DataFrame in ops for ArrayManager
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b88c97b8e988d..21c0586d671b0 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7061,8 +7061,11 @@ def _dispatch_frame_op(self, right, func: Callable, axis: int | None = None): assert right.index.equals(self.columns) ...
xref https://github.com/pandas-dev/pandas/pull/39772 Currently, we broadcast a Series to a DataFrame for elementwise operations in the "op(df, series)" case. This is done (I think) to be able to perform the operation block-wise (which is only implemented for block/block case, and not for block/array). But, when us...
https://api.github.com/repos/pandas-dev/pandas/pulls/40482
2021-03-17T12:07:33Z
2023-02-22T15:52:27Z
null
2023-02-22T15:52:28Z
Backport PR #40471: compat: sqlalchemy deprecations
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 02b06b164a2a1..b93f097b93441 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -5,6 +5,7 @@ from contextlib import contextmanager from datetime import date, datetime, time +from distutils.version import LooseVersion from functools import partial import ...
Backport PR #40471
https://api.github.com/repos/pandas-dev/pandas/pulls/40481
2021-03-17T11:57:30Z
2021-03-17T13:09:35Z
2021-03-17T13:09:34Z
2021-03-25T10:37:14Z
REF: prepare (upcast) scalar before dispatching to arithmetic array ops
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 6e4aa1a5efacf..52900d9b62dc2 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -395,6 +395,7 @@ def _cmp_method(self, other, op): if isinstance(other, PandasArray): other = other._ndarray ...
This moves the potential upcasting of python/numpy scalars to pandas scalars out of the actual array op (`arithmetic_op`), but moves it up to the Series / DataFrame level before calling the array op. This avoids calling it repeatedly on the same scalar for each column.
https://api.github.com/repos/pandas-dev/pandas/pulls/40479
2021-03-17T09:48:45Z
2021-04-28T14:49:50Z
2021-04-28T14:49:50Z
2021-04-28T14:50:46Z
BUG: frame.any/all with bool_only=True and Categorical[bool]
diff --git a/pandas/core/dtypes/inference.py b/pandas/core/dtypes/inference.py index 97bffb35c28d9..58da2570015b5 100644 --- a/pandas/core/dtypes/inference.py +++ b/pandas/core/dtypes/inference.py @@ -8,6 +8,7 @@ import numpy as np from pandas._libs import lib +from pandas._typing import ArrayLike is_bool = lib....
Started with sharing some code, unearthed a bug along the way. Nothing user-facing since it is only in ArrayManager.
https://api.github.com/repos/pandas-dev/pandas/pulls/40477
2021-03-17T03:37:05Z
2021-03-23T22:50:18Z
2021-03-23T22:50:18Z
2021-03-23T23:10:42Z
TYP: get_reverse_indexer, get_group_index_sorter
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 8b643c03b6a19..5352ca53e1b54 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -13,14 +13,16 @@ import numpy as np cimport numpy as cnp from numpy cimport ( - NPY_INT64, + NPY_INTP, int64_t, + intp_t, ...
nailing down all the "np.intp"s bit by little bit. AFAICT we're not going to be able to annotate ndarrays with ndim/dtype any time soon. Might be worth looking into https://pypi.org/project/nptyping/
https://api.github.com/repos/pandas-dev/pandas/pulls/40476
2021-03-16T23:51:56Z
2021-03-20T01:09:25Z
2021-03-20T01:09:25Z
2021-03-20T01:38:19Z
CLN: intp_t instead of int64_t for indexers in libs funcs
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 5783d3c2353aa..047eb848b7540 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -199,8 +199,10 @@ def groupsort_indexer(const int64_t[:] index, Py_ssize_t ngroups): Returns ------- - tuple - 1-d indexer ordered by ...
The places where this will need updating proliferate, so right now im just looking to see how the 32bit builds handle this.
https://api.github.com/repos/pandas-dev/pandas/pulls/40475
2021-03-16T22:18:14Z
2021-03-20T02:34:22Z
2021-03-20T02:34:22Z
2021-03-20T03:05:32Z
CLN: factorize returns ndarray[intp], not int64
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 1bbffaa7bb5d2..e402a4b7c0ccc 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -66,13 +66,18 @@ cdef class Factorizer: self.uniques = ObjectVector() self.count = 0 - def get_count(self): + def ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40474
2021-03-16T21:55:59Z
2021-03-20T01:10:03Z
2021-03-20T01:10:02Z
2021-03-20T01:36:48Z
TYP: tslib.pyi
diff --git a/pandas/_libs/tslib.pyi b/pandas/_libs/tslib.pyi new file mode 100644 index 0000000000000..641e62e7c8973 --- /dev/null +++ b/pandas/_libs/tslib.pyi @@ -0,0 +1,29 @@ +from datetime import tzinfo + +import numpy as np + +def format_array_from_datetime( + values: np.ndarray, # np.ndarray[np.int64] + tz...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40473
2021-03-16T20:37:52Z
2021-03-18T09:01:29Z
2021-03-18T09:01:29Z
2021-03-18T14:12:59Z
compat: sqlalchemy deprecations
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index fb08abb6fea45..e3347468828d1 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -9,6 +9,7 @@ datetime, time, ) +from distutils.version import LooseVersion from functools import partial import re from typing import ( @@ -77,6 +78,16 @@ def _is_sql...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40471
2021-03-16T18:50:39Z
2021-03-16T20:30:53Z
2021-03-16T20:30:53Z
2021-03-17T11:58:13Z
CI: pre-commit fixups
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index f86d8755acb22..f3889ff360aa8 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -42,7 +42,6 @@ from pandas.core.dtypes.common import ( DT64NS_DTYPE, TD64NS_DTYPE, - is_categorical_dt...
Fixes 2/3 of the failures on master that im aware of. sqlalchemy is the one left out.
https://api.github.com/repos/pandas-dev/pandas/pulls/40468
2021-03-16T17:01:16Z
2021-03-16T20:30:09Z
2021-03-16T20:30:09Z
2021-03-16T20:45:01Z
TYP: stronger typing in libindex
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f6f36f6ad523b..9159fa03c12c0 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -259,11 +259,11 @@ cdef class IndexEngine: self.monotonic_inc = 0 self.monotonic_dec = 0 - def get_indexer(self, values): + def ge...
and more consistent naming/args for MultiIndex engine. Preliminary before making index.pyi
https://api.github.com/repos/pandas-dev/pandas/pulls/40465
2021-03-16T14:43:33Z
2021-03-17T10:39:10Z
2021-03-17T10:39:10Z
2021-03-17T14:08:53Z
BUG/TST: run and fix all arithmetic tests with+without numexpr
diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py index 387d8b463b8b4..67b68ce7365cc 100644 --- a/pandas/core/ops/array_ops.py +++ b/pandas/core/ops/array_ops.py @@ -2,7 +2,7 @@ Functions for arithmetic and comparison operations on NumPy arrays and ExtensionArrays. """ -from datetime import ti...
Closes #40462 This PR adds a auto-used fixture for `pandas/tests/arithmetic` that sets the `expressions._MIN_ELEMENTS` to 0, to force taking the numexpr path, even if our test data are small (which would otherwise never excercise the numexpr code path) Further, it makes some fixes to get the tests passing with th...
https://api.github.com/repos/pandas-dev/pandas/pulls/40463
2021-03-16T10:40:58Z
2021-04-26T21:57:35Z
2021-04-26T21:57:35Z
2021-04-27T06:38:45Z
TST: csv parser segfaulting on malformed input.
diff --git a/pandas/tests/io/parser/common/test_common_basic.py b/pandas/tests/io/parser/common/test_common_basic.py index b4ac419fba30c..297cbbe66cb6b 100644 --- a/pandas/tests/io/parser/common/test_common_basic.py +++ b/pandas/tests/io/parser/common/test_common_basic.py @@ -753,3 +753,12 @@ def test_encoding_surrogat...
xref #14782 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40458
2021-03-16T03:40:50Z
2021-03-16T20:31:41Z
2021-03-16T20:31:41Z
2021-03-16T21:45:30Z
CI: fix failing script/tests
diff --git a/Makefile b/Makefile index f47c50032f83c..1fdd3cfdcf027 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY : develop build clean clean_pyc doc lint-diff black +.PHONY : develop build clean clean_pyc doc lint-diff black test-scripts all: develop @@ -25,3 +25,6 @@ doc: cd doc; \ python make...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40457
2021-03-16T02:21:25Z
2021-03-16T15:32:18Z
2021-03-16T15:32:18Z
2021-03-25T11:22:27Z
REF: back DatetimeBlock, TimedeltaBlock by DTA/TDA
diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py index 5f9e67a484d24..efa36a5bd3ae9 100644 --- a/pandas/core/array_algos/quantile.py +++ b/pandas/core/array_algos/quantile.py @@ -133,8 +133,14 @@ def _quantile_ea_compat( if not is_sparse(orig.dtype): # shape[0] shou...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Broken off from #40149. Like #40149, this backs DTBlock/TDBlock by (sometimes 2D) DTA/TDA...
https://api.github.com/repos/pandas-dev/pandas/pulls/40456
2021-03-16T01:19:45Z
2021-03-30T12:51:50Z
2021-03-30T12:51:49Z
2021-03-30T15:08:57Z
TYP: stubs for reshape, ops, ops_dispatch, hashing
diff --git a/pandas/_libs/hashing.pyi b/pandas/_libs/hashing.pyi new file mode 100644 index 0000000000000..2844ec9b06557 --- /dev/null +++ b/pandas/_libs/hashing.pyi @@ -0,0 +1,7 @@ +import numpy as np + +def hash_object_array( + arr: np.ndarray, # np.ndarray[object] + key: str, + encoding: str = ..., +) -> n...
manually curated, extra specificity in comments it is supported directly
https://api.github.com/repos/pandas-dev/pandas/pulls/40455
2021-03-16T01:06:12Z
2021-03-17T10:05:45Z
2021-03-17T10:05:45Z
2021-03-17T14:07:36Z
CLN: make `cell_context` DefaultDict like `ctx` - simplify code
diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py index 4fc07bbabda06..6c0ca6fac6ec3 100644 --- a/asv_bench/benchmarks/io/style.py +++ b/asv_bench/benchmarks/io/style.py @@ -3,7 +3,7 @@ from pandas import DataFrame -class RenderApply: +class Render: params = [[12, 24, 36], [12...
Making the variables and code in `Styler` consistent with each other and consistent in patterns so it is easier to work with (for me!) and newcomers. Also removing redundant code `cell_context.get("col_headings", {})` would **never** return anything other `{}`
https://api.github.com/repos/pandas-dev/pandas/pulls/40453
2021-03-15T20:04:18Z
2021-03-22T12:59:31Z
2021-03-22T12:59:31Z
2021-03-22T14:04:57Z
TYP: fix ignores
diff --git a/pandas/_libs/writers.pyx b/pandas/_libs/writers.pyx index 6577f3604d14b..6adda1fe92044 100644 --- a/pandas/_libs/writers.pyx +++ b/pandas/_libs/writers.pyx @@ -34,7 +34,7 @@ def write_csv_rows( data_index : ndarray nlevels : int cols : ndarray - writer : object + writer : _csv.writer ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40452
2021-03-15T19:53:24Z
2021-03-17T10:00:16Z
2021-03-17T10:00:16Z
2021-03-17T14:09:24Z
BUG/API: Index.__new__ match Series datetime inference behavior
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 78a7f1890b5de..ddb6473280a05 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -328,7 +328,7 @@ def array( elif inferred_dtype == "interval": try: return IntervalArray(data, co...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry This makes us slightly more aggressive in casting to dt64 in `Index.__new__` (see the added...
https://api.github.com/repos/pandas-dev/pandas/pulls/40451
2021-03-15T19:49:51Z
2021-03-23T15:08:24Z
null
2021-11-08T16:37:34Z
Fix StringArray.astype for category dtype
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 63902b53ea36d..155486953f4ba 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -570,6 +570,7 @@ Conversion - Bug in creating a :class:`DataFrame` from an empty ``np.recarray`` not retaining the original...
- [X] closes #40351 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry This was failing due to `elif np.issubdtype(dtype, np.floating)` [here](https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/40450
2021-03-15T18:19:50Z
2021-04-02T19:09:57Z
2021-04-02T19:09:57Z
2021-04-02T19:10:02Z
PERF: no need to check for DataFrame in pandas.core.computation.expressions
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 0dbe5e8d83741..ae1928b8535f9 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -19,8 +19,6 @@ from pandas._typing import FuncType -from pandas.core.dtypes.generic imp...
In practice, this case is only covered by specific tests using DataFrame in `test_expressions.py`, not from actual usage through ops (so I just updated the failing tests to not use any DataFrame as input to those checks). Although our test suite might not be the best suited to check that, since many tests are small a...
https://api.github.com/repos/pandas-dev/pandas/pulls/40445
2021-03-15T11:12:27Z
2021-03-23T13:46:02Z
2021-03-23T13:46:02Z
2021-03-23T13:59:52Z
REF: move roperators to pandas.core
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d74ef16765ef9..3b1774ade6f85 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -118,7 +118,7 @@ import sys import pandas blocklist = {'bs4', 'gcsfs', 'html5lib', 'http', 'ipython', 'jinja2', 'hypothesis', - 'lxml', 'matplotlib', 'numexpr',...
This PR does 2 things: - change `pandas.core.ops.roperator` imports to all import the module and use `roperator.<rop>` instead of importing the actual functions (this makes the usage similar as for the non-reversed operators with `import operator`) - move `roperator.py` from pandas/core/ops to pandas/core, so it ca...
https://api.github.com/repos/pandas-dev/pandas/pulls/40444
2021-03-15T10:40:05Z
2021-03-23T16:47:38Z
2021-03-23T16:47:38Z
2021-03-24T07:26:28Z
[ArrayManager] DataFrame constructor from ndarray
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 83ecdbce5fa80..fdfaffbda97b4 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -34,6 +34,7 @@ from pandas.core.dtypes.common import ( is_1d_only_ea_dtype, is_dateti...
xref https://github.com/pandas-dev/pandas/issues/39146 Currently, the `DataFrame(ndarray)` construction for ArrayManager still went through BlockManager and then `mgr_to_mgr` conversion, which is less efficient. This PR adds a check in `ndarray_to_mgr` for directly creating an ArrayManager. ~It's still WIP, bec...
https://api.github.com/repos/pandas-dev/pandas/pulls/40441
2021-03-15T09:30:56Z
2021-04-26T09:34:19Z
2021-04-26T09:34:19Z
2021-04-26T17:42:54Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99ba2feadbca7..aa8c2b74d7a7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ minimum_pre_commit_version: 2.9.2 exclude: ^LICENSES/|\.(html|csv|svg)$ repos: - repo: https://github.com/MarcoGorelli/absolufy-import...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/nod...
https://api.github.com/repos/pandas-dev/pandas/pulls/40439
2021-03-15T07:24:18Z
2021-03-15T08:36:28Z
2021-03-15T08:36:28Z
2021-03-16T14:28:45Z
DOC: Minor formatting in user_guide/window
diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst index 4a560f6b23932..d09c1ab9a1409 100644 --- a/doc/source/user_guide/window.rst +++ b/doc/source/user_guide/window.rst @@ -168,7 +168,7 @@ parameter: ============= ==================== Value Behavior ============= ==========...
https://api.github.com/repos/pandas-dev/pandas/pulls/40438
2021-03-15T04:09:18Z
2021-03-15T07:44:12Z
2021-03-15T07:44:12Z
2021-03-15T17:23:03Z
ENH: `escape` html argument in Styler.format
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index a9a5041e4a410..87f80ee29a95f 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -135,6 +135,7 @@ Other enhancements - :meth:`.Styler.set_table_styles` amended to optionally allow certain css-string input...
- [x] closes #40388 Adds an HTML `escape` parameter to `Styler.format`, which acts to escape the data value **before** it is passed to a formatter. For example, `Styler.format('<a href="a.com/{0}">{0}</a>', escape=True)` will not escape the HTML as part of the formatting function, it will only escape the value `...
https://api.github.com/repos/pandas-dev/pandas/pulls/40437
2021-03-14T22:42:47Z
2021-03-23T17:03:14Z
2021-03-23T17:03:14Z
2021-03-23T17:32:29Z
TYP: fix type ignores
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index e327f48f9a888..c77b9172e2091 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -93,9 +93,7 @@ def dec(f): is_decorating = not kwargs and len(args) == 1 and callable(args[0]) if is_decorating: f = args[0] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40434
2021-03-14T19:56:05Z
2021-03-15T11:35:46Z
2021-03-15T11:35:46Z
2021-03-15T14:13:35Z
TYP: stubs for tslibs
diff --git a/pandas/_libs/tslibs/ccalendar.pyi b/pandas/_libs/tslibs/ccalendar.pyi new file mode 100644 index 0000000000000..500a0423bc9cf --- /dev/null +++ b/pandas/_libs/tslibs/ccalendar.pyi @@ -0,0 +1,13 @@ + +DAYS: list[str] +MONTH_ALIASES: dict[int, str] +MONTH_NUMBERS: dict[str, int] +MONTHS: list[str] +int_to_we...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/40433
2021-03-14T18:17:06Z
2021-03-16T13:18:21Z
2021-03-16T13:18:21Z
2021-03-16T14:26:50Z
CLN: remove unused file opening and mmap code from parsers.pyx
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index baf5633db0cb3..a11bf370412d2 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -284,21 +284,10 @@ cdef extern from "parser/tokenizer.h": cdef extern from "parser/io.h": - void *new_mmap(char *fname) - int del_mmap(vo...
The removed code has never been used since #36997. `TextReader` is only ever called with file handles.
https://api.github.com/repos/pandas-dev/pandas/pulls/40431
2021-03-14T15:50:33Z
2021-03-15T01:08:49Z
2021-03-15T01:08:49Z
2021-03-15T01:08:54Z
DEPR: **kwargs in ExcelWriter
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index fad734a0e39ad..9aa27dd8e4223 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -370,6 +370,7 @@ Deprecations - Deprecated :meth:`.Styler.set_na_rep` and :meth:`.Styler.set_precision` in favour of :meth:...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Currently ExcelWriter has **engine_kwargs to pass through to the engine, [although this is undocumented](https:...
https://api.github.com/repos/pandas-dev/pandas/pulls/40430
2021-03-14T14:17:50Z
2021-03-17T21:17:56Z
2021-03-17T21:17:56Z
2021-03-17T23:35:16Z
CLN: Don't modify state in FrameApply.agg
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 57147461284fb..3a2c2d7124963 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -633,28 +633,28 @@ def agg(self): obj = self.obj axis = self.axis - # TODO: Avoid having to change state - self.obj = self.obj if ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/40428
2021-03-14T11:16:36Z
2021-03-14T23:55:02Z
2021-03-14T23:55:02Z
2021-03-15T02:27:44Z
CLN/TST: Parametrize/deduplicate test_invalid_arg
diff --git a/pandas/tests/apply/test_invalid_arg.py b/pandas/tests/apply/test_invalid_arg.py index 2499c90535469..690d6bed0cb9b 100644 --- a/pandas/tests/apply/test_invalid_arg.py +++ b/pandas/tests/apply/test_invalid_arg.py @@ -91,27 +91,15 @@ def test_nested_renamer(box, method, func): getattr(obj, method)(f...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - Combined test_series_agg_nested_renamer and test_series_nested_renamer via parametrization - test_transform_nested_renamer is al...
https://api.github.com/repos/pandas-dev/pandas/pulls/40426
2021-03-14T10:19:06Z
2021-03-15T00:29:46Z
2021-03-15T00:29:46Z
2021-03-15T02:27:55Z
PERF: make Styler default formatter arguments statics instead of repeated dynamic
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..3acd9f3548702 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -367,7 +367,7 @@ Deprecations - Deprecated :meth:`core.window.ewm.ExponentialMovingWindow.vol` (:issue:`39220`) - Using ``...
This PR is a minor fix/improvement to a recent PR which deprecated `set_na_rep` and `set_precision`. #40134 For a dataframe with 100,000 floats the current Styler default formatter will make 100,000 `get_option` lookups for the pandas precision. Doing this calculation once prevents all these lookups and saves jus...
https://api.github.com/repos/pandas-dev/pandas/pulls/40425
2021-03-14T09:12:31Z
2021-03-14T23:50:51Z
2021-03-14T23:50:51Z
2021-03-15T14:27:55Z