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
PERF: groupby.quantile
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 9a17b04b23c18..487ef5c226f94 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -294,6 +294,8 @@ Performance improvements - Performance improvement in :meth:`to_datetime` with ``uint`` dtypes (:issue:`42...
Nearly 10x ``` import pandas as pd import numpy as np np.random.seed(536445246) arr = np.random.randn(10**5, 5) df = pd.DataFrame(arr, columns=["A", "B", "C", "D", "E"]) gb = df.groupby(df.index % 7) qs = np.arange(0, 1, 0.1) %timeit res = gb.quantile(qs) 771 ms ± 34 ms per loop (mean ± std. dev. of...
https://api.github.com/repos/pandas-dev/pandas/pulls/43469
2021-09-09T03:39:40Z
2021-09-09T21:18:42Z
2021-09-09T21:18:42Z
2021-09-09T21:46:44Z
CI: split Windows Azure tests in half
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7a26a7905799..93c17997a95f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,6 +168,7 @@ jobs: PANDAS_DATA_MANAGER: array PATTERN: ${{ matrix.pattern }} PYTEST_WORKERS: "auto" + PYTEST_T...
Trying an experiment for Windows CI where `PYTEST_WORKERS` is `auto` rather than 2.
https://api.github.com/repos/pandas-dev/pandas/pulls/43468
2021-09-09T03:19:52Z
2021-09-10T12:39:28Z
2021-09-10T12:39:28Z
2023-02-13T20:53:01Z
Make group_mean compatible with NaT
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 519a3ea711f54..e94a19fb37b63 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -23,8 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- -- +- Fixed bug in :meth:`.GroupBy.mean` with datetimelike value...
Make group_mean compatible with NaT ## Background NaT is the datetime equivalent of NaN and is set to be the lowest possible 64-bit integer -(2**63). Previously, we could not support this value in any groupby.mean() calculations which lead to #43132. ## Implementation On a high level, we slightly modify the `gr...
https://api.github.com/repos/pandas-dev/pandas/pulls/43467
2021-09-08T22:28:28Z
2021-09-18T02:31:52Z
2021-09-18T02:31:51Z
2021-09-18T02:32:24Z
REF: de-duplicate result index construction in groupby
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8bb8f00b4c406..7af32d70c00bc 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -431,16 +431,9 @@ def _wrap_applied_output( ) assert values is not None - def _get_index() ->...
- [ ] 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/43466
2021-09-08T20:25:59Z
2021-09-08T21:25:42Z
2021-09-08T21:25:42Z
2021-09-08T22:34:28Z
BUG: `styler.hide_columns` fails when no sparsification
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index cac22fc06b89b..7107e3eecb2f1 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -440,6 +440,7 @@ Styler - Bug in :meth:`Styler.apply` where functions which returned Series objects were not correctly hand...
- [x] closes #43464 - [x] tests added / passed - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43465
2021-09-08T19:09:28Z
2021-09-08T21:24:54Z
2021-09-08T21:24:54Z
2021-09-08T21:47:00Z
TST: add test to read empty array
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 01715ee133e96..ec724602c5249 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -637,6 +637,29 @@ def test_use_nullable_dtypes(self, engine): expected = expected.drop("c", axis=1) ...
- [ ] closes #41241 - [ ] 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/43459
2021-09-08T14:05:33Z
2021-09-29T12:58:50Z
2021-09-29T12:58:50Z
2021-09-29T13:07:25Z
DOC: 'if_sheet_exists' only on openpyxl in stead of 'append'
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 52d1e1c83d3e6..048a8cc3c4086 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -683,7 +683,7 @@ class ExcelWriter(metaclass=abc.ABCMeta): .. versionadded:: 1.2.0 if_sheet_exists : {'error', 'new', 'replace'}, defa...
- [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 The `if_sheet_exists` parameter works also in write mode of openpyxl. e.g.: ```python import pandas as pd with pd.ExcelWriter("f.xlsx",e...
https://api.github.com/repos/pandas-dev/pandas/pulls/43458
2021-09-08T13:25:02Z
2021-09-08T13:35:30Z
null
2021-09-08T13:35:30Z
TST: add test to check numeric precision GH33234
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index 0a693967fbb19..be3d2fe78e1c7 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -1274,3 +1274,14 @@ def func(ser): expected =...
test to check numeric precision after .groupby and .agg - [X] closes #33234 - [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/43456
2021-09-08T03:04:14Z
2021-11-06T21:36:18Z
null
2023-02-24T17:49:04Z
REGR: fillna on f32 column raising for f64
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 5ffc1a20b382f..df09873742edd 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -26,6 +26,8 @@ Fixed regressions - Fixed regression in :func:`is_list_like` where objects with ``__iter__`` set to ``None``...
- [x] closes #43424 - [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 For now have put whatsnew in 1.3.3, but might be better for 1.4 since regression is later ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43455
2021-09-08T02:17:12Z
2021-09-09T11:37:26Z
2021-09-09T11:37:26Z
2021-09-09T12:55:24Z
Backport PR #43450 on branch 1.3.x (Regression in loc setitem raising ValueError when setting array as cell value)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 1fbe91727c847..3b0f273451456 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`merge` where ``on`` columns with ``ExtensionDtype`` or ``bool...
Backport PR #43450: Regression in loc setitem raising ValueError when setting array as cell value
https://api.github.com/repos/pandas-dev/pandas/pulls/43453
2021-09-07T21:59:41Z
2021-09-07T22:58:26Z
2021-09-07T22:58:26Z
2021-09-07T22:58:26Z
Regression in loc setitem raising ValueError when setting array as cell value
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 6ba623b9fdbe5..5ffc1a20b382f 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`merge` where ``on`` columns with ``ExtensionDtype`` or ``bool...
- [x] closes #43422 - [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/43450
2021-09-07T20:42:18Z
2021-09-07T21:59:33Z
2021-09-07T21:59:33Z
2021-09-08T07:25:12Z
REF: share _wrap_transformed_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8bb8f00b4c406..9f45a6665ca5c 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -366,36 +366,6 @@ def _indexed_output_to_ndframe( result.name = self.obj.name return result - def _wr...
Sits on top of #43446
https://api.github.com/repos/pandas-dev/pandas/pulls/43449
2021-09-07T18:20:10Z
2021-09-09T12:34:40Z
2021-09-09T12:34:40Z
2021-09-09T15:27:20Z
REGR: SpooledTemporaryFile support in read_csv
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 6bcce36bef93d..4bf5d7bead0a6 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -29,6 +29,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.corr` where Kendall correlation would produce incor...
- [ ] closes #43439 - [ ] 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 Probably should throw a warning, if we cannot wrap the handle with `io.TextIOWrapper`. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43447
2021-09-07T16:47:48Z
2021-09-10T00:24:11Z
2021-09-10T00:24:10Z
2021-09-10T00:24:31Z
REF: share _wrap_aggregated_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 35cb247e96bc3..8bb8f00b4c406 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -354,35 +354,17 @@ def array_func(values: ArrayLike) -> ArrayLike: ) return self._reindex_output(ser) - ...
- [ ] 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/43446
2021-09-07T16:13:28Z
2021-09-07T22:59:53Z
2021-09-07T22:59:53Z
2021-09-07T23:08:28Z
Pass through Engine kwargs in ExcelWriter
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 1f656f267783f..f87b43d8ed202 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -649,6 +649,7 @@ I/O - Bug in :func:`json_normalize` where reading data with missing multi-level metadata would not respect...
- [x] closes #43442 - [x] closes #43440 - [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 is the revised version of #42214. In fact, in xlsxwriter, all k...
https://api.github.com/repos/pandas-dev/pandas/pulls/43445
2021-09-07T15:46:38Z
2021-11-25T17:49:30Z
2021-11-25T17:49:29Z
2021-11-25T17:49:34Z
Backport PR #43410 on branch 1.3.x (REGR: Resampler.aggregate fails when used with column selection)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 70d8728a67695..1fbe91727c847 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
Backport PR #43410: REGR: Resampler.aggregate fails when used with column selection
https://api.github.com/repos/pandas-dev/pandas/pulls/43444
2021-09-07T13:07:07Z
2021-09-07T14:09:50Z
2021-09-07T14:09:50Z
2021-09-07T14:09:51Z
BUG: use TypeError (not OSError) when read_csv expects file path name or file-like object
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index bb9c124bae68b..c7aa0f2cddf9f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -387,6 +387,7 @@ I/O - Column headers are dropped when constructing a :class:`DataFrame` from a sqlalchemy's ``Row`` object...
The exception class was changed from `IOError` (alias of `OSError`) to `TypeError` when `read_csv` expects file path or file-like object. This bug is split from #43366, but with more clear intent and added test.
https://api.github.com/repos/pandas-dev/pandas/pulls/43443
2021-09-07T10:40:01Z
2021-09-07T11:16:37Z
null
2021-09-07T11:19:51Z
DOC: add links to pre-commit in contributing
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7fb5a6ddf2024..42017db8a05b1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ - [ ] closes #xxxx - [ ] tests added / passed -- [ ] Ensure all linting tests pass, see [here](https:...
- [ ] 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 The contributing page has comments on style, but does not link to setting up pre-commits yourself. It would be nice to be guided there
https://api.github.com/repos/pandas-dev/pandas/pulls/43441
2021-09-07T09:56:19Z
2021-09-08T23:53:49Z
2021-09-08T23:53:49Z
2021-09-08T23:53:56Z
ENH: Improve IOError handling on missing parent directory for Series/DataFrame write methods #24306
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 7b9997e8f0bd6..328499a4ae98e 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -107,6 +107,7 @@ Other enhancements - :meth:`DataFrame.to_stata` and :meth:`StataWriter` now accept the keyword only argume...
- [x] closes #24306 - [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/43436
2021-09-07T06:22:20Z
2021-09-11T14:50:50Z
2021-09-11T14:50:50Z
2021-09-11T14:51:04Z
REF: Groupby._get_cythonized_result operate blockwise in axis==1 case
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 11cd315553f41..115e63b915cbc 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3057,7 +3057,6 @@ def _get_cythonized_result( grouper = self.grouper ids, _, ngroups = grouper.group_in...
- [ ] 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/43435
2021-09-07T05:10:26Z
2021-09-13T15:26:08Z
2021-09-13T15:26:08Z
2021-09-13T16:06:22Z
REF: groupby.pad/backfill blockwise
diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi index b363524e4e592..4094c2c9af6e6 100644 --- a/pandas/_libs/groupby.pyi +++ b/pandas/_libs/groupby.pyi @@ -32,9 +32,9 @@ def group_shift_indexer( periods: int, ) -> None: ... def group_fillna_indexer( - out: np.ndarray, # ndarray[int64_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
https://api.github.com/repos/pandas-dev/pandas/pulls/43434
2021-09-07T00:14:13Z
2021-09-07T02:46:13Z
null
2021-09-07T23:24:37Z
TST: Test for MultiIndex merge with CategoricalIndex (#36973)
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 71134dcaf9ccc..5c07a9662359e 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -1813,6 +1813,35 @@ def tests_merge_categorical_unordered_equal(self): ) ...
- [x] closes #36973 - [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/43433
2021-09-06T21:51:55Z
2021-09-07T14:11:56Z
2021-09-07T14:11:56Z
2021-09-07T14:12:00Z
DOC: Modify pandas.ExcelWriter default engine in docstring (#43359)
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 52d1e1c83d3e6..489be2de7a764 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -647,7 +647,10 @@ class ExcelWriter(metaclass=abc.ABCMeta): """ Class for writing DataFrame objects into excel sheets. - Default is t...
* engine for xlsx : xlsxwriter instead of openpyxl * correction to pass the doctest - [x] closes #43359 - [x] tests added / passed : script/validate_docstrings.py detected 3 errors before my pull request. It's now resolved - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/d...
https://api.github.com/repos/pandas-dev/pandas/pulls/43432
2021-09-06T21:36:17Z
2021-09-12T16:55:59Z
2021-09-12T16:55:59Z
2021-09-12T16:56:08Z
Backport PR #43403: Revert Cythonized Kendall implementation and improve test case to prevent regressions
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index ddd3a8cf1ecb7..70d8728a67695 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
- [ ] closes #43401 - [ ] 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/43431
2021-09-06T19:46:28Z
2021-09-06T23:50:50Z
2021-09-06T23:50:50Z
2021-09-06T23:50:57Z
TYP: libs
diff --git a/pandas/_libs/join.pyi b/pandas/_libs/join.pyi index f73f495cf4d4f..5b0e50ca76840 100644 --- a/pandas/_libs/join.pyi +++ b/pandas/_libs/join.pyi @@ -1,51 +1,53 @@ import numpy as np +from pandas._typing import npt + def inner_join( left: np.ndarray, # const intp_t[:] right: np.ndarray, # con...
- [ ] 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/43430
2021-09-06T19:28:55Z
2021-09-09T12:41:32Z
2021-09-09T12:41:32Z
2021-09-09T15:24:29Z
Regression in __getitem__ raising for slice DatetimeIndex
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index df09873742edd..126e0819febb9 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`read_parquet` where the ``fastparquet`` engine would not work...
- [x] closes #43223 - [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 @jbrockmendel Any idea why we used ``maybe_indices_to_slice`` instead of take like in loc?...
https://api.github.com/repos/pandas-dev/pandas/pulls/43428
2021-09-06T18:35:34Z
2021-09-09T13:51:01Z
2021-09-09T13:51:01Z
2021-09-09T13:51:16Z
DEPR: squeeze argument in read_csv/read_table/read_excel
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 4c7b13bcf989f..c69f17512a8ea 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1208,6 +1208,10 @@ Returning Series Using the ``squeeze`` keyword, the parser will return output with a single column as a ``Seri...
- [ ] closes #43242 - [ ] 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/43427
2021-09-06T17:15:26Z
2021-09-10T13:45:49Z
2021-09-10T13:45:47Z
2021-09-12T15:07:29Z
BACKPORT: groupby.apply incorrectly dropping nan #43236
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 47ed073d12f1c..ddd3a8cf1ecb7 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
xref #43236
https://api.github.com/repos/pandas-dev/pandas/pulls/43426
2021-09-06T16:18:02Z
2021-09-06T18:37:29Z
2021-09-06T18:37:29Z
2021-09-06T18:56:48Z
Backport PR #42772 on branch 1.3.x (BUG: Series.groupby fails with InvalidIndexError on time series with …)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index 7a9549affef00..e3c6268547dd2 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -26,6 +26,7 @@ Fixed regressions - Fixed regression in :func:`concat` where ``copy=False`` was not honored in ``axis=1`` Se...
Backport PR #42772: BUG: Series.groupby fails with InvalidIndexError on time series with …
https://api.github.com/repos/pandas-dev/pandas/pulls/43425
2021-09-06T15:18:12Z
2021-09-06T17:11:53Z
2021-09-06T17:11:53Z
2021-09-06T17:11:53Z
CI: add `jinja2` as a hard dependency for `DataFrame.to_latex/to_html`
diff --git a/ci/deps/actions-38-db-min.yaml b/ci/deps/actions-38-db-min.yaml index c93f791b7dba7..55489a41f7997 100644 --- a/ci/deps/actions-38-db-min.yaml +++ b/ci/deps/actions-38-db-min.yaml @@ -15,6 +15,7 @@ dependencies: - numpy<1.20 # GH#39541 compat for pyarrow<3 - python-dateutil - pytz + - jinja2 ...
As per https://github.com/pandas-dev/pandas/pull/43161#issuecomment-909765165 Goes towards #43161 and #41648 This is WIP since 41648 is not finished yet, but it is getting close.
https://api.github.com/repos/pandas-dev/pandas/pulls/43423
2021-09-05T20:42:10Z
2021-11-16T17:34:56Z
null
2021-11-16T17:34:57Z
REF: MultiIndex._engine followup to #43370
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f55d66ccaa5a9..ca24055e85ee4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -291,7 +291,7 @@ Performance improvements - Performance improvement in :func:`read_stata` (:issue:`43059`) - Performance i...
- [ ] 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/43421
2021-09-05T18:26:51Z
2021-09-06T15:46:43Z
2021-09-06T15:46:43Z
2021-09-06T16:54:59Z
TST/CLN: ArrayManager tests
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 077301613eb8b..60fee17613373 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -535,7 +535,7 @@ def test_getitem_setitem_integer_slice_keyerrors(se...
- [ ] 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/43420
2021-09-05T18:20:32Z
2021-09-05T23:21:39Z
null
2021-09-05T23:21:43Z
TYP: ExtensionArray.take accept np.ndarray
diff --git a/pandas/_typing.py b/pandas/_typing.py index 9ed31dc3738f3..5f8ea79046235 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -219,6 +219,10 @@ PositionalIndexer = Union[ScalarIndexer, SequenceIndexer] PositionalIndexerTuple = Tuple[PositionalIndexer, PositionalIndexer] PositionalIndexer2D = Union[...
- [x] closes #43391 (np.ndarray is never a Sequence) - [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/43418
2021-09-05T15:08:33Z
2021-09-26T12:02:23Z
2021-09-26T12:02:23Z
2022-06-08T19:26:51Z
Backport PR #43150 on branch 1.3.x (BUG: GroupBy.quantile fails with pd.NA)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 3b0f273451456..3e92f7124e717 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
Backport PR #43150
https://api.github.com/repos/pandas-dev/pandas/pulls/43417
2021-09-05T14:08:10Z
2021-09-09T19:21:27Z
2021-09-09T19:21:27Z
2021-09-09T19:23:54Z
BUG GH#43414 Infer and coerce datetimes am pm
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index cfa16df367bce..c98c6850d10c5 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -892,6 +892,8 @@ def guess_datetime_format( if not isinstance(dt_str, str): return None + valid_am_pm...
- [ ] closes #43414 - [ ] 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/43416
2021-09-05T08:59:26Z
2021-09-18T20:23:31Z
null
2021-09-30T03:03:04Z
ENH: Add Redis IO functionality
diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst index 82d4ec4950ef1..92fb58822b387 100644 --- a/doc/source/reference/io.rst +++ b/doc/source/reference/io.rst @@ -158,6 +158,14 @@ ORC read_orc +Redis +~~~~ +.. autosummary:: + :toctree: api/ + + read_redis + DataFrame.to_redis + SAS ...
Adds two primary IO methods: to_redis() and read_redis() TL;DR: Serializes DataFrames in and out of Redis. I've used a version of this code in production previously to share a cached DF across multiple worker processes. - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.p...
https://api.github.com/repos/pandas-dev/pandas/pulls/43415
2021-09-05T07:21:11Z
2021-09-08T21:23:02Z
null
2021-09-08T21:23:02Z
ADMIN: Add GitHub Issue Forms for Bugs, Performance, or Installation issues
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 765c1b8bff62e..0000000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,39 +0,0 @@ ---- - -name: Bug Report -about: Create a bug report to help us improve pandas -title: "BUG:" -la...
- [x] xref #42951 Replaces the current bug report form with the new GitHub Issue Forms Additionally, adds performance issue and installation issue form that I've seen common in our tracker but currently does not have a good way to report. Forms can be tested here: https://github.com/mroeschke/issue-form-test/issu...
https://api.github.com/repos/pandas-dev/pandas/pulls/43411
2021-09-05T04:05:50Z
2021-09-06T06:06:30Z
2021-09-06T06:06:30Z
2021-09-06T06:06:34Z
REGR: Resampler.aggregate fails when used with column selection
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index c85da8ec79f6d..6ba623b9fdbe5 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
- [x] closes #42905 - [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 The method `resample._GroupByMixin._gotitem` calls ``` new_rs = type(self)( subse...
https://api.github.com/repos/pandas-dev/pandas/pulls/43410
2021-09-05T02:02:15Z
2021-09-06T20:37:19Z
2021-09-06T20:37:19Z
2021-09-07T21:50:29Z
BUG: concat of bool and boolean giving object dtype
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index bb9c124bae68b..edbdd41a4a34d 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -419,6 +419,7 @@ Reshaping - :func:`concat` creating :class:`MultiIndex` with duplicate level entries when concatenating a ...
- [x] closes #42800 - [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/43409
2021-09-04T23:53:49Z
2021-09-07T22:40:36Z
2021-09-07T22:40:36Z
2021-09-07T22:51:05Z
Backport PR #43150 on branch 1.3.x (BUG: GroupBy.quantile fails with pd.NA)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 00409cf963ab3..46080e1847317 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
Backport PR #43150: BUG: GroupBy.quantile fails with pd.NA
https://api.github.com/repos/pandas-dev/pandas/pulls/43408
2021-09-04T23:29:37Z
2021-09-05T16:13:26Z
null
2021-09-05T16:13:26Z
Backport PR #43373 on branch 1.3.x (BUG: Fix regression in is_list_like)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 00409cf963ab3..47ed073d12f1c 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in :meth:`merge` where ``on`` columns with ``ExtensionDtype`` or ``bool...
Backport PR #43373: BUG: Fix regression in is_list_like
https://api.github.com/repos/pandas-dev/pandas/pulls/43407
2021-09-04T23:29:04Z
2021-09-05T07:21:01Z
2021-09-05T07:21:01Z
2021-09-05T07:21:01Z
BUG: DataFrame.__setitem__ sometimes operating inplace
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..a5dd43a35ac9a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -497,6 +497,7 @@ Indexing - Bug in :meth:`DataFrame.query` where method calls in query strings led to errors when the ``num...
- [ ] 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 The fixed bug is the currently-xfailed test test_setitem_same_dtype_not_inplace (see #39510...
https://api.github.com/repos/pandas-dev/pandas/pulls/43406
2021-09-04T21:21:25Z
2021-11-01T17:14:20Z
2021-11-01T17:14:20Z
2023-06-01T14:26:36Z
BUG?: `hide_columns` now doesn't hide index names
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4cd76346a4a8f..10bc29d3e73df 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -76,7 +76,7 @@ Styler - :meth:`.Styler.bar` introduces additional arguments to control alignment and display (:issue:`260...
After #43346 it is now possible to control index names visibility. This PR adds full flexibility. This actually reverts #42839, but only because there is now an explicit method to hide index names. Also linking this to an old master tracker #24546. <img width="644" alt="Screenshot 2021-09-04 at 20 51 13" src="ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/43404
2021-09-04T18:55:15Z
2021-09-04T23:58:59Z
2021-09-04T23:58:59Z
2021-09-05T06:12:04Z
Revert Cythonized Kendall implementation and improve test case to prevent regressions
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index d8e9e70ec7227..cb0bf45aa1041 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
- [x] closes #43401 - [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/43403
2021-09-04T18:31:51Z
2021-09-06T18:35:47Z
2021-09-06T18:35:46Z
2021-09-06T23:51:43Z
TYP: type some un-typed decorators
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 0c158d47cfa3b..1b9f1d1d052ab 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -29,6 +29,7 @@ from pandas._typing import ( AnyArrayLike, DtypeObj, + F, Scalar, Shape, npt, @@ -185,7 ...
- xref #33455 - [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/43400
2021-09-04T15:28:27Z
2021-09-10T17:05:38Z
2021-09-10T17:05:37Z
2021-09-22T01:05:49Z
BUG: no `label` render in `Styler.to_latex` if `caption` and `"longtable"`
diff --git a/pandas/io/formats/templates/latex_longtable.tpl b/pandas/io/formats/templates/latex_longtable.tpl index fdb45aea83c16..4545723785805 100644 --- a/pandas/io/formats/templates/latex_longtable.tpl +++ b/pandas/io/formats/templates/latex_longtable.tpl @@ -23,6 +23,11 @@ {%- if label is not none %} \label{{l...
No whats new this is a 1.4.0 feature fix.
https://api.github.com/repos/pandas-dev/pandas/pulls/43399
2021-09-04T12:56:28Z
2021-09-04T14:07:14Z
2021-09-04T14:07:14Z
2021-09-04T16:43:02Z
REF: `styler.to_latex` siunitx changes: render {} only when needed.
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e6f9503a1e6f2..d0bd59021c238 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -861,6 +861,7 @@ def to_latex( multicol_align=multicol_align, environment=environment, convert_css=co...
adds item on #41649 for better backwards compat, and this is probably slightly better anyway. When: - `siunitx=True` columns headers are now rendered like `{} & {A} & {B} \\` - `siunitx=False` (default) then they are now rendered like ` & A & B \\` Rndering column headers with or without curly braces has n...
https://api.github.com/repos/pandas-dev/pandas/pulls/43397
2021-09-04T08:02:40Z
2021-09-04T14:09:02Z
2021-09-04T14:09:01Z
2021-09-04T16:43:57Z
BUG: dtype lost in DataFrame.append
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4cd76346a4a8f..e2b42a0ea14f5 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -406,6 +406,7 @@ Reshaping - Improved error message when creating a :class:`DataFrame` column from a multi-dimensional :cla...
- [ ] 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 1) For BlockManager, this improves dtype-retention, see test_append_same_columns_type 2) F...
https://api.github.com/repos/pandas-dev/pandas/pulls/43392
2021-09-03T23:08:26Z
2021-09-04T18:14:11Z
2021-09-04T18:14:11Z
2021-09-04T18:17:46Z
Backport PR #43152 on branch 1.3.x (BUG: Outer/right merge with EA dtypes cast to object)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index b4265c1bc5ddd..00409cf963ab3 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
Backport PR #43152: BUG: Outer/right merge with EA dtypes cast to object
https://api.github.com/repos/pandas-dev/pandas/pulls/43389
2021-09-03T21:52:39Z
2021-09-04T23:28:48Z
2021-09-04T23:28:48Z
2021-09-04T23:28:56Z
BUG: one level multiindex styler display
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2f8cb346935a9..b2d73e6d5b2e7 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -423,6 +423,7 @@ Styler - Bug in :meth:`.Styler.copy` where ``uuid`` was not previously copied (:issue:`40675`) - Bug in :...
- [x] closes #43383
https://api.github.com/repos/pandas-dev/pandas/pulls/43385
2021-09-03T20:36:52Z
2021-09-04T15:00:20Z
2021-09-04T15:00:20Z
2021-09-04T16:42:00Z
REF: reindex_indexer up-front to simplify JoinUnit
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 25bdc71fe7d12..e8765343e510a 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -65,6 +65,7 @@ if TYPE_CHECKING: from pandas import Index + from pandas.core.internals.blocks import Block ...
Sits on top of #43376
https://api.github.com/repos/pandas-dev/pandas/pulls/43384
2021-09-03T19:34:33Z
2021-09-08T21:44:14Z
2021-09-08T21:44:14Z
2021-09-08T22:34:55Z
ENH: `multicol` naive implementation. part2
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 4e2c836a9db8d..09da9f04f8360 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -896,7 +896,7 @@ def register_converter_cb(key): "latex.multicol_align", "r", styler_multicol_align, - val...
follows #43369
https://api.github.com/repos/pandas-dev/pandas/pulls/43382
2021-09-03T17:32:56Z
2021-09-08T09:43:36Z
2021-09-08T09:43:36Z
2021-09-08T09:43:40Z
Auto-update now occurs monthly instead of weekly
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml index 801e063f72726..3696cba8cf2e6 100644 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -2,7 +2,7 @@ name: "Update pre-commit config...
- [x] closes #43364 - [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
https://api.github.com/repos/pandas-dev/pandas/pulls/43379
2021-09-03T11:33:55Z
2021-09-03T14:51:31Z
2021-09-03T14:51:31Z
2021-09-03T14:51:32Z
Auto-update now occurs monthly instead of weekly
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml index 801e063f72726..3b63d7e456e0b 100644 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -2,7 +2,7 @@ name: "Update pre-commit config...
Fixes issue #43364 - [x] closes #44364 - [ ] 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/43378
2021-09-03T10:26:32Z
2021-09-03T13:49:15Z
null
2021-09-03T15:21:12Z
correcting example in comparison with spreadsheets
diff --git a/doc/source/getting_started/comparison/includes/nth_word.rst b/doc/source/getting_started/comparison/includes/nth_word.rst index 7af0285005d5b..20e2ec47a8c9d 100644 --- a/doc/source/getting_started/comparison/includes/nth_word.rst +++ b/doc/source/getting_started/comparison/includes/nth_word.rst @@ -5,5 +5,...
- [ ] closes #43361 - [ ] doc/source/getting_started/comparison/includes/nth_word.rst file updated with correction in example
https://api.github.com/repos/pandas-dev/pandas/pulls/43377
2021-09-03T09:51:08Z
2021-09-03T09:57:16Z
2021-09-03T09:57:15Z
2021-09-20T04:49:13Z
REF: reindex_indexer use np.void to avoid JoinUnit
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 6b41d7a26080d..25bdc71fe7d12 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -198,6 +198,8 @@ def concatenate_managers( if isinstance(mgrs_indexers[0][0], ArrayManager): return _conca...
ATM we do a kludgy thing where we sometimes reindex before calling concat (e.g. in DataFrame.append) and that leads to all-NA columns that we choose to ignore when choosing the dtype for the concatenated column. This leads to a) funky behavior when we encounter an "real" all-NA column and b) a big performance hit in c...
https://api.github.com/repos/pandas-dev/pandas/pulls/43376
2021-09-03T04:54:42Z
2021-09-08T12:44:59Z
2021-09-08T12:44:58Z
2021-09-08T14:07:13Z
BUG: rolling.groupby with on and __getitem__ doesn't mutate underlying object
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 3b9ddf8138689..dd3f0368f9227 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -408,6 +408,7 @@ Groupby/resample/rolling - Bug in :meth:`pandas.DataFrame.rolling` operation along rows (``axis=1``) incor...
- [x] closes #43355 - [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/43374
2021-09-03T00:51:09Z
2021-09-06T15:36:23Z
2021-09-06T15:36:23Z
2021-09-06T17:14:39Z
BUG: Fix regression in is_list_like
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index b4265c1bc5ddd..254225eacc6f6 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`4239...
`is_list_like()` used to use `isinstance(obj, abc.Iterable)` before #39852 where it was optimized for performance. This resulted in a regression where objects that explicitly declare `__iter__` as `None` are considered "list like" but not instances of `abc.Iterable`. Because the original original PR was focused on p...
https://api.github.com/repos/pandas-dev/pandas/pulls/43373
2021-09-02T22:40:14Z
2021-09-04T23:28:26Z
2021-09-04T23:28:26Z
2021-09-05T01:44:50Z
CLN: Minor cleanup of deprecations in parser code
diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py index 6737f2dfd5086..bc554b5e6a208 100644 --- a/pandas/io/parsers/base_parser.py +++ b/pandas/io/parsers/base_parser.py @@ -111,6 +111,8 @@ "skip_blank_lines": True, "encoding_errors": "strict", "on_bad_lines": "error", + ...
- [ ] 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 Some spaghetti that I noticed and was annoying.
https://api.github.com/repos/pandas-dev/pandas/pulls/43372
2021-09-02T22:19:49Z
2021-09-04T14:10:51Z
2021-09-04T14:10:51Z
2021-09-18T17:45:52Z
PERF: MultiIndex.get_indexer
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f2e2abd16b985..b72be00714b6c 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -603,26 +603,26 @@ cdef class BaseMultiIndexCodesEngine: def _codes_to_ints(self, ndarray[uint64_t] codes) -> np.ndarray: raise NotImplemented...
Avoids expensive construction of MultiIndex.values, followed by expensive casting of sequence-of-tuples back to tuple-of-Indexes. ``` import pandas as pd mi = pd.MultiIndex.from_product([range(100), range(100), range(100)]) %timeit mi.get_indexer(mi[:-1]) 698 ms ± 18.7 ms per loop (mean ± std. dev. of 7 runs...
https://api.github.com/repos/pandas-dev/pandas/pulls/43370
2021-09-02T22:02:06Z
2021-09-05T01:45:58Z
2021-09-05T01:45:58Z
2021-09-05T17:59:08Z
ENH: `multirow` naive implementation `Styler.to_latex` part1
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a85b84aad9f94..be38937741f93 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -78,6 +78,7 @@ Styler - :meth:`.Styler.to_html` introduces keyword arguments ``sparse_index``, ``sparse_columns``, ``bold...
this is also for compatability with `DataFrame.to_latex`. #41649 I think its a nice feature though, although opinions on the argument input choice are welcome. Maybe `"none"` is better than `"naive"`. When implementing this for multicol there will be the option for left or right alignment, so the likes of `"naiv...
https://api.github.com/repos/pandas-dev/pandas/pulls/43369
2021-09-02T21:43:37Z
2021-09-07T05:26:29Z
2021-09-07T05:26:29Z
2021-09-07T05:26:36Z
CLN: add arg validation for `caption`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4cd76346a4a8f..0868a93875c44 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -83,6 +83,8 @@ Formerly Styler relied on ``display.html.use_mathjax``, which has now been repla There are also bug fixes ...
this is needed since ``DataFrame.to_latex`` validates the ``caption`` arg. (Personally not a fan of this type of explicit validation)
https://api.github.com/repos/pandas-dev/pandas/pulls/43368
2021-09-02T21:10:19Z
2021-09-05T01:36:13Z
2021-09-05T01:36:12Z
2021-09-05T10:13:28Z
MAINT: rename IOError -> OSError
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 3b9ddf8138689..2a590af95d674 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -385,6 +385,7 @@ I/O - Column headers are dropped when constructing a :class:`DataFrame` from a sqlalchemy's ``Row`` object...
Since Python 3.3, IO and OS exceptions were re-worked as per [PEP 3151](https://www.python.org/dev/peps/pep-3151/). The new main base class is [OSError](https://docs.python.org/3/library/exceptions.html#OSError), with several other exceptions merged, including IOError (i.e. `assert IOError is OSError`). This PR cha...
https://api.github.com/repos/pandas-dev/pandas/pulls/43366
2021-09-02T20:35:36Z
2021-09-11T02:28:39Z
2021-09-11T02:28:39Z
2022-02-11T02:55:24Z
TYP: tslibs
diff --git a/pandas/_libs/tslibs/conversion.pyi b/pandas/_libs/tslibs/conversion.pyi index e74a56a519c5a..3d0288160e386 100644 --- a/pandas/_libs/tslibs/conversion.pyi +++ b/pandas/_libs/tslibs/conversion.pyi @@ -5,6 +5,8 @@ from datetime import ( import numpy as np +from pandas._typing import npt + DT64NS_DTYPE:...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43365
2021-09-02T18:39:22Z
2021-09-02T23:21:12Z
2021-09-02T23:21:12Z
2021-09-02T23:22:38Z
CLN: Replace sphinx's rpartition with python's in-built one
diff --git a/doc/source/conf.py b/doc/source/conf.py index 8df048ce65582..0096b3337e19a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -461,7 +461,6 @@ # eg pandas.Series.str and pandas.Series.dt (see GH9322) import sphinx # isort:skip -from sphinx.util import rpartition # isort:skip from sphinx.ext...
Closes #43348 Replaced Sphinx's `rpartition` which was deprecated with Python's in-built method
https://api.github.com/repos/pandas-dev/pandas/pulls/43360
2021-09-02T14:29:23Z
2021-09-02T23:50:34Z
2021-09-02T23:50:33Z
2021-09-03T12:58:39Z
TST: added test for groupby when calling first, last, nth (GH29645)
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index e7a5e931f5297..f0eef550b39ac 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -689,3 +689,20 @@ def test_first_multi_key_groupbby_categorical(): [(1, 100), (1, 200), (2, 100)], names=["...
- [x] closes #29645 - [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 Provided test for `groupby` when callling `first`, `last`, `nth` on a `Series` with `None` or `np.nan`. Tests...
https://api.github.com/repos/pandas-dev/pandas/pulls/43358
2021-09-02T10:54:17Z
2021-09-06T21:50:54Z
2021-09-06T21:50:54Z
2021-09-06T21:50:59Z
CI: styler mypy fix
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 54711473c1f5d..e6f9503a1e6f2 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -231,7 +231,7 @@ def __init__( thousands=thousands, ) - def _repr_html_(self) -> str: + def _repr_html_(self) ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/43356
2021-09-02T05:17:04Z
2021-09-02T09:48:07Z
2021-09-02T09:48:07Z
2021-09-02T11:27:42Z
PERF: concat
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 0aed9e697ca66..6b41d7a26080d 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -32,6 +32,7 @@ is_1d_only_ea_obj, is_datetime64tz_dtype, is_dtype_equal, + is_scalar, needs_i8_co...
``` from asv_bench.benchmarks.groupby import * self = Apply() self.setup(4) %timeit self.time_copy_overhead_single_col(4) 213 ms ± 10.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 161 ms ± 2.84 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43354
2021-09-02T02:34:11Z
2021-09-02T23:18:25Z
2021-09-02T23:18:25Z
2021-09-03T01:15:47Z
PERF: rebuild_blknos_and_blklocs
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index 1791cbb85c355..6542b7a251644 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -82,3 +82,4 @@ class BlockManager: self, blocks: tuple[B, ...], axes: list[Index], verify_integrity=True ): ... def get_s...
I don't have an asv on hand which is dominated by this method, but profiling time_copy_overhead_single_col and looking at this method: ``` from asv_bench.benchmarks.groupby import * self = Apply() self.setup(4) %timeit self.time_copy_overhead_single_col(4) 227 ms ± 10.9 ms per loop (mean ± std. dev. of 7 runs...
https://api.github.com/repos/pandas-dev/pandas/pulls/43353
2021-09-01T21:46:33Z
2021-09-01T23:01:18Z
2021-09-01T23:01:18Z
2021-09-01T23:40:44Z
PERF: unstack 2 the unstackening
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 88183a4571327..9a3f8920f8e9b 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1285,6 +1285,10 @@ def _unstack(self, unstacker, fill_value, new_placement, allow_fill: bool): mask = mask.any...
``` from asv_bench.benchmarks.reshape import * self2 = Unstack() self2.setup("category") %timeit self2.time_full_product("category") 31.3 ms ± 2.23 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 20.1 ms ± 304 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # < PR ``` Orthogon...
https://api.github.com/repos/pandas-dev/pandas/pulls/43352
2021-09-01T21:13:13Z
2021-09-01T23:04:31Z
2021-09-01T23:04:31Z
2021-09-01T23:35:32Z
Backport PR #43349 on branch 1.3.x (CI: Fix Failing Doc Build)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index bcfdcf6fd4b75..b4265c1bc5ddd 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`4239...
Backport PR #43349: CI: Fix Failing Doc Build
https://api.github.com/repos/pandas-dev/pandas/pulls/43350
2021-09-01T20:19:44Z
2021-09-01T20:23:50Z
2021-09-01T20:23:50Z
2021-09-02T09:57:32Z
CI: Fix Failing Doc Build
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index bcfdcf6fd4b75..b4265c1bc5ddd 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`4239...
https://github.com/pandas-dev/pandas/pull/43145 had failing code checks https://github.com/pandas-dev/pandas/pull/43347/checks?check_run_id=3488498926 ``` /home/runner/work/pandas/pandas/doc/source/whatsnew/v1.3.3.rst:36: WARNING: Bullet list ends without a blank line; unexpected unindent. ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43349
2021-09-01T20:16:04Z
2021-09-01T20:18:55Z
2021-09-01T20:18:55Z
2021-09-02T09:57:47Z
Backport PR #43145 on branch 1.3.x (REGR: Fix fastparquet 0.7.0 not being able to read a parquet file)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 7c1a414c1f37d..bcfdcf6fd4b75 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -18,7 +18,7 @@ Fixed regressions - Performance regression in :meth:`core.window.ewm.ExponentialMovingWindow.mean` (:issue:`...
Backport PR #43145: REGR: Fix fastparquet 0.7.0 not being able to read a parquet file
https://api.github.com/repos/pandas-dev/pandas/pulls/43347
2021-09-01T19:37:10Z
2021-09-01T20:19:36Z
2021-09-01T20:19:36Z
2021-09-01T20:19:36Z
ENH: kw `names` to `Styler.hide_index`
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 4fc13fd54df02..9e0769f22e102 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1114,6 +1114,8 @@ def _copy(self, deepcopy: bool = False) -> Styler: shallow = [ # simple string or boolean immutables ...
adds an item to #41649 and #41693 Im ambiguous about this feature but for better compatability when refactoring `DataFrame.to_html` and `DataFrame.to_latex` to use `Styler` it is needed. ![Screen Shot 2021-09-01 at 19 18 49](https://user-images.githubusercontent.com/24256554/131715321-34925946-f42c-4c79-ae9e-e07f...
https://api.github.com/repos/pandas-dev/pandas/pulls/43346
2021-09-01T17:19:37Z
2021-09-01T18:30:27Z
2021-09-01T18:30:27Z
2021-09-01T21:51:04Z
BUG: styler initialise precision=0
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index f51a1f5d9809d..8eef89f3cb28a 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -108,7 +108,9 @@ def __init__( self.cell_context: DefaultDict[tuple[int, int], str] = defaultdict(str) ...
- [x] closes #43342 no whats new needed since this was a recent change for 1.4.0
https://api.github.com/repos/pandas-dev/pandas/pulls/43343
2021-09-01T13:48:56Z
2021-09-01T18:09:21Z
2021-09-01T18:09:21Z
2021-09-01T18:10:56Z
BUG: styler.format options and validator tests
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index f594232f5fb6d..83e5f890ff3c7 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -10,6 +10,7 @@ """ import os +from typing import Callable import warnings import pandas._config.config as cf @@ -879,7 +880,7 @@ def...
sorry, this is a fix for recent #43256. the input types were not working using the instance factory approach so this is explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/43341
2021-09-01T09:09:37Z
2021-09-06T15:50:04Z
2021-09-06T15:50:03Z
2021-09-07T15:47:13Z
BUG: transpose casts mixed dtypes to object
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 372f991d96a22..26d96dda9e2e2 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -797,6 +797,7 @@ Reshaping - Improved error message when creating a :class:`DataFrame` column from a multi-dimensional :cla...
- [x] closes #43337 - [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/43340
2021-09-01T09:09:01Z
2022-01-25T01:23:04Z
null
2022-01-25T01:23:04Z
ENH: Rolling rank
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 97294fc02834b..3d2273b6d7324 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -180,6 +180,33 @@ def time_quantile(self, constructor, window, dtype, percentile, interpolation): self.roll.qua...
xref https://github.com/pandas-dev/pandas/issues/9481 - [x] closes #9481 - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43338
2021-08-31T23:10:54Z
2021-09-14T13:07:58Z
2021-09-14T13:07:58Z
2021-09-14T13:08:26Z
PERF: unstack
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 9a3f8920f8e9b..1eea41c97707d 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1653,12 +1653,9 @@ def _unstack(self, unstacker, fill_value, new_placement, allow_fill: bool): # converting to...
``` from asv_bench.benchmarks.reshape import * self = ReshapeExtensionDtype() self.setup("Period[s]") %timeit self.time_unstack_fast('Period[s]') 9.23 ms ± 357 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master 5.19 ms ± 106 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR `...
https://api.github.com/repos/pandas-dev/pandas/pulls/43335
2021-08-31T21:16:46Z
2021-09-02T23:18:54Z
2021-09-02T23:18:54Z
2021-09-02T23:23:39Z
PERF: read_sas
diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py index fb121d3aed105..300df9728cd75 100644 --- a/pandas/io/sas/sas7bdat.py +++ b/pandas/io/sas/sas7bdat.py @@ -789,7 +789,7 @@ def _chunk_to_dataframe(self) -> DataFrame: n = self._current_row_in_chunk_index m = self._current_row_in_fil...
``` from asv_bench.benchmarks.io.sas import * self8 = SAS() self8.setup("sas7bdat") %timeit self8.time_read_sas("sas7bdat") 41.6 ms ± 1.77 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 22.7 ms ± 1.04 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43333
2021-08-31T18:47:51Z
2021-09-01T15:50:16Z
2021-09-01T15:50:16Z
2021-09-01T15:56:50Z
PERF: merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 501ad383168a0..ebd7369607cc5 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -748,7 +748,7 @@ def _maybe_drop_cross_column( self, result: DataFrame, cross_col: str | None ) -> None: if c...
``` from asv_bench.benchmarks.join_merge import * self6 = Merge() self6.setup(False) %timeit self6.time_merge_dataframes_cross(False) 535 ms ± 4.25 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 242 ms ± 5.98 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR self6.setup(Tru...
https://api.github.com/repos/pandas-dev/pandas/pulls/43332
2021-08-31T18:07:18Z
2021-08-31T19:37:14Z
2021-08-31T19:37:14Z
2021-08-31T20:36:43Z
CLN: remove typing ignores
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 31e10534d853a..7db2b7f9a76c5 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2097,9 +2097,7 @@ def hide_index( subset = non_reducing_slice(subset_) hide = self.data.loc[subset] ...
mypy now passes without ignorance
https://api.github.com/repos/pandas-dev/pandas/pulls/43331
2021-08-31T16:50:02Z
2021-08-31T20:53:57Z
null
2021-09-01T21:51:54Z
add Series.str.remove(pre|suf)fix
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 3ff3b2bb53fda..a60dab549e66d 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -427,6 +427,8 @@ strings and apply several methods to it. These can be accessed like Series.str.normalize Series...
- [x] closes #36944 - [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 Based on work in https://github.com/pandas-dev/pandas/pull/39226
https://api.github.com/repos/pandas-dev/pandas/pulls/43328
2021-08-31T12:24:44Z
2021-09-06T19:45:57Z
2021-09-06T19:45:57Z
2021-09-06T19:46:19Z
BUG: styler index and empty df
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index be647e344f270..b28b4a663ba54 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -381,7 +381,7 @@ Styler - Bug in :meth:`.Styler.to_html` where the ``Styler`` object was updated if the ``to_html`` method ...
- [x] closes #43305 - [x] tests added / passed - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43327
2021-08-31T12:13:43Z
2021-08-31T14:59:10Z
2021-08-31T14:59:09Z
2021-08-31T15:45:01Z
error resolution in sas file
diff --git a/sas.py b/sas.py new file mode 100644 index 0000000000000..cf450c30dca2c --- /dev/null +++ b/sas.py @@ -0,0 +1,9 @@ +import pandas as pd +df = pd.read_sas('airline.sas7bdat') +indexNames = df['YEAR'].index +ds = df.drop(indexNames) +print(ds) +#ds.to_csv("file.csv") + + +
- [x] closes https://github.com/pandas-dev/pandas/issues/18198 - [ ] 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 - [x] SAS file is now giving empty dataframe. Not NONE.
https://api.github.com/repos/pandas-dev/pandas/pulls/43326
2021-08-31T11:35:06Z
2021-08-31T16:58:37Z
null
2021-08-31T17:55:13Z
tensor flow addons
diff --git a/pandas/plotting/_matplotlib/__init__.py b/pandas/plotting/_matplotlib/__init__.py index 75c61da03795a..27dbd27bdccac 100644 --- a/pandas/plotting/_matplotlib/__init__.py +++ b/pandas/plotting/_matplotlib/__init__.py @@ -2,16 +2,15 @@ from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, ...
- [ ] 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/43325
2021-08-31T11:24:27Z
2021-08-31T11:50:20Z
null
2021-08-31T11:50:20Z
BUG: DataFrame.explode is failing on scalar int value.
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index db12129a15ef9..e9897424fae3a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8271,7 +8271,7 @@ def explode( columns: list[str | tuple] if is_scalar(column) or isinstance(column, tuple): - assert isinstance(col...
closes #43314 The **int** datatype of the column was raising this issue. - [x] 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/43324
2021-08-31T11:23:46Z
2021-09-29T22:45:28Z
null
2021-09-29T22:45:28Z
Update test_sorting.py
diff --git a/pandas/tests/test_sorting.py b/pandas/tests/test_sorting.py index a49b7c2b7f86e..f55e801a04b96 100644 --- a/pandas/tests/test_sorting.py +++ b/pandas/tests/test_sorting.py @@ -48,14 +48,14 @@ def test_int64_overflow(self): lg = df.groupby(["A", "B", "C", "D", "E", "F", "G", "H"]) rg = df....
- [ ] 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/43323
2021-08-31T11:20:32Z
2021-08-31T11:50:05Z
null
2021-08-31T12:40:22Z
Datetime series slicing - error without loc()
diff --git a/doc/source/getting_started/intro_tutorials/09_timeseries.rst b/doc/source/getting_started/intro_tutorials/09_timeseries.rst index b9cab0747196e..3ecd8eac50543 100644 --- a/doc/source/getting_started/intro_tutorials/09_timeseries.rst +++ b/doc/source/getting_started/intro_tutorials/09_timeseries.rst @@ -263...
Problem: Date time series on slicing might produce errors for different reasons(change in data format for each, unsorted DateTime inputs etc.) which can be avoided with "loc() on the DateTime". The error was like *** Slicing with this method is *always* positional.*** After correcting the Issue : (Screenshots) h...
https://api.github.com/repos/pandas-dev/pandas/pulls/43322
2021-08-31T10:32:55Z
2021-08-31T18:33:01Z
null
2021-08-31T18:33:01Z
Update Dockerfile
diff --git a/Dockerfile b/Dockerfile index de1c564921de9..88d940e71abef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM quay.io/condaforge/miniforge3 # if you forked pandas, you can pass in your own GitHub username to use your fork # i.e. gh_username=myname -ARG gh_username=pandas-dev +ARG gh_username...
- [ ] 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/43320
2021-08-31T09:18:12Z
2021-08-31T09:18:46Z
null
2021-08-31T09:31:16Z
REF: `Styler.export`
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 440cb85d1d6a6..5fe619c749d42 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1380,8 +1380,12 @@ "metadata": {}, "outputs": [], "source": [ - "style1 = df2.style.applymap(sty...
- [x] closes #40675 - [x] tests added / passed - [x] whatsnew entry Finishes a series of PRs for the tracker
https://api.github.com/repos/pandas-dev/pandas/pulls/43318
2021-08-31T05:07:44Z
2021-10-23T12:19:57Z
2021-10-23T12:19:56Z
2021-10-23T12:20:00Z
BENCH: tighter targeting on ChainedIndexing benchmark
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 75ef8a276da5e..58f2a73d82842 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -399,12 +399,14 @@ class ChainIndexing: def setup(self, mode): self.N = 1000000 + self.df = D...
ATM almost half of the benchmark runtime is in the DataFrame constructor.
https://api.github.com/repos/pandas-dev/pandas/pulls/43317
2021-08-31T04:29:59Z
2021-08-31T15:44:12Z
2021-08-31T15:44:12Z
2021-08-31T15:58:32Z
PERF: DataFrame[object].fillna
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 88183a4571327..3b31e1b2997c6 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1084,6 +1084,23 @@ def interpolate( # If there are no NAs, then interpolate is a no-op return...
``` from asv_bench.benchmarks.frame_methods import * self5 = Fillna() self5.setup(False, 'pad', 'object') %timeit self5.time_frame_fillna(False, 'pad', 'object') 191 ms ± 5.41 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 127 ms ± 5.03 ms per loop (mean ± std. dev. of 7 runs, 10 loops eac...
https://api.github.com/repos/pandas-dev/pandas/pulls/43316
2021-08-31T01:29:17Z
2021-09-02T23:55:01Z
2021-09-02T23:55:01Z
2021-09-03T01:13:35Z
BUG: Fix `pd.to_numeric` to have consistent behavior for date-like arguments
diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py index 7d2bb75934c33..104b625d08e45 100644 --- a/pandas/core/tools/numeric.py +++ b/pandas/core/tools/numeric.py @@ -102,18 +102,22 @@ def to_numeric(arg, errors="raise", downcast=None): 1 2 2 -3 dtype: int8 - >>> s = pd.Seri...
- [ ] closes #43280 - [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 `pd.to_numeric` was having an inconsistent behavior when using in datelike objects and was...
https://api.github.com/repos/pandas-dev/pandas/pulls/43315
2021-08-31T00:08:14Z
2021-10-16T20:19:19Z
null
2021-10-16T20:19:20Z
BUG: Fix some parse dates tests for the Arrow CSV reader
diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py index 6737f2dfd5086..30ee47862502e 100644 --- a/pandas/io/parsers/base_parser.py +++ b/pandas/io/parsers/base_parser.py @@ -1090,7 +1090,9 @@ def _isindex(colspec): colspec = orig_names[colspec] if _is...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Fixes around 21 tests. This fix was left out of the original PR in the interest of keeping ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43312
2021-08-30T21:00:27Z
2021-09-03T00:01:07Z
2021-09-03T00:01:07Z
2021-09-05T18:07:53Z
PERF: nanops
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index a80bd8ba76dac..5d96e9bb6cd19 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -449,6 +449,35 @@ def _na_for_min_count(values: np.ndarray, axis: int | None) -> Scalar | np.ndarr return np.full(result_shape, fill_value, dtype=value...
``` from asv_bench.benchmarks.stat_ops import * self = FrameOps() self.setup("skew", "float", 0) %timeit self.time_op("skew", "float", 0) 3.22 ms ± 235 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master 2.06 ms ± 71.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR %timei...
https://api.github.com/repos/pandas-dev/pandas/pulls/43311
2021-08-30T20:49:49Z
2021-08-31T18:31:30Z
2021-08-31T18:31:30Z
2021-11-21T20:50:47Z
PERF: GroupBy.cumsum
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index d1dc2aa7bd43f..2c73fe5a8b5bc 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -526,7 +526,13 @@ def get_numeric_data(self: T, copy: bool = False) -> T: copy : bool, default False ...
``` from asv_bench.benchmarks.groupby import * self = GroupByMethods() self.setup('int', 'cumsum', 'transformation', 2) %timeit self.time_dtype_as_group('int', 'cumsum', 'transformation', 2) 128 µs ± 7.81 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 99.7 µs ± 1.13 µs per loop (mean ± ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43309
2021-08-30T20:30:04Z
2021-08-30T21:45:33Z
2021-08-30T21:45:33Z
2021-08-30T21:54:38Z
PERF: setting PeriodDtype column
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index a214371bdf26e..bf1f5d37f07dc 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -936,7 +936,18 @@ def __eq__(self, other: Any) -> bool: if isinstance(other, str): return other in [self.name,...
``` from asv_bench.benchmarks.period import * self = DataFramePeriodColumn() self.setup() %timeit self.time_setitem_period_column() 59.8 µs ± 2.19 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 33 µs ± 933 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43308
2021-08-30T20:16:05Z
2021-08-30T23:28:30Z
2021-08-30T23:28:30Z
2021-08-30T23:47:42Z
PERF: DataFrame(ndarray)
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 86834a8dccf40..63d84ab39fa96 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -386,7 +386,9 @@ def ndarray_to_mgr( if len(columns) == 0: block_values = [] - ...
``` from asv_bench.benchmarks.frame_ctor import * self = FromNDArray() self.setup() %timeit self.time_frame_from_ndarray() 37.9 µs ± 1.17 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 29.8 µs ± 549 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43307
2021-08-30T18:34:41Z
2021-08-30T19:36:39Z
2021-08-30T19:36:39Z
2021-08-30T19:40:13Z
PERF: use _get_axis_number instead of if axis in [...]
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 68a7b12d37339..1d3c7f360e724 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1149,27 +1149,26 @@ def _apply( subset = slice(None) if subset is None else subset subset = non_reducing_slice(subset) ...
Added _get_axis_number in style.py as per the standards
https://api.github.com/repos/pandas-dev/pandas/pulls/43306
2021-08-30T17:51:12Z
2021-08-31T10:03:29Z
null
2021-08-31T10:03:29Z