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
CLN: re-wrap docstrings in pandas\compat\numpy\function.py
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index 938f57f504b04..c074b06042e26 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -1,20 +1,18 @@ """ -For compatibility with numpy libraries, pandas functions or -methods have to accept '*args' and '**...
https://api.github.com/repos/pandas-dev/pandas/pulls/36979
2020-10-08T11:31:06Z
2020-10-10T17:32:46Z
2020-10-10T17:32:46Z
2020-10-10T19:43:44Z
CI Upgrade isort in pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33afe8d443457..0cb8983ec68e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,10 +21,12 @@ repos: - file args: [--append-config=flake8/cython-template.cfg] - repo: https://github.com/PyCQA/isort - rev...
- xref #36879 ```console (base) root@ada0229371a4:/home/pandas-tazminia# pre-commit autoupdate && pre-commit run --all Updating https://github.com/python/black ... [INFO] Initializing environment for https://github.com/python/black. already up to date. Updating https://gitlab.com/pycqa/flake8 ... [INFO] Initial...
https://api.github.com/repos/pandas-dev/pandas/pulls/36978
2020-10-08T11:03:24Z
2020-10-08T17:42:46Z
2020-10-08T17:42:46Z
2020-10-08T17:43:10Z
DOC: improve description of the example which dataframe has two rows
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 29c63b030cdd5..22f58b769a938 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8971,8 +8971,8 @@ def mode(self, axis=0, numeric_only=False, dropna=True) -> DataFrame: ostrich bird 2 NaN By default, missing val...
improve description of the example which dataframe has two rows - [ ] closes #36970 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36971
2020-10-08T06:17:46Z
2020-10-11T19:38:46Z
2020-10-11T19:38:46Z
2020-10-11T19:39:17Z
DOC: make rename docs consistent
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 29c63b030cdd5..80e9ec5076610 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4323,7 +4323,7 @@ def rename( Traceback (most recent call last): KeyError: ['C'] not found in axis - Using axis-style parameters + ...
Other doc text describing code end in a colon. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36969
2020-10-08T04:46:42Z
2020-10-08T22:08:27Z
2020-10-08T22:08:27Z
2020-10-08T22:08:33Z
TYP: consistent return types blocks
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 09f276be7d64a..2ab5ae6e22092 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -491,11 +491,11 @@ def _maybe_downcast(self, blocks: List["Block"], downcast=None) -> List["Block"] return ex...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36967
2020-10-08T03:39:26Z
2020-10-08T21:12:31Z
2020-10-08T21:12:31Z
2020-10-08T21:21:14Z
CLN: remove unnecessary BoolBlock.replace
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 09f276be7d64a..050789edbe79d 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1171,8 +1171,8 @@ def interpolate( inplace = validate_bool_kwarg(inplace, "inplace") - # Only Float...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The fastpath it implements is equivalent to the can_hold_element fastpath in Block.replace
https://api.github.com/repos/pandas-dev/pandas/pulls/36966
2020-10-08T01:54:45Z
2020-10-08T21:12:52Z
2020-10-08T21:12:52Z
2020-10-08T21:23:19Z
CLN: share to_native_types
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 09f276be7d64a..7332d01f15993 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2070,7 +2070,7 @@ def _can_hold_element(self, element: Any) -> bool: return is_integer(element) or (is_float(e...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36965
2020-10-08T01:16:28Z
2020-10-10T17:31:49Z
2020-10-10T17:31:49Z
2020-10-10T18:09:42Z
REF/TYP: use OpsMixin for logical methods
diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py index 1fba022f2a1de..185e9197e01fe 100644 --- a/pandas/core/arraylike.py +++ b/pandas/core/arraylike.py @@ -8,6 +8,7 @@ from pandas.errors import AbstractMethodError +from pandas.core.ops import roperator from pandas.core.ops.common import unpack_ze...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36964
2020-10-08T00:00:58Z
2020-10-08T11:14:05Z
2020-10-08T11:14:05Z
2020-10-08T15:21:59Z
BUG/API: tighter checks on DTI/TDI.equals
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index f85e3e716bbf9..0853664c766bb 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -23,6 +23,7 @@ from pandas.core.dtypes.common import ( DT64NS_DTYPE, TD64NS_DTYPE, + is_categorical_dt...
- [x] closes #33531 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Also fixes `TimedeltaIndex(Categorical(tdi))` (which DatetimeIndex already gets right)
https://api.github.com/repos/pandas-dev/pandas/pulls/36962
2020-10-07T23:21:20Z
2020-10-08T21:15:41Z
2020-10-08T21:15:41Z
2020-10-08T21:27:59Z
TYP: use OpsMixin for DecimalArray
diff --git a/pandas/tests/extension/decimal/array.py b/pandas/tests/extension/decimal/array.py index 2895f33d5c887..3d1ebb01d632f 100644 --- a/pandas/tests/extension/decimal/array.py +++ b/pandas/tests/extension/decimal/array.py @@ -7,10 +7,11 @@ import numpy as np from pandas.core.dtypes.base import ExtensionDtype...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36961
2020-10-07T22:51:43Z
2020-10-10T17:31:16Z
2020-10-10T17:31:16Z
2020-10-10T18:11:11Z
ENH: typo in citing page
diff --git a/web/pandas/about/citing.md b/web/pandas/about/citing.md index 25d2c86061daa..e2821dbc19a4e 100644 --- a/web/pandas/about/citing.md +++ b/web/pandas/about/citing.md @@ -6,7 +6,7 @@ If you use _pandas_ for a scientific publication, we would appreciate citations following paper: - [pandas on Zenodo](https...
Small typo in `citing.md`
https://api.github.com/repos/pandas-dev/pandas/pulls/36960
2020-10-07T22:25:21Z
2020-10-07T23:24:16Z
2020-10-07T23:24:16Z
2020-10-07T23:34:11Z
TYP: core.missing, ops.docstrings, internals.ops, internals.managers, io.html
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index a7a9a77bab3bc..0ec281bb0fdce 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1845,7 +1845,7 @@ def _consolidate(blocks): gkey = lambda x: x._consolidate_key grouper = itertools.g...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36959
2020-10-07T20:57:55Z
2020-10-08T08:56:45Z
2020-10-08T08:56:45Z
2020-10-08T15:21:06Z
DOC: Add GCS as supported filesystem for read_parquet
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 55256c928aad9..97ec0ed1f7fdc 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -321,7 +321,7 @@ def read_parquet(path, engine: str = "auto", columns=None, **kwargs): ---------- path : str, path object or file-like object Any...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36958
2020-10-07T20:51:41Z
2020-10-10T22:56:37Z
2020-10-10T22:56:37Z
2020-10-10T22:56:41Z
Implement DataFrame.__array_ufunc__
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ad5af5df710ba..9f7aff0a30bd3 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -238,6 +238,8 @@ Other enhancements - :meth:`DatetimeIndex.searchsorted`, :meth:`TimedeltaIndex.searchsorted`, :meth:`Perio...
For some cases, this will preserve extension types of arrays by calling the ufunc blockwise. ```python In [1]: import pandas as pd; import numpy as np In [2]: df = pd.DataFrame({"A": pd.array([0, 1], dtype="Sparse")}) In [3]: np.sin(df).dtypes Out[3]: A Sparse[float64, nan] dtype: object ``` Implemen...
https://api.github.com/repos/pandas-dev/pandas/pulls/36955
2020-10-07T18:36:37Z
2020-11-25T20:52:40Z
2020-11-25T20:52:40Z
2020-11-30T14:38:18Z
TYP/REF: use _cmp_method in EAs
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index dd750bce7842e..4dd117e407961 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -23,6 +23,7 @@ from pandas.core.dtypes.missing import isna from pandas.core import ops +from pandas.core.arraylike import Op...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36954
2020-10-07T18:14:48Z
2020-10-07T22:23:29Z
2020-10-07T22:23:29Z
2020-10-07T22:37:11Z
CLN: dont special-case should_store, CategoricalBlock
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 09f276be7d64a..a3b3d1aed7b13 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -103,7 +103,6 @@ class Block(PandasObject): is_timedelta = False is_bool = False is_object = False - i...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Moving towards avoiding special-casing pandas-internal EA subclasses.
https://api.github.com/repos/pandas-dev/pandas/pulls/36952
2020-10-07T17:55:18Z
2020-10-08T21:13:42Z
2020-10-08T21:13:42Z
2020-10-08T21:22:21Z
REGR: Allow positional arguments in DataFrame.agg
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index f9127ee8d13e7..3ad8d981be2c9 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression where attemptin...
Although `DataFrame.agg` is documented as accepting `func, axis, *args, **kwargs` with `*args` and `**kwargs` passed to `func`, passing positional arguments raises a TypeError. The reason for this is that the internal call to `self._aggregate` uses a keyword argument (axis) before passing *args and `**kwargs`, and a...
https://api.github.com/repos/pandas-dev/pandas/pulls/36950
2020-10-07T17:53:27Z
2020-10-09T13:32:56Z
2020-10-09T13:32:56Z
2020-10-09T13:33:42Z
REGR: Make DateOffset immutable
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index e63912ebc8fee..d0d03021629c6 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression where atte...
- [x] closes #36940 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I'm assuming this is a regression and not behavior we want?
https://api.github.com/repos/pandas-dev/pandas/pulls/36946
2020-10-07T17:11:21Z
2020-10-08T21:10:10Z
2020-10-08T21:10:09Z
2020-10-08T22:22:49Z
use-python-language-in-pip-to-conda
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33afe8d443457..4fcb8b41fedd6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,10 +39,11 @@ repos: - id: pip_to_conda name: Generate pip dependency from conda description: This hook checks if the conda ...
xref #36531 This is to avoid problems where a dev's own system's Python points to Python2
https://api.github.com/repos/pandas-dev/pandas/pulls/36945
2020-10-07T16:28:49Z
2020-10-09T11:06:58Z
2020-10-09T11:06:58Z
2020-10-09T11:07:01Z
REF/TYP: define methods non-dynamically for SparseArray
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index d4ec641794fc2..5a66bf522215a 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -40,6 +40,7 @@ from pandas.core.dtypes.missing import isna, na_value_for_dtype, notna import pandas.core...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36943
2020-10-07T16:21:39Z
2020-10-10T17:39:29Z
2020-10-10T17:39:29Z
2020-10-10T18:10:33Z
DOC: Update dependency for to_markdown documentation
diff --git a/pandas/core/series.py b/pandas/core/series.py index 2b972d33d7cdd..db274f37f5889 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1471,6 +1471,10 @@ def to_markdown( str {klass} in Markdown-friendly format. + Notes + ----- + Requires the `tabul...
Adding to the documentation that tabulate is required for to_markdown to be executed - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36938
2020-10-07T08:49:02Z
2020-10-17T10:21:30Z
2020-10-17T10:21:30Z
2020-10-17T10:21:31Z
BUG: GH36928 Allow dict_keys to be used as column names by read_csv
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index d0d03021629c6..843a161bf7c6a 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :func:`rea...
- [x] closes #36928 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36937
2020-10-07T08:14:21Z
2020-10-10T17:45:01Z
2020-10-10T17:45:01Z
2020-10-12T14:08:39Z
TYP: clean unreachable code and duplicate test #27396
diff --git a/pandas/tests/frame/test_to_csv.py b/pandas/tests/frame/test_to_csv.py index db7347bb863a5..b085704e8b06f 100644 --- a/pandas/tests/frame/test_to_csv.py +++ b/pandas/tests/frame/test_to_csv.py @@ -358,63 +358,33 @@ def _to_uni(x): N = 100 chunksize = 1000 - - for ncols in [4]: - ...
xref #27396 ``` pandas/tests/frame/test_to_csv.py:363: error: Right operand of 'or' is never evaluated [unreachable] pandas/tests/frame/test_to_csv.py:389: error: Right operand of 'or' is never evaluated [unreachable] pandas/tests/frame/test_to_csv.py:417: error: Right operand of 'or' is never evaluated [unreach...
https://api.github.com/repos/pandas-dev/pandas/pulls/36935
2020-10-07T05:32:49Z
2020-10-10T17:44:01Z
2020-10-10T17:44:00Z
2022-11-18T02:21:10Z
TST: RollingGroupby.count with closed specified
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ae4d5ea692066..0ab95dd260a9c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -442,6 +442,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.sum()` returned wrong values when dtypes where mixed betw...
- [x] closes #35869 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Closed by #31302
https://api.github.com/repos/pandas-dev/pandas/pulls/36934
2020-10-07T04:51:34Z
2020-10-09T20:02:09Z
2020-10-09T20:02:08Z
2020-10-09T20:05:17Z
TST/CLN: roll_sum/mean/var/skew/kurt: simplification for non-monotonic indices
diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx index b50eaf800533a..2c315ca13e563 100644 --- a/pandas/_libs/window/aggregations.pyx +++ b/pandas/_libs/window/aggregations.pyx @@ -58,7 +58,7 @@ cdef: cdef inline int int_max(int a, int b): return a if a >= b else b cdef inline ...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The removed for-loop doesn't seem to be necessary (I hope this code is tested by an existing test). I feel like I'm missing an obvious reason why these for-loops are needed: looking at the...
https://api.github.com/repos/pandas-dev/pandas/pulls/36933
2020-10-07T04:49:54Z
2020-10-25T22:09:38Z
2020-10-25T22:09:37Z
2020-10-25T22:09:55Z
REF/TYP: arrays.datetimelike
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 6285f142b2391..d6417bfe3f8e8 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1,6 +1,17 @@ from datetime import datetime, timedelta import operator -from typing import Any, Callable, ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry @simonjayhawkins this is still giving me two mypy complaints locally: ``` pandas/core/arrays/datetimelike.py:549: error: Too many arguments for "...
https://api.github.com/repos/pandas-dev/pandas/pulls/36932
2020-10-07T04:04:38Z
2020-10-10T22:25:10Z
2020-10-10T22:25:10Z
2020-10-10T22:45:23Z
TYP: define RangeIndex methods non-dynamically
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index f0b0773aeb47b..28a5243531c58 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -9,7 +9,6 @@ from pandas._libs import index as libindex from pandas._libs.lib import no_default from pandas._typing import Label ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36931
2020-10-07T00:46:21Z
2020-10-08T14:34:03Z
2020-10-08T14:34:03Z
2020-10-08T15:13:50Z
TYP/REF: define comparison methods non-dynamically
diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py new file mode 100644 index 0000000000000..1fba022f2a1de --- /dev/null +++ b/pandas/core/arraylike.py @@ -0,0 +1,43 @@ +""" +Methods that can be shared by many array-like classes or subclasses: + Series + Index + ExtensionArray +""" +import operat...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #31160, cc @simonjayhawkins @WillAyd This implements OpsMixin which is more mypy-friendly than the status quo, and uses it in Series, Index, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36930
2020-10-06T23:52:37Z
2020-10-07T15:10:11Z
2020-10-07T15:10:11Z
2020-10-07T15:16:20Z
TYP: define Index.any, Index.all non-dynamically
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 99d9568926df4..c3d21acbe9e4d 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2,7 +2,6 @@ from datetime import datetime from itertools import zip_longest import operator -from textwrap import dedent from typin...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #31160, cc @simonjayhawkins This unearths 2.5 issues: 1) Index.any/all says that we pass *args/**kwargs to np.any/all, but we don't 1b) th...
https://api.github.com/repos/pandas-dev/pandas/pulls/36929
2020-10-06T23:45:24Z
2020-10-08T11:52:58Z
2020-10-08T11:52:58Z
2020-10-08T15:26:28Z
BUG: Fix duplicates in intersection of multiindexes
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index 29b0e99a3a356..6b6a75a2d5fab 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in indexing on a :class:`Series` with ``CategoricalDtype`` after unpick...
- [x] closes #36915 - [x] xref #31326 (closes the intersection part) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Seems like this was not introduced on purpose. Probably introduced in #31312
https://api.github.com/repos/pandas-dev/pandas/pulls/36927
2020-10-06T20:08:06Z
2020-11-29T17:21:53Z
2020-11-29T17:21:53Z
2020-12-02T12:21:57Z
CLN: Clean groupby tests
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 6783fc5b66433..087b4f64307e6 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -368,6 +368,7 @@ def test_attr_wrapper(ts): # get attribute result = grouped.dtype ex...
Found a few unused parts while moving tests for another PR
https://api.github.com/repos/pandas-dev/pandas/pulls/36925
2020-10-06T19:09:07Z
2020-10-10T22:53:36Z
2020-10-10T22:53:36Z
2020-10-10T23:31:40Z
TYP: check_untyped_defs core.indexes.base
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 539f5515a2f8b..df7c27c1fc48c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -14,6 +14,7 @@ Tuple, TypeVar, Union, + cast, ) import warnings @@ -102,7 +103,7 @@ ) if TYPE_CHECKING: - f...
pandas\core\indexes\base.py:975: error: Argument 1 to "format_object_attrs" has incompatible type "Index"; expected "Sequence[Any]" [arg-type] pandas\core\indexes\base.py:1612: error: "Index" has no attribute "levels"; maybe "nlevels"? [attr-defined] pandas\core\indexes\base.py:1613: error: "Index" has no attribute...
https://api.github.com/repos/pandas-dev/pandas/pulls/36924
2020-10-06T19:05:51Z
2020-10-10T15:43:15Z
2020-10-10T15:43:14Z
2020-10-10T16:05:47Z
DOC: add newline to fix code block format in `pandas.DataFrame.to_sql`
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 04e1fc91c5fd4..f0fb34dadb257 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2690,6 +2690,7 @@ def to_sql( [(0, 'User 1'), (1, 'User 2'), (2, 'User 3')] An `sqlalchemy.engine.Connection` can also be passed to to ...
- [x] closes #36922 - [x] tests added / passed n/a (didn't add any new tests/change code) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry not sure if i need to add a whatsnew entry to 1.1.4 or 1.2.0... would love to get a hacktoberfest tag...
https://api.github.com/repos/pandas-dev/pandas/pulls/36923
2020-10-06T18:02:41Z
2020-10-06T23:04:35Z
2020-10-06T23:04:34Z
2020-10-07T02:48:19Z
TYP: check_untyped_defs core.groupby.ops
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index d16ffbca16a3d..1c18ef891b8c5 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -7,7 +7,7 @@ """ import collections -from typing import Dict, Hashable, List, Optional, Sequence, Tuple, Type +from typing import Dict, ...
pandas\core\groupby\ops.py:889: error: Need type annotation for 'sdata' [var-annotated]
https://api.github.com/repos/pandas-dev/pandas/pulls/36921
2020-10-06T17:47:20Z
2020-10-07T14:56:43Z
2020-10-07T14:56:43Z
2020-10-07T15:45:08Z
TYP: check_untyped_defs core.computation.pytables
diff --git a/pandas/core/computation/pytables.py b/pandas/core/computation/pytables.py index d876c655421ef..dd622ed724e8f 100644 --- a/pandas/core/computation/pytables.py +++ b/pandas/core/computation/pytables.py @@ -42,7 +42,10 @@ class Term(ops.Term): env: PyTablesScope def __new__(cls, name, env, side=No...
pandas\core\computation\pytables.py:46: error: Argument 1 to "__new__" of "object" has incompatible type "object"; expected "Type[object]" [arg-type] pandas\core\computation\pytables.py:189: error: Incompatible types in assignment (expression has type "Callable[[Any, int, Union[Mapping[str, str], Iterable[str], None]...
https://api.github.com/repos/pandas-dev/pandas/pulls/36920
2020-10-06T17:23:38Z
2020-10-06T18:19:38Z
2020-10-06T18:19:38Z
2020-10-06T19:23:53Z
TYP: check_untyped_defs core.computation.expressions
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 5bfd2e93a9247..23cf3019df461 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -248,6 +248,7 @@ def where(cond, a, b, use_numexpr=True): use_numexpr : bool, default T...
pandas\core\computation\expressions.py:251: error: "None" not callable [misc]
https://api.github.com/repos/pandas-dev/pandas/pulls/36917
2020-10-06T15:12:29Z
2020-10-06T18:03:14Z
2020-10-06T18:03:13Z
2020-10-06T19:25:07Z
BUG: Fixed IntegerArray.__array_ufunc__ with nout
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6a5b4b3b9ff16..2b0aea12bea42 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -367,7 +367,7 @@ ExtensionArray - Fixed Bug where :class:`DataFrame` column set to scalar extension type via a dict insta...
We forgot to return.
https://api.github.com/repos/pandas-dev/pandas/pulls/36913
2020-10-06T11:52:35Z
2020-10-06T18:41:36Z
2020-10-06T18:41:36Z
2020-10-06T18:42:14Z
BUG: RollingGroupby not respecting sort=False
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index d0d03021629c6..f9127ee8d13e7 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression where attemptin...
- [x] closes #36889 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36911
2020-10-06T06:14:54Z
2020-10-09T00:46:16Z
2020-10-09T00:46:15Z
2020-10-10T09:54:00Z
BUG: IntervalArray.__eq__ not deferring to Series
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 74534bc371094..f77a55b95d567 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -368,6 +368,7 @@ Numeric - Bug in :class:`IntegerArray` multiplication with ``timedelta`` and ``np.timedelta64`` objects (:...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36908
2020-10-06T02:29:29Z
2020-10-13T16:27:55Z
2020-10-13T16:27:55Z
2020-10-13T16:28:09Z
CLN: remove inplace kwarg from NDFrame._consolidate
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 04e1fc91c5fd4..8ccce9e5e451b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5447,27 +5447,18 @@ def f(): self._protect_consolidate(f) - def _consolidate(self, inplace: bool_t = False): + def _consolidate(self): ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36906
2020-10-06T00:45:57Z
2020-10-12T14:55:03Z
2020-10-12T14:55:03Z
2020-10-12T15:23:22Z
CLN: value -> key
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 413430942575d..94c6c5aed9c0d 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -544,10 +544,10 @@ def __iter__(self): def __len__(self) -> int: return len(self._left) - def __getitem__...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36905
2020-10-06T00:45:29Z
2020-10-06T03:08:08Z
2020-10-06T03:08:08Z
2020-10-06T15:08:57Z
TYP: io.json._json, util._decorators
diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index ef684469dffbb..3cf3c2e7fd91d 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -3,7 +3,7 @@ from io import BytesIO, StringIO from itertools import islice import os -from typing import IO, Any, Callable, List, Optional, Type +fro...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36903
2020-10-05T23:22:21Z
2020-10-10T10:38:36Z
2020-10-10T10:38:36Z
2020-10-10T14:42:36Z
CLN: standardize fixture usage in datetimelike array tests
diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py index 3f5ab5baa7d69..c50927eb66a52 100644 --- a/pandas/tests/arrays/test_datetimelike.py +++ b/pandas/tests/arrays/test_datetimelike.py @@ -17,7 +17,12 @@ # TODO: more freq variants @pytest.fixture(params=["D", "B", "W"...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36902
2020-10-05T22:34:11Z
2020-10-06T03:33:27Z
2020-10-06T03:33:27Z
2020-10-06T14:59:18Z
REF: collect reduction tests
diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 6ba55ce3c74b9..1a469d3e3d88b 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -9,12 +9,6 @@ class TestSeriesAnalytics: - def test_prod_numpy16_bug(self): - s =...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36901
2020-10-05T21:20:01Z
2020-10-06T03:44:14Z
2020-10-06T03:44:14Z
2020-10-06T14:59:50Z
DEPR: Index.ravel returning an ndarray
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index a269580bc4453..47ebd962b367c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -268,6 +268,7 @@ Deprecations - Deprecated :meth:`Index.is_all_dates` (:issue:`27744`) - Deprecated automatic alignment on...
- [x] closes #19956 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Make Index.ravel() behavior match every other ravel() method in existence.
https://api.github.com/repos/pandas-dev/pandas/pulls/36900
2020-10-05T20:42:51Z
2020-10-06T03:40:19Z
2020-10-06T03:40:18Z
2020-10-14T15:34:11Z
Backport PR #36689 on branch 1.1.x (DOC: Start v1.1.4 release notes)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 33c0750c1dc16..b8abc71ca64a2 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 1.1 .. toctree:: :maxdepth: 2 + v1.1.4 v1.1.3 v1.1.2 v1.1.1 diff --git a/doc/source/...
Backport PR #36689: DOC: Start v1.1.4 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/36899
2020-10-05T20:06:04Z
2020-10-06T10:28:43Z
2020-10-06T10:28:43Z
2020-10-06T10:28:43Z
BUG: Add trailing trailing newline in to_json
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ae4d5ea692066..90d0dad78ce40 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -417,6 +417,7 @@ I/O - Removed ``private_key`` and ``verbose`` from :func:`read_gbq` as they are no longer supported in ``p...
- [x] closes #36888 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36898
2020-10-05T19:48:07Z
2020-10-10T22:55:57Z
2020-10-10T22:55:57Z
2020-10-10T22:56:01Z
regression fix for merging DF with datetime index with empty DF
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6f137302d4994..167af1e5e282e 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -467,7 +467,6 @@ MultiIndex - Bug in :meth:`DataFrame.xs` when used with :class:`IndexSlice` raises ``TypeError`` with me...
- [X ] closes https://github.com/pandas-dev/pandas/issues/36895 - [X ] tests added / passed - [X ] passes `black pandas` - [ X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36897
2020-10-05T19:20:49Z
2020-11-03T13:30:04Z
2020-11-03T13:30:03Z
2020-11-03T18:34:08Z
Backport PR #36887 on branch 1.1.x (DOC: 1.1.3 release date)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index af714b1bb2ab1..2323afbe00e5d 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_113: -What's new in 1.1.3 (??) ------------------------- +What's new in 1.1.3 (October 5, 2020)...
Backport PR #36887: DOC: 1.1.3 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/36891
2020-10-05T14:03:43Z
2020-10-05T15:17:12Z
2020-10-05T15:17:11Z
2020-10-05T15:17:12Z
DOC: 1.1.3 release date
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index af714b1bb2ab1..2323afbe00e5d 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_113: -What's new in 1.1.3 (??) ------------------------- +What's new in 1.1.3 (October 5, 2020)...
removed mention of py39 support @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/36887
2020-10-05T12:24:21Z
2020-10-05T14:03:30Z
2020-10-05T14:03:30Z
2020-10-05T14:03:43Z
Backport PR #36864 on branch 1.1.x (CI: Update error message for np_dev)
diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py index 1fafdf00393e1..fbdac2bb2d8e8 100644 --- a/pandas/tests/series/indexing/test_indexing.py +++ b/pandas/tests/series/indexing/test_indexing.py @@ -367,14 +367,17 @@ def test_2d_to_1d_assignment_raises(): x...
Backport PR #36864: CI: Update error message for np_dev
https://api.github.com/repos/pandas-dev/pandas/pulls/36886
2020-10-05T10:46:45Z
2020-10-05T12:03:14Z
2020-10-05T12:03:14Z
2020-10-05T12:03:15Z
TYP: check_untyped_defs core.arrays.base
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index c2fc72ff753a8..94d6428b44043 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -1176,22 +1176,22 @@ def _create_arithmetic_method(cls, op): @classmethod def _add_arithmetic_ops(cls): - cls.__add__ = c...
xref https://github.com/pandas-dev/pandas/issues/31160 from https://docs.python.org/3/library/functions.html?highlight=setattr#setattr > For example, setattr(x, 'foobar', 123) is equivalent to x.foobar = 123. The changes here, don't 'fix' the issue. The correct solution is to create these methods with a static...
https://api.github.com/repos/pandas-dev/pandas/pulls/36885
2020-10-05T10:33:22Z
2020-10-05T12:58:39Z
2020-10-05T12:58:39Z
2020-10-05T13:15:12Z
TYP: check_untyped_defs compat.pickle_compat
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index ef9f36705a7ee..80ee1f2e20154 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -274,7 +274,7 @@ def patch_pickle(): """ orig_loads = pkl.loads try: - pkl.loads = loads + seta...
pandas\compat\pickle_compat.py:277: error: Incompatible types in assignment (expression has type "Callable[[bytes, DefaultNamedArg(bool, 'fix_imports'), DefaultNamedArg(str, 'encoding'), DefaultNamedArg(str, 'errors')], Any]", variable has type "Callable[[bytes, DefaultNamedArg(bool, 'fix_imports'), DefaultNamedArg(str...
https://api.github.com/repos/pandas-dev/pandas/pulls/36884
2020-10-05T10:24:51Z
2020-10-05T12:59:08Z
2020-10-05T12:59:08Z
2020-10-05T13:12:30Z
DOC: sync release notes on 1.1.x with master
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index acf1dafc59885..af714b1bb2ab1 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -16,7 +16,7 @@ Enhancements Added support for new Python version ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Pandas 1.1.3 now ...
xref #36845
https://api.github.com/repos/pandas-dev/pandas/pulls/36883
2020-10-05T10:20:49Z
2020-10-05T12:04:41Z
2020-10-05T12:04:41Z
2020-10-05T12:04:47Z
upgrade flake8 to 3.8.4 #36879
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0c9f12614d0d..6a311c6f702e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + rev: 3.8.4 hooks: - id: f...
closes #36879 Here are the logs after the upgrade to 3.8.4: ```console (base) root@33d4c5d14a5b:/home/pandas-tazminia# pre-commit run flake8 --all [INFO] Initializing environment for https://github.com/python/black. [INFO] Initializing environment for https://gitlab.com/pycqa/flake8. [INFO] Initializing envir...
https://api.github.com/repos/pandas-dev/pandas/pulls/36882
2020-10-05T10:03:21Z
2020-10-05T10:15:12Z
2020-10-05T10:15:11Z
2020-10-08T12:47:02Z
CLN: Remove the duplicate configuration of flake8-rst in setup.cfg
diff --git a/setup.cfg b/setup.cfg index a7c0f3484517f..3279a485c9bf3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,7 +42,6 @@ bootstrap = ignore = E203, # space before : (needed for how black formats slicing) E402, # module level import not at top of file W503, # line break before binary operat...
Remove duplicate `ignore = E203` configuration in setup.cfg[flake8-rst]
https://api.github.com/repos/pandas-dev/pandas/pulls/36877
2020-10-05T07:24:23Z
2020-10-05T08:05:51Z
2020-10-05T08:05:51Z
2020-10-05T08:17:31Z
BUG: in DataFrame.reset_index() only call maybe_upcast_putmask with ndarrays
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2b4b10c39602a..bd3112403b31b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -392,6 +392,7 @@ Indexing - Bug in :meth:`Index.sort_values` where, when empty values were passed, the method would break b...
- [x] closes #24206 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36876
2020-10-05T04:10:06Z
2020-10-11T20:01:58Z
2020-10-11T20:01:58Z
2020-10-11T20:05:50Z
DOC: Fix GL01 docstring errors in some functions
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 14363dabfcdf3..40c16d7cf0b8f 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -4,7 +4,7 @@ _shared_docs[ "aggregate" -] = """\ +] = """ Aggregate using one or more operations over the specified axis. Parame...
- [x] fixes #36874 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry There are some GL01 pandas docstring errors in `shared_docs.py`. ``` GL01 Docstring text (summary) should start in the line immediately after the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36875
2020-10-05T03:49:23Z
2020-10-16T01:32:19Z
2020-10-16T01:32:19Z
2020-10-16T01:32:24Z
REF: dont consolidate in is_mixed_type
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 28a6f6b8c6621..e9a5191ea23a1 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -630,7 +630,6 @@ def _is_homogeneous_type(self) -> bool: if self._mgr.any_extension_types: return len({block.dtype for block in self._mgr.bloc...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Avoid copies, side-effects.
https://api.github.com/repos/pandas-dev/pandas/pulls/36873
2020-10-05T02:44:21Z
2020-10-08T01:21:41Z
2020-10-08T01:21:41Z
2020-10-08T01:25:21Z
PERF: Improve RollingGroupby.count
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 5c2d099ed3119..a269580bc4453 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -284,6 +284,7 @@ Performance improvements - ``Styler`` uuid method altered to compress data transmission over web whilst ma...
- [x] closes #35625 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``` In [1]: import pandas as pd ...: ...: # Generate sample df ...: df = pd.DataFrame({'column1': range(600), 'group': 5*['l'+str(i) fo...
https://api.github.com/repos/pandas-dev/pandas/pulls/36872
2020-10-05T02:27:35Z
2020-10-05T13:01:38Z
2020-10-05T13:01:37Z
2020-10-05T16:52:34Z
CLN: minor changes to `_translate` to simplify and setup for other chgs.
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 8c72c06a96322..292c459919398 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -375,11 +375,15 @@ def _translate(self): cellstyle_map: DefaultDict[Tuple[CSSPair, ...], List[str]] = defaultdict(list) ...
minor changes here to decouple the render dict `d` into sections for code readability. this is also first part of other changes to improve readability of this method.
https://api.github.com/repos/pandas-dev/pandas/pulls/40736
2021-04-01T18:53:48Z
2021-04-01T21:24:52Z
2021-04-01T21:24:52Z
2021-04-02T06:58:52Z
Backport PR #40723 on branch 1.2.x (BUG: fix comparison of NaT with numpy array)
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index 26d768f830830..9cef1307278e8 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greater than the :class:`...
Backport PR #40723: BUG: fix comparison of NaT with numpy array
https://api.github.com/repos/pandas-dev/pandas/pulls/40734
2021-04-01T18:18:26Z
2021-04-06T13:30:24Z
2021-04-06T13:30:24Z
2021-04-06T13:30:24Z
REF: implement groupby.ops.WrappedCythonFunc
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 4c086f3b8612e..bcf2b6be15953 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -97,54 +97,172 @@ get_indexer_dict, ) -_CYTHON_FUNCTIONS = { - "aggregate": { - "add": "group_add", - "prod": "grou...
I think this is much closer to "the correct" abstraction here (i find the layered abstractions with similar names in core.groupby hard to follow). Contains \approx 0 groupby logic (takes ngroups as an argument in some methods) and is only about how to wrap/call/unwrap the libgroupby functions. There are a few more ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40733
2021-04-01T16:43:21Z
2021-04-02T01:43:12Z
2021-04-02T01:43:12Z
2021-04-02T18:24:33Z
ENH: `Styler.to_latex` conversion from CSS
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index dd95f9088e3da..d61d6f9be1b98 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -136,7 +136,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404 - Many features of the :...
This is an extension PR to #40422 (most of this code is included there), and must be committed after it. This PR only adds the `_parse_latex_css_conversion` function and associated `convert_css` argument. Below is the relevant section added to the user guide: ![Screen Shot 2021-04-01 at 16 37 12](https://user-im...
https://api.github.com/repos/pandas-dev/pandas/pulls/40731
2021-04-01T14:39:30Z
2021-06-16T00:20:10Z
2021-06-16T00:20:10Z
2021-06-16T13:25:12Z
REF: only fallback to masked op for object dtype
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 8205534c9d48b..957a493925405 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -104,11 +104,20 @@ def _evaluate_numexpr(op, op_str, a, b): a_value = a b_...
While investigating https://github.com/pandas-dev/pandas/pull/40727, I noticed that we are often trying `_masked_arith_op`, while it will end up giving the exact same error (for example when using ints, which don't have NaNs). From what I understand, I *think* that, in theory, we only need to fallback to a masked ver...
https://api.github.com/repos/pandas-dev/pandas/pulls/40728
2021-04-01T12:49:22Z
2021-04-02T15:09:05Z
2021-04-02T15:09:05Z
2021-04-02T15:12:16Z
PERF: numexpr doesn't support floordiv, so don't try
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 8205534c9d48b..43b6a6fb64314 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -128,8 +128,9 @@ def _evaluate_numexpr(op, op_str, a, b): roperator.rsub: "-", ope...
See overview of supported operators: https://numexpr.readthedocs.io/projects/NumExpr3/en/latest/user_guide.html#supported-operators. By trying to use it, we were falling back to the (slower) `_masked_arith_op` Discovered by investigating the arithmetic benchmarks at https://github.com/pandas-dev/pandas/issues/39146#...
https://api.github.com/repos/pandas-dev/pandas/pulls/40727
2021-04-01T12:15:39Z
2021-04-01T22:28:08Z
2021-04-01T22:28:08Z
2021-04-02T06:29:24Z
BUG: Do not allow boolean values for indexing with .loc without a boolean index.
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 5e95cd6e5ee10..21e6f0ea57451 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -674,6 +674,7 @@ Indexing - Bug in setting ``numpy.timedelta64`` values into an object-dtype :class:`Series` using a boolea...
- [x] closes #20432 - [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/40726
2021-04-01T12:11:41Z
2021-04-06T19:18:52Z
2021-04-06T19:18:52Z
2021-04-06T19:25:50Z
BUG: [ArrowStringArray] Recognize ArrowStringArray in infer_dtype
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 4b423175172d2..e816bd4cd4026 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1111,6 +1111,7 @@ _TYPE_MAP = { "complex128": "complex", "c": "complex", "string": "string", + str: "string", "S": "bytes", "U": "strin...
PR is draft. follow-up to #40679, https://github.com/pandas-dev/pandas/pull/40679#issuecomment-809642594 which is not yet merged and need to make window to run benchmarks https://github.com/pandas-dev/pandas/pull/40679#pullrequestreview-623553887 on master ``` >>> pd.__version__ '1.3.0.dev0+1180.gdd697e1cca' >...
https://api.github.com/repos/pandas-dev/pandas/pulls/40725
2021-04-01T10:39:32Z
2021-04-09T01:41:44Z
2021-04-09T01:41:44Z
2021-04-09T08:59:41Z
BUG: fix comparison of NaT with numpy array
diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst index 26d768f830830..9cef1307278e8 100644 --- a/doc/source/whatsnew/v1.2.4.rst +++ b/doc/source/whatsnew/v1.2.4.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greater than the :class:`...
Closes #40722
https://api.github.com/repos/pandas-dev/pandas/pulls/40723
2021-04-01T09:14:42Z
2021-04-01T18:17:35Z
2021-04-01T18:17:35Z
2021-04-01T18:17:40Z
COMPAT: matplotlib 3.4.0
diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py index 964596d9b6319..729d2bf1f019a 100644 --- a/pandas/plotting/_matplotlib/compat.py +++ b/pandas/plotting/_matplotlib/compat.py @@ -22,3 +22,4 @@ def inner(): mpl_ge_3_1_0 = _mpl_version("3.1.0", operator.ge) mpl_ge_3_2_0 = _...
- [ ] closes #40714 - [ ] 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/40718
2021-04-01T00:58:37Z
2021-04-01T19:27:51Z
2021-04-01T19:27:50Z
2021-04-04T14:26:51Z
REF: RangeIndex dont subclass Int64Index
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index f37faa4ab844b..b0911cc0ce556 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -46,6 +46,7 @@ from pandas.core.indexes.numeric import ( Float64Index, Int64Index, + NumericIndex, ) from pandas.cor...
This makes it much simpler if we want to put constructors in cython.
https://api.github.com/repos/pandas-dev/pandas/pulls/40717
2021-03-31T23:31:13Z
2021-04-02T01:52:49Z
2021-04-02T01:52:49Z
2021-04-02T02:20:08Z
TYP: groupby.pyi
diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi new file mode 100644 index 0000000000000..8721624e9881c --- /dev/null +++ b/pandas/_libs/groupby.pyi @@ -0,0 +1,168 @@ +from typing import Literal + +import numpy as np + +def group_median_float64( + out: np.ndarray, # ndarray[float64_t, ndim=2] ...
- [ ] 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/40716
2021-03-31T23:28:13Z
2021-04-02T01:37:10Z
2021-04-02T01:37:10Z
2021-04-02T10:02:55Z
CLN: follow-up cleanups
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index b8d79d0835fb8..4b423175172d2 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2440,6 +2440,9 @@ class NoDefault(Enum): # 2) because mypy does not understand singletons no_default = "NO_DEFAULT" + def __repr__(self) -> str: + ...
- [ ] 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/40715
2021-03-31T23:07:12Z
2021-04-02T00:50:08Z
2021-04-02T00:50:08Z
2021-04-02T01:03:35Z
CLN: docstring cleanup
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index a9feaee825a4b..ed8911b6cd929 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -154,9 +154,9 @@ def group_cumprod_float64(float64_t[:, ::1] out, Parameters ---------- - out : float64 array + out : np.ndarray[n...
https://api.github.com/repos/pandas-dev/pandas/pulls/40713
2021-03-31T21:10:43Z
2021-04-01T22:35:24Z
2021-04-01T22:35:24Z
2021-04-01T23:11:09Z
CI: increase codecov target - append ArrayManager tests coverage
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index d73940c1010ad..f5e3420b8c9b3 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -10,7 +10,7 @@ if [[ "not network" == *"$PATTERN"* ]]; then fi if [ "$COVERAGE" ]; then - COVERAGE="-s --cov=pandas --cov-report=xml" + COVERAGE="-s --cov=pandas --cov-report...
Attempt to close #40670
https://api.github.com/repos/pandas-dev/pandas/pulls/40711
2021-03-31T19:59:57Z
2021-04-03T06:35:54Z
2021-04-03T06:35:54Z
2021-04-03T06:35:58Z
DOC: Add/Update Pandas-Genomics in Ecosystem files
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index f569fe7451fa7..56aa734deddd6 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -475,7 +475,7 @@ arrays can be stored inside pandas' Series and DataFrame. `Pandas-Genomics`_ ~~~~~~~~~~~~~~~~~~ -Pandas-Genomics provides exten...
- [ ] 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/40710
2021-03-31T19:53:49Z
2021-04-01T15:55:56Z
2021-04-01T15:55:56Z
2021-04-01T15:56:00Z
REF: combine Block _can_hold_element methods
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 979b70c30d1b0..edc43bc68b2a8 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -113,6 +113,9 @@ from pandas.core.arrays import ( DatetimeArray, ExtensionArray, + IntervalArray, + Per...
which in turn lets us get rid of ObjectValuesExtensionBlock and HybridMixin.
https://api.github.com/repos/pandas-dev/pandas/pulls/40709
2021-03-31T19:31:13Z
2021-04-01T22:36:41Z
2021-04-01T22:36:41Z
2021-04-01T23:13:45Z
ENH: [ArrowStringArray] Enable the string methods for the arrow-backed StringArray
diff --git a/pandas/conftest.py b/pandas/conftest.py index 3fdde3261bd68..35affa62ccf68 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1144,6 +1144,8 @@ def nullable_string_dtype(request): * 'string' * 'arrow_string' """ + from pandas.core.arrays.string_arrow import ArrowStringDtype # n...
from https://github.com/pandas-dev/pandas/issues/35169#issuecomment-712883859 > Enable the string methods for the arrow-backed StringArray. This might also need some additional changes in the string accessor code (eg to dispatch extract to the underlying array as well)
https://api.github.com/repos/pandas-dev/pandas/pulls/40708
2021-03-31T17:47:30Z
2021-04-15T08:50:29Z
2021-04-15T08:50:29Z
2021-04-15T08:51:24Z
BUG: RollingGroupby MultiIndex levels dropped
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 75b2dee4a5822..e1358b433a0b9 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -400,6 +400,38 @@ However, floating point artifacts may now exist in the results when rolling over s = pd.Series([7, 5, ...
- [x] closes #38523 - [x] closes #38787 - [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 Essentially https://github.com/pandas-dev/pandas/pull/38737 but targ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40701
2021-03-31T06:28:03Z
2021-04-05T16:22:13Z
2021-04-05T16:22:13Z
2021-04-05T17:26:16Z
CI: lower codecov target
diff --git a/codecov.yml b/codecov.yml index 893e40db004a6..3f3df474956da 100644 --- a/codecov.yml +++ b/codecov.yml @@ -8,7 +8,7 @@ coverage: status: project: default: - target: '82' + target: '72' patch: default: target: '50'
- [ ] 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 xref #40670
https://api.github.com/repos/pandas-dev/pandas/pulls/40700
2021-03-31T02:36:51Z
2021-03-31T03:36:37Z
2021-03-31T03:36:37Z
2021-03-31T03:42:24Z
CLN: remove unused zip/enumerate/items
diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py index a8a761b5f4aac..7a1a5f5b30590 100644 --- a/pandas/core/aggregation.py +++ b/pandas/core/aggregation.py @@ -162,7 +162,7 @@ def normalize_keyword_aggregation(kwargs: dict) -> Tuple[dict, List[str], List[i order = [] columns, pairs = list...
found by #40570
https://api.github.com/repos/pandas-dev/pandas/pulls/40699
2021-03-31T02:14:41Z
2021-03-31T13:12:50Z
2021-03-31T13:12:50Z
2021-06-05T20:50:46Z
CLN: boolean->bool, string->str in docstrings
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 0c17e8c3f8c19..040cb17578fa2 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -933,10 +933,10 @@ def rank_1d( * max: highest rank in group * first: ranks assigned in order they appear in the array * dense: l...
- [ ] 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/40698
2021-03-31T01:03:07Z
2021-03-31T12:52:35Z
2021-03-31T12:52:35Z
2021-03-31T14:16:33Z
CI: update exception catching for np1.21
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 7a2175a364a8a..a46e74ae15a06 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1733,6 +1733,8 @@ def maybe_cast_to_datetime( except ValueError: # TODO(GH#40048): only catch...
- [ ] 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/40697
2021-03-30T21:24:30Z
2021-03-31T01:02:24Z
2021-03-31T01:02:24Z
2021-03-31T01:04:04Z
CI: unpin pymysql, sync min version, and skip failing test
diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml index 5381caaa242cf..8755e1a02c3cf 100644 --- a/ci/deps/actions-37-db.yaml +++ b/ci/deps/actions-37-db.yaml @@ -32,7 +32,7 @@ dependencies: - google-cloud-bigquery>=1.27.2 # GH 36436 - psycopg2 - pyarrow>=0.15.0 - - pymysql<0.10.0 # temporar...
xref #36465
https://api.github.com/repos/pandas-dev/pandas/pulls/40696
2021-03-30T20:52:46Z
2021-04-09T15:51:17Z
2021-04-09T15:51:17Z
2022-11-18T02:21:55Z
TYP: tslibs.conversion, dtypes, fields
diff --git a/pandas/_libs/tslibs/conversion.pyi b/pandas/_libs/tslibs/conversion.pyi new file mode 100644 index 0000000000000..6470361542597 --- /dev/null +++ b/pandas/_libs/tslibs/conversion.pyi @@ -0,0 +1,41 @@ +from datetime import ( + datetime, + tzinfo, +) + +import numpy as np + +DT64NS_DTYPE: np.dtype +TD6...
- [ ] 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/40693
2021-03-30T16:14:38Z
2021-03-31T01:05:50Z
2021-03-31T01:05:50Z
2021-03-31T01:08:56Z
DOC: minor fixes to recent Styler guide PR
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index b8119477407c0..8a10a6e4d4c2e 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -243,7 +243,7 @@ "Table styles are flexible enough to control all individual parts of the table, including ...
small fixes to the previous doc edits: 1 spell correction. 1 uncomment and add an extra cell for clarity. 2 move creation of internal classes to relevant section.
https://api.github.com/repos/pandas-dev/pandas/pulls/40691
2021-03-30T08:25:53Z
2021-03-30T13:57:33Z
2021-03-30T13:57:33Z
2021-03-30T15:28:44Z
REF: de-duplicate pad/backfill code
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index a4bc2443e0eeb..0c17e8c3f8c19 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -794,68 +794,14 @@ def backfill(ndarray[algos_t] old, ndarray[algos_t] new, limit=None) -> ndarray: return indexer -@cython.boundscheck(False) -@cy...
- [ ] 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/40689
2021-03-30T03:35:08Z
2021-03-31T01:01:49Z
2021-03-31T01:01:49Z
2021-03-31T01:04:25Z
CLN/TST: Some cleanups in apply.test_invalid_arg
diff --git a/pandas/tests/apply/test_invalid_arg.py b/pandas/tests/apply/test_invalid_arg.py index c3cb3b245affd..698f85a04a757 100644 --- a/pandas/tests/apply/test_invalid_arg.py +++ b/pandas/tests/apply/test_invalid_arg.py @@ -102,26 +102,6 @@ def test_series_nested_renamer(renamer): s.agg(renamer) -def ...
- [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/40688
2021-03-30T00:32:16Z
2021-03-30T13:17:38Z
2021-03-30T13:17:38Z
2021-03-30T13:39:36Z
BUG: round_trip_pickle for lib.no_default
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 94a4d586b4f13..646b5a05afcad 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1,5 +1,6 @@ from collections import abc from decimal import Decimal +from enum import Enum import warnings import cython @@ -2433,8 +2434,15 @@ def maybe_con...
- [x] closes #40397 - [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 will also un-block making a .pyi for lib.pyx
https://api.github.com/repos/pandas-dev/pandas/pulls/40684
2021-03-29T22:15:16Z
2021-03-30T13:17:57Z
2021-03-30T13:17:57Z
2021-06-08T16:29:49Z
Agg functions for df not respecting numeric only with level
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 21e6f0ea57451..f735a1ffa16c3 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -754,6 +754,7 @@ Groupby/resample/rolling - Bug in :class:`core.window.ewm.ExponentialMovingWindow` when calling ``__getite...
- [x] closes #40660 - [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 stumbled accross this one
https://api.github.com/repos/pandas-dev/pandas/pulls/40683
2021-03-29T21:55:04Z
2021-04-08T22:15:43Z
2021-04-08T22:15:42Z
2021-04-09T20:08:50Z
REF: simplify dispatch in groupby.ops
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index e23fa9b82f12e..b43a0d2eced93 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -455,11 +455,11 @@ ctypedef fused complexfloating_t: @cython.wraparound(False) @cython.boundscheck(False) -def _group_add(complexfloating_t[:, :...
- [ ] 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 only real perf impact is one case where we currently do a complex->object->complex cast tha...
https://api.github.com/repos/pandas-dev/pandas/pulls/40681
2021-03-29T17:09:02Z
2021-03-31T12:57:39Z
2021-03-31T12:57:39Z
2021-03-31T14:17:13Z
TST: [ArrowStringArray] more parameterised testing - part 1
diff --git a/pandas/conftest.py b/pandas/conftest.py index f3356d2998ff8..aa43746d0e7d5 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1131,6 +1131,24 @@ def string_dtype(request): return request.param +@pytest.fixture( + params=[ + "string", + pytest.param( + "arrow_s...
aim to reduce diff to address https://github.com/pandas-dev/pandas/pull/39908#discussion_r585573328, but good to do as follow-up to #35259 anyway. This also includes a change to inference, which could be broken off if not wanted as part of a TST PR. more tests to change once fixture in play and also some paramete...
https://api.github.com/repos/pandas-dev/pandas/pulls/40679
2021-03-29T13:56:47Z
2021-04-01T13:35:41Z
2021-04-01T13:35:41Z
2021-04-01T14:45:00Z
TST: [ArrowStringArray] remove xfail from test_repr
diff --git a/pandas/tests/arrays/string_/test_string.py b/pandas/tests/arrays/string_/test_string.py index 0574061a6a544..89defb278d321 100644 --- a/pandas/tests/arrays/string_/test_string.py +++ b/pandas/tests/arrays/string_/test_string.py @@ -42,23 +42,16 @@ def cls(request): return request.param -def test_r...
follow-up to #35259, xref https://github.com/pandas-dev/pandas/issues/35169#issuecomment-727217462
https://api.github.com/repos/pandas-dev/pandas/pulls/40678
2021-03-29T12:32:30Z
2021-03-29T13:50:04Z
2021-03-29T13:50:04Z
2021-04-09T11:58:42Z
TST: [ArrowStringArray] add dtype parameterisation to test_astype_float and test_fillna_args
diff --git a/pandas/tests/arrays/string_/test_string.py b/pandas/tests/arrays/string_/test_string.py index 0574061a6a544..373360bf788e1 100644 --- a/pandas/tests/arrays/string_/test_string.py +++ b/pandas/tests/arrays/string_/test_string.py @@ -371,9 +371,20 @@ def test_astype_int(dtype, request): tm.assert_extens...
#35259 added dtype parameterisation to existing tests in pandas/tests/arrays/string_/test_string.py and xfailed for ArrowStringArray where needed. test_astype_float and test_fillna_args were later added in #37974 and #37987 respectively. This PR doesn't fix (although will be looking at the all the xfailed tests i...
https://api.github.com/repos/pandas-dev/pandas/pulls/40677
2021-03-29T12:13:47Z
2021-03-29T13:52:08Z
2021-03-29T13:52:08Z
2021-04-01T12:35:05Z
REF: _cython_operation handle values.ndim==1 case up-front
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 1350848741ad1..8afb0e116fea8 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -603,6 +603,23 @@ def _cython_operation( kind, values, how, axis, min_count, **kwargs ) + elif values...
- [ ] 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/40672
2021-03-29T00:37:08Z
2021-03-29T18:41:04Z
2021-03-29T18:41:04Z
2021-04-01T18:52:15Z
REF: move most of Block.interpolate to an array method
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index d1d0db913f854..7c2a31e63eeb3 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1106,128 +1106,34 @@ def interpolate( # If there are no NAs, then interpolate is a no-op retu...
Not _quite_ at the point where it can be called directly from ArrayManager, but close.
https://api.github.com/repos/pandas-dev/pandas/pulls/40671
2021-03-29T00:27:36Z
2021-04-02T20:20:24Z
2021-04-02T20:20:24Z
2021-04-02T21:04:41Z
REF: better use of fused_types for group_ohlc
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 7ddc087df9b11..f0f96fdfcc0a1 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -681,18 +681,17 @@ group_mean_float64 = _group_mean['double'] @cython.wraparound(False) @cython.boundscheck(False) -def _group_ohlc(floating[:, ...
- [ ] 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/40668
2021-03-28T18:49:43Z
2021-03-29T13:09:14Z
2021-03-29T13:09:14Z
2021-03-29T14:39:59Z
DOC: Trivial typo fix in user_guide/window (#40666)
diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst index d09c1ab9a1409..be9c04ae5d4f3 100644 --- a/doc/source/user_guide/window.rst +++ b/doc/source/user_guide/window.rst @@ -101,7 +101,7 @@ be calculated with :meth:`~Rolling.apply` by specifying a separate column of wei All windowing o...
Trivial string change: `min_periods` corrected from `min_peridos` Fixes Issue #40666
https://api.github.com/repos/pandas-dev/pandas/pulls/40667
2021-03-28T18:18:57Z
2021-03-28T21:46:37Z
2021-03-28T21:46:37Z
2021-03-29T03:53:21Z
BUG: Update Styler.clear method to clear all
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 92efb225682b7..78fb8838a9fa9 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -137,6 +137,7 @@ Other enhancements - :meth:`.Styler.apply` now more consistently accepts ndarray function returns, i.e. in...
- [ x ] closes #40484 - [ 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 updated in docs
https://api.github.com/repos/pandas-dev/pandas/pulls/40664
2021-03-28T17:44:44Z
2021-04-02T17:20:24Z
2021-04-02T17:20:24Z
2021-04-02T17:50:01Z
BUG: rank treating min int as NaN
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 92efb225682b7..6bba650dc80a1 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -501,6 +501,7 @@ Numeric - Bug in :meth:`DataFrame.mode` and :meth:`Series.mode` not keeping consistent integer :class:`Ind...
- [x] closes #32859 - [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 ASV's look unaffected: <details> ``` before after ratio [0299...
https://api.github.com/repos/pandas-dev/pandas/pulls/40659
2021-03-27T21:20:45Z
2021-03-29T14:21:48Z
2021-03-29T14:21:48Z
2021-03-29T15:51:23Z