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
DEPS: sync fastparquet version
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 2c09ef90375e9..fad734a0e39ad 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -300,7 +300,7 @@ Optional libraries below the lowest tested version may still work, but are not c +=================+======...
follow up #38344
https://api.github.com/repos/pandas-dev/pandas/pulls/40424
2021-03-14T05:19:36Z
2021-03-15T16:59:52Z
2021-03-15T16:59:52Z
2021-03-18T16:40:07Z
TYP: fix type-ignores in core
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index a888bfabd6f80..15f54c11be0a0 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1867,7 +1867,7 @@ def _sort_mixed(values): return np.concatenate([nums, np.asarray(strs, dtype=object)]) -def _sort_tuples(values: np....
Also added some missing annotations I saw along the way.
https://api.github.com/repos/pandas-dev/pandas/pulls/40423
2021-03-14T00:28:27Z
2021-03-14T09:58:33Z
2021-03-14T09:58:33Z
2021-03-14T16:24:11Z
ENH: Styler.to_latex(): conditional styling with native latex format
diff --git a/doc/source/_static/style/latex_1.png b/doc/source/_static/style/latex_1.png new file mode 100644 index 0000000000000..8b901878a0ec9 Binary files /dev/null and b/doc/source/_static/style/latex_1.png differ diff --git a/doc/source/_static/style/latex_2.png b/doc/source/_static/style/latex_2.png new file mode...
## Enhancing Styler to allow LaTeX Input - [x] closes #21673 also indirectly (by providing an alternative to DataFrame.to_latex): - [x] closes #38328 (enh: adding highlighting options to to_latex function) - [x] closes #28291 (enh: add option to format \hline in to_latex) - [x] closes #26278 (easier digit f...
https://api.github.com/repos/pandas-dev/pandas/pulls/40422
2021-03-13T20:49:09Z
2021-05-24T13:44:07Z
2021-05-24T13:44:05Z
2021-05-26T20:02:47Z
Fix typing for extension arrays and extension dtypes without isin and astype
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 16ec2bb5f253c..7177b44c06a18 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -485,9 +485,11 @@ def isin(comps: AnyArrayLike, values: AnyArrayLike) -> np.ndarray: comps = _ensure_arraylike(comps) comps = extract_...
Same as #39501 by removing changes related to `isin` and the overloads for `astype` and return type for `astype` Per discussion with @simonjayhawkins https://github.com/pandas-dev/pandas/pull/39501#issuecomment-798617105
https://api.github.com/repos/pandas-dev/pandas/pulls/40421
2021-03-13T17:27:20Z
2021-05-02T00:11:14Z
null
2023-02-13T20:50:54Z
DOC: Update backticks missing in pandas.DataFrame.query GH40375
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c048088ec2350..5fe1e44379cca 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3784,7 +3784,7 @@ def _box_col_values(self, values, loc: int) -> Series: # Unsorted def query(self, expr: str, inplace: bool = False, **kwargs): - ...
- [ ] closes #40375 - [ ] 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 A new suggestion was made to include code styling. Beginner's question: What is the p...
https://api.github.com/repos/pandas-dev/pandas/pulls/40419
2021-03-13T16:43:50Z
2021-03-14T23:43:56Z
2021-03-14T23:43:56Z
2021-03-15T05:22:19Z
CI: flaky zip test
diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index 3000aeea90a0f..356c82293359a 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -97,6 +97,17 @@ def test_to_read_gcs(gcs_buffer, format): tm.assert_frame_equal(df1, df2) +def assert_equal_zip_safe(result: by...
We catch the flaky byte in one place, this catches it in one more
https://api.github.com/repos/pandas-dev/pandas/pulls/40417
2021-03-13T15:57:12Z
2021-03-14T23:33:31Z
2021-03-14T23:33:31Z
2021-03-15T00:00:07Z
BUG: Do not attempt to cache unhashable values in to_datetime (#39756)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..5bb39bc75d6ed 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -592,6 +592,7 @@ Reshaping - Bug in :meth:`DataFrame.pivot_table` returning a ``MultiIndex`` for a single value when operat...
- [x] closes #39756 - [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/40414
2021-03-13T07:34:37Z
2021-03-14T23:43:26Z
2021-03-14T23:43:26Z
2021-03-16T01:06:01Z
DEPR: error_bad_lines and warn_bad_lines for read_csv
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 8ca23c68657a1..b4e35d1f22840 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -344,16 +344,33 @@ dialect : str or :class:`python:csv.Dialect` instance, default ``None`` Error handling ++++++++++++++ -error_...
- [x] closes #15122 - [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 Summary of contents - Adds new on_bad_lines parameter (I found on_bad_lines a more ex...
https://api.github.com/repos/pandas-dev/pandas/pulls/40413
2021-03-13T04:56:48Z
2021-05-28T16:58:22Z
2021-05-28T16:58:21Z
2021-05-28T22:31:39Z
TYP: fix ignores
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 493333fded6dd..baf5633db0cb3 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -337,7 +337,7 @@ cdef class TextReader: object skiprows object dtype object usecols - list dtype_cast_order + ...
cc @simonjayhawkins Locally when I run mypy on master I get 427 errors mostly "unused 'type: ignore' comment". Same result when i switch from py39 to py38, or from OSX to Ubuntu. mypy==0.812 in all cases. Any guesses what config the CI has different?
https://api.github.com/repos/pandas-dev/pandas/pulls/40412
2021-03-13T04:16:37Z
2021-03-13T13:34:11Z
2021-03-13T13:34:11Z
2021-03-13T15:05:20Z
BUG: Index constructor silently ignoring dtype
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..c977585ef2942 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -455,7 +455,7 @@ Conversion - Bug in :meth:`Series.view` and :meth:`Index.view` when converting between datetime-like (``da...
- [x] closes #21311 - [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 We can go a step further and re-use sanitize_array for the `dtype is None` case, but that ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40411
2021-03-13T00:16:12Z
2021-03-14T23:45:27Z
2021-03-14T23:45:27Z
2021-03-15T03:18:11Z
DOC: Fix window pairwise function other not taking ndarray
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 4a6ed109a88a3..e35ff5afca66e 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -447,7 +447,7 @@ def var_func(values, begin, end, min_periods): create_section_header("Parameters"), dedent( """ ...
- [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 xref: https://github.com/pandas-dev/pandas/pull/40392#discussion_r593013628
https://api.github.com/repos/pandas-dev/pandas/pulls/40410
2021-03-13T00:02:33Z
2021-03-13T18:55:03Z
2021-03-13T18:55:03Z
2021-03-13T18:55:06Z
CLN: docstrings, annotations, raising corner cases
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index cb7b9f990a98e..f6f36f6ad523b 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1,5 +1,7 @@ import warnings +cimport cython + import numpy as np cimport numpy as cnp @@ -47,6 +49,7 @@ cdef inline bint is_definitely_invalid_key(o...
PERF: lookup ._name and ._mgr_locs instead of .name and .mgr_locs. The property lookups add up, e.g. mgr_locs is just shy of 2% of the benchmark discussed https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422
https://api.github.com/repos/pandas-dev/pandas/pulls/40409
2021-03-13T00:01:06Z
2021-03-16T13:48:15Z
2021-03-16T13:48:15Z
2021-03-16T14:58:01Z
CI: cache network requests in tests
diff --git a/ci/deps/actions-37-cov.yaml b/ci/deps/actions-37-cov.yaml index 5381caaa242cf..1db521260c6a8 100644 --- a/ci/deps/actions-37-cov.yaml +++ b/ci/deps/actions-37-cov.yaml @@ -10,6 +10,7 @@ dependencies: - pytest-xdist>=1.21 - hypothesis>=3.58.0 - pytest-cov>=2.10.1 # this is only needed in the cover...
Earlier today a bunch of CI failures occurred because of failed network requests. This should prevent some of that.
https://api.github.com/repos/pandas-dev/pandas/pulls/40408
2021-03-12T21:40:39Z
2021-03-13T21:12:04Z
null
2021-03-13T21:12:11Z
DOC: remove pin for pydata-sphinx-theme + update for latest release
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 403d182e3d3e5..87357fd8ae716 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -2,7 +2,7 @@ :root { /* Use softer blue from bootstrap's default info color */ - --color-info: 23, 162, 1...
No longer pinning since the bug with the mobile dropdown has been fixed + update the variable for changes in the last release.
https://api.github.com/repos/pandas-dev/pandas/pulls/40407
2021-03-12T20:00:01Z
2021-03-12T22:06:19Z
2021-03-12T22:06:19Z
2021-04-06T16:35:43Z
CLN: unreachable code in algos.diff
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index c3705fada724a..0fa02d54b5b78 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1634,10 +1634,10 @@ def diff(arr, n: int, axis: int = 0, stacklevel=3): Parameters ---------- - arr : ndarray + arr : ndarray...
it looks like some code is unreachable following #37140 (assuming 1d or 2d only) cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/40406
2021-03-12T19:05:06Z
2021-03-12T22:07:21Z
2021-03-12T22:07:21Z
2021-03-13T09:46:14Z
Use take_1d in take_nd
diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py index 93d87f6bb4dfa..400c9472eacd0 100644 --- a/pandas/core/array_algos/take.py +++ b/pandas/core/array_algos/take.py @@ -89,6 +89,10 @@ def take_nd( if fill_value is lib.no_default: fill_value = na_value_for_dtype(arr.dtype, c...
xref https://github.com/pandas-dev/pandas/pull/40300#issuecomment-797637165
https://api.github.com/repos/pandas-dev/pandas/pulls/40405
2021-03-12T18:31:39Z
2021-06-08T18:20:59Z
null
2021-11-11T14:25:14Z
REF: consistent arguments for create_block_manager_from_blocks
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 63a437a91f6e4..5ec4f8623aa0f 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -296,6 +296,8 @@ def ndarray_to_mgr( ) values = values.T + _check_values_indices_...
- [ ] 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 We do expose create_block_manager_from_blocks in core.internals, so could put the old versi...
https://api.github.com/repos/pandas-dev/pandas/pulls/40403
2021-03-12T17:37:45Z
2021-03-16T13:51:26Z
2021-03-16T13:51:26Z
2021-03-16T14:54:22Z
BUG: fix convert_dtypes to handle empty df
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..190bf03203903 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -625,6 +625,7 @@ Other - Bug in :class:`Styler` where multiple elements in CSS-selectors were not correctly added to ``tabl...
Added a conditional to check a DataFrame had at least one column and if not return the original (empty) DataFrame if so. - [x] closes #40393 - [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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40402
2021-03-12T16:29:49Z
2021-03-15T14:00:57Z
2021-03-15T14:00:57Z
2021-03-15T14:35:58Z
CLN: remove unreached boolean-mask case from _preprocess_slice_or_indexer
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index e2949eb227fbf..ee684d40cd95f 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -52,7 +52,7 @@ from pandas import Index -def concatenate_array_managers( +def _concatenate_array_managers( ...
- [ ] 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/40401
2021-03-12T15:42:42Z
2021-03-16T13:49:08Z
2021-03-16T13:49:07Z
2021-03-16T14:56:16Z
DOC: Backticks missing in pandas.DataFrame.query
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 98abe8eaffca8..e42aaf78efba6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3784,7 +3784,7 @@ def _box_col_values(self, values, loc: int) -> Series: # Unsorted def query(self, expr: str, inplace: bool = False, **kwargs): - ...
- [ ] closes #40375 - [ ] 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 I also noticed that in the same sentence double quotes were missing, so I added those as ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40400
2021-03-12T14:49:42Z
2021-03-12T22:06:45Z
2021-03-12T22:06:45Z
2021-03-15T05:22:40Z
CLN: _maybe_upcast_for_op doesn't need to check timedelta ndarray
diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py index 9153eb25032e7..6f6972c34f0a9 100644 --- a/pandas/core/ops/array_ops.py +++ b/pandas/core/ops/array_ops.py @@ -195,6 +195,8 @@ def arithmetic_op(left: ArrayLike, right: Any, op): # NB: We assume that extract_array has already been call...
The `elif isinstance(obj, np.ndarray) and obj.dtype.kind == "m":` part is ever reached, because just before calling `_maybe_upcast_for_op`, we already did a `ensure_wrapped_if_datetimelike` which basically does the same (codedov also confirms it's not covered). So therefore removing that check. In addition, moving t...
https://api.github.com/repos/pandas-dev/pandas/pulls/40399
2021-03-12T14:05:39Z
2021-03-17T07:22:07Z
2021-03-17T07:22:07Z
2021-03-17T07:22:13Z
TYP: Arraylike alias change follow up
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 42299aaf46a48..0900688e04374 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -123,6 +123,8 @@ from pandas.tseries import frequencies if TYPE_CHECKING: + from typing import Litera...
follow-on from #40379 removing ignores that either changed or were added with the change of the ArrayLike alias to a Union
https://api.github.com/repos/pandas-dev/pandas/pulls/40398
2021-03-12T12:19:05Z
2021-03-13T15:42:42Z
2021-03-13T15:42:42Z
2021-03-13T15:42:48Z
REF/PERF: move np.errstate out of core array_ops up to higher level
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 89988349132e6..45656459792ba 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -376,7 +376,8 @@ def _cmp_method(self, other, op): other = other._ndarray pd_op = ops.get_array_op(op) - ...
Currently, we suppress numpy warnings with `np.errstate(all="ignore")` inside the `evaluate` function in `core.computation.expressions`, which is is only used in `core.ops.array_ops._na_arithmetic_op`, which in itself is only used in `core.ops.array_ops` `arithmetic_op()` and `comparison_op()` (where we actually called...
https://api.github.com/repos/pandas-dev/pandas/pulls/40396
2021-03-12T10:40:11Z
2021-03-17T21:10:35Z
2021-03-17T21:10:35Z
2021-03-18T14:34:37Z
CI run coverage on multiple builds
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index b34373b82af1a..a30dbc048c03d 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -92,6 +92,13 @@ jobs: - name: Print skipped tests run: python ci/print_skipped.py + - name: Upload coverage...
- [x] closes #39758 Moving the posix builds to GitHubActions + uploading coverage on every build, as they're merged by default by Codecov ---- Trying to get this in so that the codecov check in #40078 will pass
https://api.github.com/repos/pandas-dev/pandas/pulls/40394
2021-03-12T10:17:53Z
2021-03-17T21:08:52Z
2021-03-17T21:08:51Z
2021-03-17T21:09:44Z
CI/TYP: Window typing followup
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index d2b63c42d777b..67533259ae0c2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -11014,7 +11014,9 @@ def ewm( times: Optional[Union[str, np.ndarray, FrameOrSeries]] = None, ) -> ExponentialMovingWindow: axis = sel...
- [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 I believe https://github.com/pandas-dev/pandas/pull/40293 may have caused the current typing failures in the CI
https://api.github.com/repos/pandas-dev/pandas/pulls/40392
2021-03-12T05:53:55Z
2021-03-12T09:03:41Z
2021-03-12T09:03:41Z
2021-03-12T18:41:13Z
PERF: avoid double-verify of take indices
diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py index 86d6b772fe2e4..d0a53ec80ce1a 100644 --- a/pandas/core/indexers.py +++ b/pandas/core/indexers.py @@ -235,7 +235,7 @@ def validate_indices(indices: np.ndarray, n: int) -> None: # Indexer Conversion -def maybe_convert_indices(indices, n: int): +def ...
- [ ] 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/40391
2021-03-12T04:42:40Z
2021-03-12T19:41:24Z
2021-03-12T19:41:24Z
2021-03-12T20:35:49Z
TYP: Index.join, get_indexer, reindex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 26d25645b02c6..2246384f41b76 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -21,6 +21,7 @@ TypeVar, Union, cast, + overload, ) import warnings @@ -165,6 +166,8 @@ ) if TYPE_CHECKING: + ...
@simonjayhawkins this is technically incorrect bc im specifying returned dtypes as np.intp. Is there a valid way to do this? In working in core.internals trying to figure out whether we want int64 or intp I had to track all of these down to be sure. Would prefer to avoid re-doing this in a few weeks when I forget.
https://api.github.com/repos/pandas-dev/pandas/pulls/40390
2021-03-12T04:40:55Z
2021-03-13T15:52:40Z
null
2021-07-21T00:04:05Z
TYP: fix ignores
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index be8d641169b10..979c7aa990184 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -46,6 +46,7 @@ class providing the base-class of operations. ) import pandas._libs.groupby as libgroupby from pandas._typ...
i get a bunch of noise in my local mypy output, so will have to see what the CI says
https://api.github.com/repos/pandas-dev/pandas/pulls/40389
2021-03-12T03:30:43Z
2021-03-12T22:33:24Z
2021-03-12T22:33:24Z
2021-03-12T22:42:08Z
ENH: Make to_csv('filename.csv.zip') compress the output
diff --git a/pandas/io/common.py b/pandas/io/common.py index b87e8fcae1064..d5794a5cf6f44 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -776,6 +776,11 @@ def __init__( self.archive_name = archive_name self.multiple_write_buffer: Optional[Union[StringIO, BytesIO]] = None + if a...
- [x] closes #39465 #26023 - [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] dataframe.to_csv with zip compression now works like gzip/xz, when use 'infer' and destination path ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40387
2021-03-12T00:42:41Z
2021-06-18T01:39:54Z
null
2021-06-18T01:39:54Z
REF/PERF: do maybe_coerce_values before Block.__init__
diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py index be0828f5303b8..26d0242d81cf2 100644 --- a/pandas/core/internals/api.py +++ b/pandas/core/internals/api.py @@ -22,6 +22,7 @@ check_ndim, extract_pandas_array, get_block_type, + maybe_coerce_values, ) @@ -58,6 +59,7 @@ d...
https://api.github.com/repos/pandas-dev/pandas/pulls/40385
2021-03-11T23:41:22Z
2021-03-14T23:42:21Z
2021-03-14T23:42:21Z
2021-03-15T00:00:53Z
Fix frame_or_series.asfreq() dropping rows on unordered indices
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 16f76651a65aa..aae808c6c2144 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -630,6 +630,7 @@ Groupby/resample/rolling - Bug in :class:`core.window.ewm.ExponentialMovingWindow` when calling ``__getite...
- [x] closes #39805 - [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 This prevents `frame_or_series.asfreq()` from dropping rows/items if the index is not sort...
https://api.github.com/repos/pandas-dev/pandas/pulls/40384
2021-03-11T23:38:48Z
2021-03-23T17:01:39Z
2021-03-23T17:01:39Z
2021-03-23T23:52:13Z
REF: share Categorical.fillna with NDArrayBackedExtensionArray
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index d54d1855ac2f8..2ab6b85fab074 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -271,7 +271,9 @@ def __getitem__( def fillna( self: NDArrayBackedExtensionArrayT, value=None, method=None, limit=N...
- [ ] 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/40383
2021-03-11T23:05:10Z
2021-03-15T00:03:14Z
2021-03-15T00:03:14Z
2021-03-15T00:43:16Z
Docs - Grammar fix #40377
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index e5010da5ccac6..be8d641169b10 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -328,7 +328,7 @@ class providing the base-class of operations. engine : str, default None * ``'cython'`` : Runs the fu...
Reference Issue: DOC: Slightly broken grammar for `groupby.apply` with fix [#40377](https://github.com/pandas-dev/pandas/issues/40377) Made the grammar change as raised in the issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/40381
2021-03-11T19:31:58Z
2021-03-11T20:34:28Z
2021-03-11T20:34:28Z
2021-03-11T20:35:45Z
REF: setitem_with_indexer DataFrame always go through split_path
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8c85c4e961d99..8db3ea6b1895e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5313,7 +5313,9 @@ def _replace_columnwise( target, value = mapping[ax[i]] newobj = ser.replace(target, value, regex=regex) - ...
Still has some rough edges to round off, but putting it up bc i think it might be relevant for some of @jorisvandenbossche 's issues in getting AM behavior to match BM. Sits on top of #39510
https://api.github.com/repos/pandas-dev/pandas/pulls/40380
2021-03-11T18:33:13Z
2022-01-07T17:24:36Z
null
2022-11-28T20:05:19Z
TYP: change ArrayLike/AnyArrayLike alias to Union
diff --git a/pandas/_typing.py b/pandas/_typing.py index e464f2a021ef6..3e584774e539a 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -47,7 +47,7 @@ from pandas.core.dtypes.dtypes import ExtensionDtype from pandas import Interval - from pandas.core.arrays.base import ExtensionArray # noqa: F40...
follow-on from #36092 The first commit is the change in the alias. Although this does get rid of many of the false positives, as well as removing ignores this also results is some changes in the mypy error codes and some new errors where we might need a typevar (or more likely an overload) The subsequent commi...
https://api.github.com/repos/pandas-dev/pandas/pulls/40379
2021-03-11T17:05:05Z
2021-03-12T02:33:29Z
2021-03-12T02:33:29Z
2021-03-12T11:17:01Z
STYLE: Extending codespell to pandas/tests/ part3 38802
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b788cc2df227..71dedfaee8c04 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,6 @@ repos: - id: codespell types_or: [python, rst, markdown] files: ^(pandas|doc)/ - exclude: ^pandas/tests/ ...
- [x] closes #38802 - [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/40372
2021-03-11T13:11:55Z
2021-03-11T19:03:30Z
2021-03-11T19:03:30Z
2021-03-11T20:20:21Z
CI: mypy fixup
diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py index e6ea2c642650d..be0828f5303b8 100644 --- a/pandas/core/internals/api.py +++ b/pandas/core/internals/api.py @@ -39,7 +39,11 @@ def make_block( - Block.make_block_same_class - Block.__init__ """ - values, dtype = extract_panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/40370
2021-03-11T10:13:34Z
2021-03-11T11:11:54Z
2021-03-11T11:11:54Z
2021-03-11T11:14:53Z
INT: Use Index._getitem_slice in ArrayManager
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index 4b60cec55a2ba..e7431bee50374 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -793,12 +793,10 @@ def get_slice(self, slobj: slice, axis: int = 0) -> ArrayManager: ...
Follow-up on https://github.com/pandas-dev/pandas/pull/40262 to actually use it in ArrayManager as well
https://api.github.com/repos/pandas-dev/pandas/pulls/40369
2021-03-11T09:54:03Z
2021-03-12T07:22:09Z
2021-03-12T07:22:09Z
2021-03-12T07:22:13Z
CLN: reorganise/group variables for readability
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index cc5f3164385cb..609472bb2629f 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -350,12 +350,6 @@ def _translate(self): Convert the DataFrame in `self.data` and the attrs from `_build_styles` into a dic...
couple of comments in issues recently about complexity of `_translate` and its readability. small commit here to group setup variables by type and function, and add some comments.
https://api.github.com/repos/pandas-dev/pandas/pulls/40368
2021-03-11T08:36:27Z
2021-03-15T00:04:19Z
2021-03-15T00:04:19Z
2021-03-15T14:30:16Z
BUG: Post-merge fixup, raise on dimension-expanding
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 447148b4ef0b7..f28a87d519f5f 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1659,6 +1659,9 @@ def getitem_mgr(self, indexer) -> SingleBlockManager: # similar to get_slice, but no...
Looks like a couple of individually-correct things got merged that together are causing failures on master. This should fix it.
https://api.github.com/repos/pandas-dev/pandas/pulls/40365
2021-03-11T04:14:35Z
2021-03-11T09:38:49Z
2021-03-11T09:38:49Z
2021-03-11T15:08:16Z
BUG: better exception on invalid slicing on CategoricalIndex
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 62941a23c6459..73258e09522a2 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -529,13 +529,6 @@ def _convert_list_indexer(self, keyarr): return self.get_indexer_for(keyarr) - @doc(In...
After fixing the CategoricalIndex behavior (first commit), the "kind" keyword is no longer needed in _maybe_cast_slice_bound, so removed that. After this the keyword is no longer needed in get_slice_bound, slice_locs, slice_indexer, but those are technically public so didnt rip them out.
https://api.github.com/repos/pandas-dev/pandas/pulls/40364
2021-03-11T04:04:55Z
2021-03-20T01:25:12Z
2021-03-20T01:25:12Z
2021-03-20T02:01:27Z
DEPR: DataFrame(MaskedRecords)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..fceca59f0f30d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -369,6 +369,7 @@ Deprecations - Deprecated casting ``datetime.date`` objects to ``datetime64`` when used as ``fill_value`` ...
- [x] closes #38399 - [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/40363
2021-03-11T03:33:28Z
2021-03-15T00:09:58Z
2021-03-15T00:09:58Z
2021-03-15T00:55:16Z
PERF/REF: require BlockPlacement in Block.__init__
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...
https://api.github.com/repos/pandas-dev/pandas/pulls/40361
2021-03-10T23:00:43Z
2021-03-16T19:52:45Z
2021-03-16T19:52:45Z
2021-03-16T20:08:13Z
BUG: IntervalArray.insert cast on failure
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index f192a34514390..3ee550620e73a 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1483,6 +1483,28 @@ def putmask(self, mask: np.ndarray, value) -> None: self._left.putmask(mask, value_left) ...
- [ ] 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 We fixed this for DTI/TDI/PI in #39068. Also did CategoricalIndex recently, not sure where...
https://api.github.com/repos/pandas-dev/pandas/pulls/40359
2021-03-10T21:40:39Z
2021-03-15T00:52:27Z
2021-03-15T00:52:27Z
2021-03-15T00:57:46Z
DOC: Proper alignment of column names #40355
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 32a99c0a020b2..7ac2e5a988cd8 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1913,13 +1913,13 @@ def get_dummies(self, sep="|"): Examples -------- >>> pd.Series(['a|b', ...
- [x] closes #40355 - [ ] 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/40358
2021-03-10T20:23:23Z
2021-03-29T03:46:50Z
2021-03-29T03:46:49Z
2021-05-03T01:12:28Z
BUG: copying from Jupyter table to excel misaligns structure
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..4d5e2efa8c763 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -623,6 +623,7 @@ Other - Bug in :class:`Styler` where rendered HTML was missing a column class identifier for certain heade...
- [x] closes #12147 when copying a table from Jupyter to Excel the column header row is translated to the left because there is no value to copy. ![Screen Shot 2021-03-10 at 19 53 28](https://user-images.githubusercontent.com/24256554/110682247-019fc180-81db-11eb-81a4-f8d71b08181e.png) this PR puts a non-brea...
https://api.github.com/repos/pandas-dev/pandas/pulls/40356
2021-03-10T19:05:37Z
2021-03-21T21:08:13Z
2021-03-21T21:08:13Z
2021-03-21T22:50:06Z
Fix formatting in extractall example outputs
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 7d6a2bf1d776d..4195b011b6cfb 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -2350,7 +2350,7 @@ def extractall(self, pat, flags=0): 0 match A 0 1 - 1 ...
I noticed that these doctests lost some formatting in a refactor. It's a little surprising the tests were still passing, presumably doctests is configured to ignore leading whitespace?
https://api.github.com/repos/pandas-dev/pandas/pulls/40354
2021-03-10T17:21:53Z
2021-03-11T02:18:24Z
2021-03-11T02:18:24Z
2021-03-11T16:14:39Z
PERF: repeated slicing along index in groupby
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index f5dc95590c963..aa16dc9a22f4e 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -817,6 +817,11 @@ def value_counts(self, dropna: bool = True): def __getitem__(self, key): i...
This cuts another 25% off of the benchmark discussed https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422, getting us to within 3x of the cython-path performance.
https://api.github.com/repos/pandas-dev/pandas/pulls/40353
2021-03-10T16:45:51Z
2021-03-16T16:55:42Z
2021-03-16T16:55:42Z
2021-03-16T17:05:03Z
[ArrayManager] TST: Enable extension tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92c10df3e4e97..d54d29dcfacbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,6 +175,7 @@ jobs: pytest pandas/tests/computation/ pytest pandas/tests/config/ pytest pandas/tests/dtypes/ + ...
xref #39146
https://api.github.com/repos/pandas-dev/pandas/pulls/40348
2021-03-10T09:10:42Z
2021-03-18T07:40:02Z
2021-03-18T07:40:01Z
2021-03-18T07:40:05Z
[ArrayManager] TST: enable arrays tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c60522092739..f4f5d0f72e8d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,6 +178,7 @@ jobs: pytest pandas/tests/indexing/multiindex/test_setitem.py::TestMultiIndexSetItem::test_frame_setitem_multi_column ...
xref #39146
https://api.github.com/repos/pandas-dev/pandas/pulls/40347
2021-03-10T08:27:51Z
2021-03-10T09:50:16Z
2021-03-10T09:50:16Z
2021-03-10T09:50:19Z
[ArrayManager] TST: enable apply tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dcb950d279fe..92c10df3e4e97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -169,6 +169,7 @@ jobs: pytest pandas/tests/indexing/multiindex/test_setitem.py::TestMultiIndexSetItem::test_frame_setitem_multi_column ...
xref #39146
https://api.github.com/repos/pandas-dev/pandas/pulls/40345
2021-03-10T08:21:24Z
2021-03-16T11:14:49Z
2021-03-16T11:14:49Z
2021-03-16T11:14:53Z
DOC: fixup formula for exponentially weighted mean with input vector …
diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst index ad710b865acea..4a560f6b23932 100644 --- a/doc/source/user_guide/window.rst +++ b/doc/source/user_guide/window.rst @@ -581,7 +581,7 @@ The following formula is used to compute exponentially weighted mean with an inp .. math:: - ...
…of times? #40327 - [x] closes #40327 - [ ] 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/40343
2021-03-10T05:03:54Z
2021-03-10T08:50:54Z
2021-03-10T08:50:54Z
2021-05-03T01:11:47Z
CLN: remove unused c_encoding
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 031a567925a4d..493333fded6dd 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -36,6 +36,7 @@ from cpython.ref cimport ( from cpython.unicode cimport ( PyUnicode_AsUTF8String, PyUnicode_Decode, + PyUnicode_DecodeU...
`c_encoding` has always been `NULL` since #36997. This allows removing/simplifying a lot of code in pandas/_libs/parsers.pyx.
https://api.github.com/repos/pandas-dev/pandas/pulls/40342
2021-03-10T04:45:06Z
2021-03-10T13:54:40Z
2021-03-10T13:54:40Z
2021-03-10T15:39:34Z
BUG: RollingGroupby no longer keeps the groupby column in the result
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 16f76651a65aa..bafaa1fcc6c4d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -300,6 +300,38 @@ cast to ``dtype=object`` (:issue:`38709`) ser2 +.. _whatsnew_130.notable_bug_fixes.rolling_groupby...
- [x] closes #32262 - [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 Borrowed some work from https://github.com/pandas-dev/pandas/pull/32332
https://api.github.com/repos/pandas-dev/pandas/pulls/40341
2021-03-10T03:55:33Z
2021-03-29T13:27:26Z
2021-03-29T13:27:25Z
2021-03-29T18:30:38Z
TYP: Add typing for remaining IO XML methods with conditional for lxml
diff --git a/pandas/io/formats/xml.py b/pandas/io/formats/xml.py index 6987da63eaf3e..5c7255d5e6ee4 100644 --- a/pandas/io/formats/xml.py +++ b/pandas/io/formats/xml.py @@ -288,7 +288,7 @@ class EtreeXMLFormatter(BaseXMLFormatter): modules: `xml.etree.ElementTree` and `xml.dom.minidom`. """ - def __init_...
- [X] references #40131 - [X] tests 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 (not necessary)
https://api.github.com/repos/pandas-dev/pandas/pulls/40340
2021-03-10T02:52:58Z
2021-03-16T22:02:19Z
2021-03-16T22:02:18Z
2021-03-17T15:06:51Z
PERF: Categorical._from_backing_data
diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in index 995fabbedcb5d..4eefd9d1f7267 100644 --- a/pandas/_libs/algos_take_helper.pxi.in +++ b/pandas/_libs/algos_take_helper.pxi.in @@ -230,10 +230,10 @@ ctypedef fused take_t: object -cdef _take_2d(ndarray[take_t, ndim=2]...
_libs edits are unrelated
https://api.github.com/repos/pandas-dev/pandas/pulls/40339
2021-03-10T01:55:08Z
2021-03-10T13:13:30Z
2021-03-10T13:13:30Z
2021-03-10T14:45:55Z
REF: share code ArrayManager/BlockManager
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index bbe71c4977e77..0a1317dd81a96 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -22,14 +22,12 @@ ) from pandas._typing import ( ArrayLike, - DtypeObj, Hashab...
https://api.github.com/repos/pandas-dev/pandas/pulls/40338
2021-03-10T01:49:41Z
2021-03-11T09:27:09Z
2021-03-11T09:27:09Z
2021-03-11T15:07:32Z
PERF: do ndim validation before Block.__init__
diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py index 9d517fe55f808..e6ea2c642650d 100644 --- a/pandas/core/internals/api.py +++ b/pandas/core/internals/api.py @@ -14,13 +14,13 @@ from pandas._typing import Dtype from pandas.core.dtypes.common import is_datetime64tz_dtype -from pandas.core....
https://api.github.com/repos/pandas-dev/pandas/pulls/40337
2021-03-09T22:34:50Z
2021-03-10T21:44:58Z
2021-03-10T21:44:58Z
2021-03-10T22:30:25Z
BUG: fix regression in Styler.export/use
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index e245bf797d932..dfed7fcf82039 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -610,7 +610,7 @@ Other - Bug in :func:`pandas.api.types.infer_dtype` not recognizing Series, Index or array with a period d...
- [x] closes #39735 #39396 solved a bug that CSS was duplicated everytime a Styler rendered. The solution maintained the computed `ctx` object and cleared the `_todo` list of methods so it wasn't recalculated. This broke the `export` and `use` methods since they rely on passing methods from the `_todo` list. This...
https://api.github.com/repos/pandas-dev/pandas/pulls/40334
2021-03-09T19:37:11Z
2021-03-10T14:50:07Z
2021-03-10T14:50:07Z
2021-03-30T05:04:15Z
STYLE: Extending codespell to pandas/tests Part 2
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 2d58a4391c80c..9370f97f8310b 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -439,8 +439,8 @@ def test_setitem_corner(self, float_frame): ...
- [X] xref #38802 - [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/40332
2021-03-09T19:16:16Z
2021-03-10T08:58:31Z
2021-03-10T08:58:31Z
2021-03-10T10:18:20Z
REF: prelims for 2D DTA/TDA
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index faee9bc57464b..232aabfb87c58 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -53,6 +53,42 @@ def time_unstack(self): self.df.unstack(1) +class ReshapeExtensionDtype: + + params = ["...
Broken off from #40149
https://api.github.com/repos/pandas-dev/pandas/pulls/40331
2021-03-09T18:14:29Z
2021-03-09T22:14:27Z
2021-03-09T22:14:27Z
2021-03-09T22:28:11Z
REF/TYP: indexes
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 23cb4d5df3f7b..e3f342a024f6c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -173,7 +173,6 @@ RangeIndex, Series, ) - from pandas.core.indexes.datetimelike import DatetimeIndexOpsMixin ...
The only non-trivial change here is changing `_id` from `_id = _Identity(object)` to `_id = object()`, which I found in profiling (https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422) makes a non-trivial difference as the non-cython performance inches closer to the cython performance. Share DTI/TD...
https://api.github.com/repos/pandas-dev/pandas/pulls/40330
2021-03-09T18:07:53Z
2021-03-09T20:17:10Z
2021-03-09T20:17:10Z
2021-03-09T21:15:26Z
Bug Ensure cache_readonly is only applied on instance
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 3a0e1b7568c91..d3e065f0fc893 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -795,6 +795,7 @@ ExtensionArray - Bug in :meth:`DataFrame.where` when ``other`` is a :class:`Series` with :class:`Extensi...
The property cache was using the attribute `_cache` which occasionally is used by other classes as a class attribute. Most prominently this is true for all subclasses of `PandasExtensionDtype`, see https://github.com/pandas-dev/pandas/blob/ce082fb04a0cf597f673d35bc47afd6c2e3c3168/pandas/core/dtypes/dtypes.py#L89 Thi...
https://api.github.com/repos/pandas-dev/pandas/pulls/40329
2021-03-09T16:21:29Z
2021-04-12T12:38:06Z
null
2021-04-12T12:38:16Z
[ArrayManager] TST: run (+fix/skip) pandas/tests/series/indexing tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4f5d0f72e8d8..11cb98ed97602 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,9 +165,7 @@ jobs: pytest pandas/tests/groupby/ pytest pandas/tests/resample/ pytest pandas/tests/reshape/merge - - ...
xref #39146 Getting the tests passing for the indexing tests, her for `pandas/tests/series/indexing` (`pandas/tests/indexing` is done in https://github.com/pandas-dev/pandas/pull/40325 and `pandas/tests/frame/indexing` is done in https://github.com/pandas-dev/pandas/pull/40323)
https://api.github.com/repos/pandas-dev/pandas/pulls/40326
2021-03-09T15:22:41Z
2021-03-12T22:05:45Z
2021-03-12T22:05:45Z
2021-03-15T07:29:53Z
[ArrayManager] TST: run (+fix/skip) pandas/tests/indexing tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92c10df3e4e97..ae4d881571607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -163,10 +163,7 @@ jobs: pytest pandas/tests/resample/ pytest pandas/tests/reshape/merge pytest pandas/tests/series/ - - ...
xref #39146 Extracting part of the test changes of https://github.com/pandas-dev/pandas/pull/39578. To keep the size a bit more limited, I am splitting the PRs, so this PR is doing `pandas/tests/indexing`. The `pandas/tests/frame/indexing` are handled in https://github.com/pandas-dev/pandas/pull/40323
https://api.github.com/repos/pandas-dev/pandas/pulls/40325
2021-03-09T14:37:02Z
2021-03-17T12:02:49Z
2021-03-17T12:02:49Z
2021-03-17T12:02:53Z
BUG: Fix sort_values for empty by argument
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index ac5ad12a992b7..42396d920c3bd 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -437,6 +437,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`DataFrame.quantile`, :meth:`DataFrame.sort_values` causing inc...
- [x] closes https://github.com/pandas-dev/pandas/issues/40258 - [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/40324
2021-03-09T14:32:35Z
2021-03-09T22:06:15Z
2021-03-09T22:06:15Z
2021-03-10T00:17:16Z
[ArrayManager] TST: run (+fix/skip) pandas/tests/frame/indexing tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4f5d0f72e8d8..f79dc7fab8407 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,10 +155,7 @@ jobs: run: | source activate pandas-dev - pytest pandas/tests/frame/methods - pytest pandas/tests/...
xref #39146 Extracting part of the test changes of https://github.com/pandas-dev/pandas/pull/39578. This PR is doing `pandas/tests/frame/indexing`. The `pandas/tests/indexing` tests are handled in https://github.com/pandas-dev/pandas/pull/40323.
https://api.github.com/repos/pandas-dev/pandas/pulls/40323
2021-03-09T13:31:19Z
2021-03-12T21:48:08Z
2021-03-12T21:48:08Z
2021-03-14T09:31:23Z
STYLE: Extending codespell to pandas/tests
diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index dcfe3a40b4487..daebdb542bc20 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -1158,7 +1158,7 @@ def test_td64arr_add_sub_int(self, box_with_array, on...
- [X] xref #38802 - [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/40320
2021-03-09T12:35:04Z
2021-03-11T10:45:01Z
2021-03-11T10:45:01Z
2021-03-11T13:02:50Z
STYLE use pd_array in core
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8524a302f4c9..9aa85bea10da8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -213,3 +213,10 @@ repos: |\#\ type:\s?ignore(?!\[) language: pygrep types: [python] + - id: use-pd_array-in-core + ...
As requested by @jbrockmendel [here](https://github.com/pandas-dev/pandas/pull/40150)
https://api.github.com/repos/pandas-dev/pandas/pulls/40319
2021-03-09T11:37:57Z
2021-04-02T15:11:53Z
2021-04-02T15:11:53Z
2021-04-02T16:29:47Z
PERF: reduce overhead in groupby _cython_operation
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index d9fbc3ed122fa..9a72dee8d87ca 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -556,12 +556,12 @@ def infer_fill_value(val): return np.nan -def maybe_fill(arr, fill_value=np.nan): +def maybe_fill(ar...
The `BaseGrouper._cython_operation` has lots of checking of the dtype etc, which gives quite some overhead compared to the actual aggregation function (for small data). This is a first set of small changes to cut down that overhead. Using the `GroupManyLabels` benchmark we have ```python ncols = 1000 N = 1000 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40317
2021-03-09T08:46:34Z
2021-03-15T15:14:10Z
2021-03-15T15:14:10Z
2021-03-15T15:14:13Z
ERR: Raise NotImplimentedError for EWMA with times and adjust=False
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 370ea28832758..ac5ad12a992b7 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -570,6 +570,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.sample` where column selection was not applied t...
- [x] xref #40098 - [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/40314
2021-03-09T05:10:47Z
2021-03-09T13:32:23Z
2021-03-09T13:32:23Z
2021-03-09T17:43:35Z
API: Add `Styler.to_html`, for saving output to HTML file
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 2f2e8aed6fdb8..8cc17da3d5647 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -142,7 +142,7 @@ properly format HTML and eliminate some inconsistencies (:issue:`39942` :issue:` One also has greater cont...
- [x] closes #11700 and closes #13379 ## `Styler.to_html` method This PR adds the above method to `Styler`. This is a **minimal** introduction with limited arguments to provide just the core file io functionality and basic options, either to write a fully structured HTML file or just the `Styler.render` outpu...
https://api.github.com/repos/pandas-dev/pandas/pulls/40312
2021-03-08T21:04:33Z
2021-05-26T02:09:32Z
2021-05-26T02:09:32Z
2021-05-26T05:28:54Z
Added orient="ndarray" to DataFrame.to_dict()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dbf2446f43af3..2bd08b32a1854 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1545,11 +1545,12 @@ def to_dict(self, orient: str = "dict", into=dict): Parameters ---------- - orient : str {'dict', 'list', 'series', ...
It would be useful to allow Series to be directly converted to numpy arrays instead of having to do this outside.
https://api.github.com/repos/pandas-dev/pandas/pulls/40311
2021-03-08T20:44:29Z
2021-03-08T22:24:32Z
null
2023-12-20T13:06:17Z
GH39992 update inconsistent namespace usage for reductions
diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py index cf6b2d372657d..2d7dddbc5ea42 100644 --- a/pandas/tests/reductions/test_reductions.py +++ b/pandas/tests/reductions/test_reductions.py @@ -83,16 +83,16 @@ def test_nanminmax(self, opname, dtype, val, index_or_serie...
- [ ] 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/40310
2021-03-08T15:18:57Z
2021-03-08T17:11:25Z
2021-03-08T17:11:25Z
2021-03-08T17:11:25Z
REF: de-duplicate code for pad/backfill
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 5783d3c2353aa..ad08bd1c10c68 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -597,43 +597,12 @@ def pad(ndarray[algos_t] old, ndarray[algos_t] new, limit=None): @cython.boundscheck(False) @cython.wraparound(False) -def pad_inplac...
``` before after ratio [5ef41593] [6a7ac9e4] <master> <interpolate_2d> + 3.44±0.04ms 5.14±0.4ms 1.50 frame_methods.Fillna.time_frame_fillna(True, 'pad', 'Float64') + 3.48±0.1ms 5.06±0.3ms 1.45 frame_methods.Fillna.time_frame_fillna(Tru...
https://api.github.com/repos/pandas-dev/pandas/pulls/40306
2021-03-08T14:21:10Z
2021-03-21T15:03:31Z
null
2021-03-21T16:04:24Z
docs: changes to documentation
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 90ecee8cf9312..f3a01f9f8749e 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -41,7 +41,7 @@ and assign yourself one you like by writing a comment with the exact text...
docs: changes to documentation small grammatical update to the documentation
https://api.github.com/repos/pandas-dev/pandas/pulls/40305
2021-03-08T13:05:25Z
2021-05-25T11:59:34Z
null
2021-05-25T11:59:34Z
[ArrayManager] Add Series._as_manager (consolidate with DataFrame)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b69913b23ba29..2666ea8dc7e74 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -67,7 +67,6 @@ IndexKeyFunc, IndexLabel, Level, - Manager, NpDtype, PythonFuncType, Renamer, @@ -775,25 +774,6 @@ def __init__( ...
Move the `_as_manager` helper to `generic.py`, and ensure it works for Series as well
https://api.github.com/repos/pandas-dev/pandas/pulls/40304
2021-03-08T12:33:42Z
2021-03-16T14:34:05Z
2021-03-16T14:34:05Z
2021-03-16T14:36:10Z
[ArrayManager] Enable read_parquet to not create 2D blocks when using ArrayManager
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c77a3717c4c03..d9a0d9f735e7c 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -286,13 +286,18 @@ def _from_mgr(cls, mgr: Manager): object.__setattr__(obj, "_attrs", {}) return obj - def _as_manager(self: FrameOr...
xref https://github.com/pandas-dev/pandas/issues/39146 I was exploring the Parquet IO, and pyarrow has an option to not created consolidated blocks. If we do this when wanting to create an ArrayManager, we can reduce the memory usage. It's a bit slower, though, because there is still the overhead of creating more bl...
https://api.github.com/repos/pandas-dev/pandas/pulls/40303
2021-03-08T12:05:55Z
2021-04-26T09:44:54Z
2021-04-26T09:44:54Z
2021-04-26T09:44:57Z
[ArrayManager] Fix DataFrame.from_records with emtpy size
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index c314673f609f3..0b712267ccf11 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -128,6 +128,9 @@ def arrays_to_mgr( if typ == "block": return create_block_manager...
xref https://github.com/pandas-dev/pandas/issues/39146, follow-up on https://github.com/pandas-dev/pandas/pull/39991
https://api.github.com/repos/pandas-dev/pandas/pulls/40301
2021-03-08T09:57:34Z
2021-03-08T13:13:50Z
2021-03-08T13:13:50Z
2021-03-08T13:22:12Z
PERF: further improve take (reindex/unstack) for ArrayManager
diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py index 110b47a11c3a9..b1311efa718ae 100644 --- a/pandas/core/array_algos/take.py +++ b/pandas/core/array_algos/take.py @@ -67,6 +67,9 @@ def take_nd( This dispatches to ``take`` defined on ExtensionArrays. It does not currently disp...
A few related changes to `take_1d` / `ArrayManager.unstack`: - Check in `ArrayManager.unstack` whether there will be missing values introduced or not, and if not, pass `allow_fill=False` to the `take` function, so this can take a more performant path (and doesn't need to check repeatedly for `indexer == -1`). And th...
https://api.github.com/repos/pandas-dev/pandas/pulls/40300
2021-03-08T09:16:06Z
2021-03-15T00:30:45Z
2021-03-15T00:30:45Z
2021-03-15T07:24:42Z
PERF: get_dummies create array of 0/1s with appropriate layout for internals
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index 003353856eac8..6a0286b1c40ef 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -1039,7 +1039,8 @@ def get_empty_frame(data) -> DataFrame: return out else: - dummy_mat = np.eye(numb...
This ensures that the 2D ndarray that is created in `get_dummies` for a single column is directly in the "right" layout as the internals prefer it (column-major, so it's row-major in the transposed Block.values). For ArrayManager, this gives a speed-up for `get_dummies` itself (because we still copy the arrays to en...
https://api.github.com/repos/pandas-dev/pandas/pulls/40299
2021-03-08T08:55:13Z
2021-03-15T14:05:23Z
2021-03-15T14:05:23Z
2021-10-14T14:58:19Z
[ArrayManager] TST: enable IO tests
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c60522092739..78ebb75c1f495 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -184,6 +184,12 @@ jobs: pytest pandas/tests/dtypes/ pytest pandas/tests/generic/ pytest pandas/tests/indexes/ + py...
xref https://github.com/pandas-dev/pandas/issues/39146 This basically just adds IO testing to the set of tests we run for ArrayManager. I already added skips for JSON in the past (and now also for PyTables IO and pickle), so those are still skipped now as well.
https://api.github.com/repos/pandas-dev/pandas/pulls/40298
2021-03-08T08:36:53Z
2021-03-12T16:10:53Z
2021-03-12T16:10:53Z
2021-03-12T16:10:56Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b788cc2df227..937e9bddbd0c8 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/40297
2021-03-08T07:29:35Z
2021-03-08T07:54:50Z
null
2021-03-08T07:54:50Z
PERF: declare contiguity in libgroubpy
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 5bfc594602dd8..64e8bdea4672c 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -18,7 +18,8 @@ def ensure_platform_int(object arr): if (<ndarray>arr).descr.typ...
- [ ] 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/40295
2021-03-08T04:18:35Z
2021-03-08T15:59:04Z
2021-03-08T15:59:04Z
2021-03-08T16:07:13Z
ENH: NDArrayBackedExtensionArray.fillna(method) with 2d
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 4615cb4ec7abd..d54d1855ac2f8 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -278,8 +278,12 @@ def fillna( if mask.any(): if method is not None: - func = missing.get_...
https://api.github.com/repos/pandas-dev/pandas/pulls/40294
2021-03-08T03:58:10Z
2021-03-09T01:36:55Z
2021-03-09T01:36:55Z
2021-03-09T01:51:13Z
TYP: Window code
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 5a71db82f26e4..57fb2381b71c8 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -14,6 +14,7 @@ from pandas._libs.tslibs import Timedelta import pandas._libs.window.aggregations as window_aggregations from pandas._typing i...
- [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/40293
2021-03-08T02:47:36Z
2021-03-12T00:25:35Z
2021-03-12T00:25:35Z
2021-03-12T00:25:38Z
CLN: Window code
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 5a71db82f26e4..6310a751492da 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -255,13 +255,13 @@ def __init__( self.ignore_na = ignore_na self.times = times if self.times is not None: - ...
- [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/40292
2021-03-08T01:36:47Z
2021-03-08T13:00:46Z
2021-03-08T13:00:46Z
2021-03-08T17:09:50Z
DOC: fix grammar issues and incorrect link in "Getting Started" guide…
diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index cd5dfb84fee31..d05384502bde7 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -116,7 +116,7 @@ Intro to pandas <div class="card-body"> When working with tabul...
… (#40215) - [x] closes #40215 - [ ] 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/40290
2021-03-07T19:45:36Z
2021-03-08T13:04:40Z
2021-03-08T13:04:40Z
2021-03-08T13:04:54Z
DEPR: Series/DataFrame.transform partial failure except TypeError
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 512e6e6cbb391..92efb225682b7 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -423,7 +423,7 @@ Deprecations - Using ``.astype`` to convert between ``datetime64[ns]`` dtype and :class:`DatetimeTZDtype` ...
- [x] closes #40211 - [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 Partial revert of #40238. I did not realize how `TypeError` was handled differently than o...
https://api.github.com/repos/pandas-dev/pandas/pulls/40288
2021-03-07T17:00:51Z
2021-03-26T13:36:27Z
2021-03-26T13:36:27Z
2021-03-26T13:41:36Z
STYLE: Resolved Inconsistent namespace
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b788cc2df227..e5116aa90bbeb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -95,7 +95,7 @@ repos: entry: python scripts/check_for_inconsistent_pandas_namespace.py language: python types: [python] - ...
- [x] closes #39992 - [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/40286
2021-03-07T14:00:31Z
2021-03-11T13:47:15Z
2021-03-11T13:47:14Z
2021-03-11T13:47:15Z
BLD: GH30873 Workaround parallel build failures
diff --git a/pandas/_libs/src/parser/tokenizer_lib.c b/pandas/_libs/src/parser/tokenizer_lib.c new file mode 100644 index 0000000000000..a6210aea02997 --- /dev/null +++ b/pandas/_libs/src/parser/tokenizer_lib.c @@ -0,0 +1,17 @@ +/* +Copyright (c) 2021, PyData Development Team +All rights reserved. + +Distributed under ...
Fix parallel build race conditions due to the same source files being used in multiple targets. To workaround the distutils bug, create unique .c files for each target that just #include the original file. - [x] closes #30873 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/40285
2021-03-07T13:11:56Z
2021-03-28T18:58:45Z
null
2022-05-24T15:48:51Z
API: remove `.set_tooltips_class` incorpate to `.set_tooltips`
diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst index 6c6b24b4b9136..90ec5a2283f1e 100644 --- a/doc/source/reference/style.rst +++ b/doc/source/reference/style.rst @@ -39,7 +39,6 @@ Style application Styler.set_table_styles Styler.set_table_attributes Styler.set_tooltips - Sty...
`.set_tooltips` and `.set_tooltips_class` are introduced to 1.3.0. Just realised it seems a bit pointless to have two api functions: - [x] remove `.set_tooltips_class()` and `._init_tooltips()` - [x] include the `css_name` and `props` arguments in `.set_tooltips` for same functionality. - [x] no api break since...
https://api.github.com/repos/pandas-dev/pandas/pulls/40284
2021-03-07T07:35:29Z
2021-03-08T13:21:07Z
2021-03-08T13:21:07Z
2021-03-08T19:51:39Z
STYLE: Inconsistent namespace - tools (pandas-dev#39992)
diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py index 1a47b5b37e3d2..13768a2cd7a61 100644 --- a/pandas/tests/tools/test_to_datetime.py +++ b/pandas/tests/tools/test_to_datetime.py @@ -111,14 +111,14 @@ def test_to_datetime_format_YYYYMMDD(self, cache): # coercion ...
- [x] xref #39992 - [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/40283
2021-03-07T06:54:03Z
2021-03-07T11:07:50Z
2021-03-07T11:07:50Z
2021-03-07T11:07:51Z
CI: avoid port-already-in-use errors
diff --git a/pandas/tests/io/test_user_agent.py b/pandas/tests/io/test_user_agent.py index 87f08a42b91dd..d2f6a837cc885 100644 --- a/pandas/tests/io/test_user_agent.py +++ b/pandas/tests/io/test_user_agent.py @@ -179,39 +179,40 @@ def do_GET(self): @pytest.mark.parametrize( - "responder, read_method, port, parq...
Should prevent the occasional CI failures e.g. https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=55705&view=ms.vss-test-web.build-test-results-tab&runId=2644226&resultId=178989&paneView=debug
https://api.github.com/repos/pandas-dev/pandas/pulls/40282
2021-03-07T02:41:42Z
2021-03-08T13:27:24Z
2021-03-08T13:27:24Z
2021-03-09T19:03:11Z
REF: Block.putmask dont use split_and_operate
diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py index cfa1f59f3d4ca..93046f476c6ba 100644 --- a/pandas/core/array_algos/putmask.py +++ b/pandas/core/array_algos/putmask.py @@ -81,7 +81,7 @@ def putmask_smart(values: np.ndarray, mask: np.ndarray, new) -> np.ndarray: # n should...
- [ ] 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 I find this much clearer. Along with #40256 we'll be able to get rid of split_and_operate ...
https://api.github.com/repos/pandas-dev/pandas/pulls/40281
2021-03-07T01:31:32Z
2021-03-08T13:34:29Z
2021-03-08T13:34:28Z
2021-03-08T15:15:54Z
STYLE: Pandas codespell fix for documentation
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c90f8068cf81..eb91c9dbeb651 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: hooks: - id: codespell types_or: [python, rst, markdown] - files: ^pandas/ + files: ^(pandas|do...
- [x] xref #38802 - [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/40280
2021-03-06T18:17:32Z
2021-03-07T18:59:51Z
2021-03-07T18:59:51Z
2021-03-08T08:52:49Z
DOC: Clarify DataFrame.combine_first and Series.combine_first
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 911d6fbfadd5d..4099672734f5d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6772,6 +6772,7 @@ def combine_first(self, other: DataFrame) -> DataFrame: Returns ------- DataFrame + The result of combining...
- [ ] 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/40279
2021-03-06T18:01:44Z
2021-03-08T13:12:17Z
2021-03-08T13:12:16Z
2021-03-08T13:12:41Z
Move cpplint check to pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c90f8068cf81..f2d3e823c25cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,16 @@ repos: - id: end-of-file-fixer exclude: \.txt$ - id: trailing-whitespace +- repo: https://github.com/cpplint/cp...
Currently, cpplint runs from https://github.com/pandas-dev/pandas/blob/master/ci/code_checks.sh However, cpplint have a pre-commit hook which can be used. - [x] closes https://github.com/MarcoGorelli/pyladies-sprint-March-2021/issues/2 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](htt...
https://api.github.com/repos/pandas-dev/pandas/pulls/40278
2021-03-06T17:48:48Z
2021-03-07T20:12:33Z
2021-03-07T20:12:33Z
2021-03-08T08:47:47Z
Reorder pre-commit-config and normalize id names
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3966e8931162c..0c90f8068cf81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,28 @@ minimum_pre_commit_version: 2.9.2 exclude: ^LICENSES/|\.(html|csv|svg)$ repos: +- repo: https://github.com/MarcoGorelli/absolufy-imp...
- [ ] closes https://github.com/MarcoGorelli/pyladies-sprint-March-2021/issues/21 - [ ] 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 (not sure where to add this?)
https://api.github.com/repos/pandas-dev/pandas/pulls/40277
2021-03-06T17:20:23Z
2021-03-06T17:50:34Z
2021-03-06T17:50:34Z
2021-03-06T17:50:41Z
STYLE: Inconsistent namespace - plotting
diff --git a/pandas/tests/plotting/frame/test_frame.py b/pandas/tests/plotting/frame/test_frame.py index 920350477bb20..3c53a0ed2500c 100644 --- a/pandas/tests/plotting/frame/test_frame.py +++ b/pandas/tests/plotting/frame/test_frame.py @@ -271,7 +271,6 @@ def test_invalid_logscale(self, input_param): df.p...
- [x] xref #39992 - [x] tests added / passed - plotting - [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/40276
2021-03-06T17:15:21Z
2021-03-06T17:48:35Z
2021-03-06T17:48:35Z
2021-04-10T16:06:15Z