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
BUG/CLN: LinePlot uses incorrect xlim when secondary_y=True
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index 9e992573f568d..4ef0110013925 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -148,6 +148,11 @@ Performance + +- Bug in line plot doesn't set correct ``xlim`` if ``secondary_y=True`` (:issue:`7459`) + + + Experimental ~~~~~~~~...
`xlim` is not set properly when `secondary_y=True`. This is different issue from #7322. Also, refactored `secondary_y` to be handled only by `MPLPlot`, because it will be required in future fix to pass multiple axes to `df.plot`, like #7069 (I'm willing to work soon..). ``` df = pd.DataFrame(np.random.randn(5, 5), co...
https://api.github.com/repos/pandas-dev/pandas/pulls/7459
2014-06-14T12:30:28Z
2014-07-07T15:25:12Z
2014-07-07T15:25:12Z
2014-07-09T12:39:10Z
BUG: DTI.intersection doesnt preserve tz
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index cfdef3adb1f34..0c78b00003169 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -232,4 +232,5 @@ Bug Fixes - +- Bug in non-monotonic ``Index.union`` may preserve ``name`` incorrectly (:issue:`7458`) +- Bug in ``DatetimeIndex.inter...
Closes #4690. Also, found and fixed a bug which non-monotonic `Index.union` incorrectly preserves `name` when `Index` have different names. ``` # monotonic idx1 = pd.Index([1, 2, 3, 4, 5], name='idx1') idx2 = pd.Index([4, 5, 6, 7, 8], name='other') idx1.intersection(idx2).name # None (Expected) # non-monotonic idx1 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/7458
2014-06-14T12:02:01Z
2014-06-14T14:30:36Z
2014-06-14T14:30:36Z
2014-06-14T15:34:31Z
BUG: Better axis label handling for partial layout
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index c41bc13b18606..8beaeb8378f82 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -143,7 +143,7 @@ Performance - +- Bug in subplots displays ``ticklabels`` and ``labels`` in different rule (:issue:`5897`) diff --git a/pandas/t...
Closes #5897. Handle `ticklabels` and `labels` based on below rules. Currently `labels` are always displayed even if `ticklabels` are hidden and causes confusion. - If `sharex` is `True`, display only most bottom `xticklabels` on each columns. (Because #7035 hides the bottom-right axes). Hide `xlabel` as the same mann...
https://api.github.com/repos/pandas-dev/pandas/pulls/7457
2014-06-14T11:21:40Z
2014-07-01T15:28:58Z
2014-07-01T15:28:58Z
2014-09-18T20:28:41Z
FIX integer column names for older sqlalchemy version GH6340, GH7330
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 0ac4b5f3fcc2b..bb6f9cee5766e 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -567,7 +567,7 @@ def insert(self): ins = self.insert_statement() data_list = [] temp = self.insert_data() - keys = temp.columns + keys = li...
Closes #7330. Should enable to merge #7022 (#6340).
https://api.github.com/repos/pandas-dev/pandas/pulls/7456
2014-06-14T10:42:52Z
2014-06-14T11:02:08Z
2014-06-14T11:02:07Z
2014-08-21T07:58:27Z
DOC: Add how to calculate month-start to cookbook
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index 2548f2d88c5d9..b16c71bffd64d 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -269,6 +269,13 @@ Turn a matrix with hours in columns and days in rows into a continuous row seque `Dealing with duplicates when reindexing a timeserie...
Related: #7449
https://api.github.com/repos/pandas-dev/pandas/pulls/7455
2014-06-14T05:31:07Z
2014-06-14T13:02:05Z
2014-06-14T13:02:05Z
2014-06-14T23:01:42Z
ENH/API: offsets funcs now accepts datetime64
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index cfdef3adb1f34..983dbb61c1288 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -126,7 +126,7 @@ Enhancements - +- All offsets ``apply``, ``rollforward`` and ``rollback`` can now handle ``np.datetime64``, previously results in ``A...
Even though `CustomBusinessDay.apply` can handle `np.datetime64`, most of other offsets cannot accept `datetime64` and raises `ApplyTypeError`. The fix allows all offsets `apply`, `rollforward` and `rollback` to handle `np.datetime64` properly. ``` import pandas as pd import numpy as np t = np.datetime64('2011-01-01 0...
https://api.github.com/repos/pandas-dev/pandas/pulls/7452
2014-06-13T21:58:09Z
2014-06-14T19:01:04Z
2014-06-14T19:01:04Z
2014-06-14T21:52:32Z
TST/CLN: centralize module check funcs
diff --git a/pandas/stats/tests/test_moments.py b/pandas/stats/tests/test_moments.py index 3ea40f80a822c..dd91952cf537c 100644 --- a/pandas/stats/tests/test_moments.py +++ b/pandas/stats/tests/test_moments.py @@ -17,11 +17,6 @@ N, K = 100, 10 -def _skip_if_no_scipy(): - try: - import scipy.stats - exc...
- Moved duplicated module check functions to `util.testing` - Remove some unnecessary import
https://api.github.com/repos/pandas-dev/pandas/pulls/7451
2014-06-13T21:29:07Z
2014-06-21T20:11:43Z
2014-06-21T20:11:43Z
2014-06-21T22:42:21Z
FIX: Enable fixed width strings to be read from Stata 13 (117) files
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index be0b3bc543c39..c3e5e4989139f 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -220,6 +220,8 @@ Bug Fixes - Bug where ``nanops._has_infs`` doesn't work with many dtypes (:issue:`7357`) - Bug in ``StataReader.data`` where reading a...
Fixes a bug which prevented files containing fixed width string data from being read. Stata 13 files also allow variable length strings, which are not supported in the current version, and an explicit exception regarding this type is now given. Added tests which cover these cases, and Stata 13 format files. fixes #...
https://api.github.com/repos/pandas-dev/pandas/pulls/7450
2014-06-13T20:23:23Z
2014-06-16T12:51:56Z
2014-06-16T12:51:56Z
2014-06-16T12:52:01Z
Fix bug where ``nanops._has_infs`` doesn't work with many dtypes (issue #7357)
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index aacc4ae989611..c92e853ad8317 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -219,6 +219,8 @@ Bug Fixes 1-dimensional ``nan`` arrays (:issue:`7354`) - Bug where ``nanops.nanmedian`` doesn't work when ``axis==None`` (:issue:`73...
Fixes issue #7357, where where `nanops._has_infs` doesn't work with many dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/7448
2014-06-13T08:49:59Z
2014-06-13T16:42:59Z
2014-06-13T16:42:59Z
2014-06-22T15:29:59Z
WIP: searchsorted implementation
diff --git a/doc/source/api.rst b/doc/source/api.rst index cce15685035d0..4dd055bce0a0a 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -415,6 +415,7 @@ Reshaping, sorting Series.sortlevel Series.swaplevel Series.unstack + Series.searchsorted Combining / joining / merging ~~~~~~~~~~~~~~~~~...
closes #6712 we've decided to simply return `self.values.searchsorted`, since that's what was happening before, and because dealing with non-monotonic indices is a PITA and yields marginal benefit when you can just use `s.iloc[s.searchsorted(...)]` - [x] ~~`timedelta64` tests~~ #8464 - [x] ~~more edge case testing~~ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/7447
2014-06-13T03:05:18Z
2014-10-05T01:02:29Z
2014-10-05T01:02:29Z
2014-10-05T01:07:09Z
_sanitize_column now reports proper duplicate error
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5e31b14fa7bd3..06494a7167e64 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1962,6 +1962,8 @@ def _sanitize_column(self, key, value): # GH 4107 try: value = value.reindex(self.index).v...
closes #7432 A very simple fix for GH7432. `internals.py` (line 3240) actually raises the correct exception (`ValueError: cannot reindex from a duplicate axis`) but the except: doesn't allow it to be raised. Here I've just allowed the exception itself to be raised since it's more useful to the user than the weird `Type...
https://api.github.com/repos/pandas-dev/pandas/pulls/7442
2014-06-12T16:27:55Z
2014-06-13T19:34:50Z
2014-06-13T19:34:50Z
2014-06-14T10:58:15Z
support axis=None for nanmedian ( issue #7352 )
diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index 92e19ba43ccb7..aacc4ae989611 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -217,6 +217,8 @@ Bug Fixes (:issue:`7353`) - Bug in several ``nanops`` functions when ``axis==0`` for 1-dimensional ``nan`` arrays (:issue:`7354`) +-...
This fixes #7352, where `nanmedian` does not work when `axis==None`.
https://api.github.com/repos/pandas-dev/pandas/pulls/7440
2014-06-12T13:18:52Z
2014-06-12T22:41:29Z
2014-06-12T22:41:29Z
2014-06-13T13:23:36Z
TST: Move some window/moments tests to test_ewm
diff --git a/pandas/tests/window/moments/test_moments_consistency_ewm.py b/pandas/tests/window/moments/test_moments_consistency_ewm.py index c79d02fd3237e..b41d2ec23a52d 100644 --- a/pandas/tests/window/moments/test_moments_consistency_ewm.py +++ b/pandas/tests/window/moments/test_moments_consistency_ewm.py @@ -18,58 +...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Since some tests are not running on `windows/moments` (https://github.com/pandas-dev/pandas/issues/37535), moving some lighter e...
https://api.github.com/repos/pandas-dev/pandas/pulls/44128
2021-10-21T05:22:51Z
2021-10-24T01:51:55Z
2021-10-24T01:51:55Z
2021-10-24T01:51:58Z
Backport PR #44124 on branch 1.3.x (CI: Use Windows and MacOS Numpy Wheels)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index b32b18b86e9df..4fe58ad4d60e9 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -30,9 +30,6 @@ jobs: name: actions-310-dev timeout-minutes: 60 - env: - NUMPY_WHEELS_AVAILABLE: ...
Backport PR #44124: CI: Use Windows and MacOS Numpy Wheels
https://api.github.com/repos/pandas-dev/pandas/pulls/44127
2021-10-21T01:01:12Z
2021-10-21T02:29:12Z
2021-10-21T02:29:12Z
2021-10-21T02:29:12Z
REF: use concat_compat in union_with_duplicates
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 2bcfe767203bd..c1b587ce3a6b2 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -61,6 +61,7 @@ is_timedelta64_dtype, needs_i8_conversion, ) +from pandas.core.dtypes.concat import concat_compat from pandas.core.dt...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44125
2021-10-20T23:37:53Z
2021-10-21T01:49:59Z
2021-10-21T01:49:59Z
2021-10-21T01:52:43Z
CI: Use Windows and MacOS Numpy Wheels
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index b32b18b86e9df..4fe58ad4d60e9 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -30,9 +30,6 @@ jobs: name: actions-310-dev timeout-minutes: 60 - env: - NUMPY_WHEELS_AVAILABLE: ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44124
2021-10-20T23:13:49Z
2021-10-21T01:00:43Z
2021-10-21T01:00:43Z
2021-10-21T01:14:35Z
BUG: DataFrame index name no longer resets after appending a list of series
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2a718fdcf16e7..f9acfba8100c9 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -614,6 +614,7 @@ Reshaping - Bug in :func:`concat` which ignored the ``sort`` parameter (:issue:`43375`) - Fixed bug in :f...
- [x] closes #44109 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44123
2021-10-20T22:58:22Z
2021-11-05T00:52:46Z
2021-11-05T00:52:46Z
2022-01-25T21:24:22Z
REF: reuse self.grouper.result_index
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index 1331fc07386fb..7ff0842678d7f 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -30,8 +30,4 @@ cpdef inline extract_result(object res): if res.ndim == 1 and len(res) == 1: # see test_agg_lambda_with...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44122
2021-10-20T22:48:53Z
2021-10-21T00:49:40Z
2021-10-21T00:49:40Z
2021-10-21T01:49:06Z
PERF: new_block_2d
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 44271907dd75a..de612b367f78f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1289,7 +1289,8 @@ def _unstack( new_values = new_values.T[mask] new_placement = new_placement[mask] ...
Avoids some redundant checks
https://api.github.com/repos/pandas-dev/pandas/pulls/44121
2021-10-20T22:05:09Z
2021-10-21T01:06:18Z
2021-10-21T01:06:18Z
2021-10-21T01:56:58Z
BUG: ignore EAs when counting blocks to raise fragmentation PerformanceWarning
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 17b9e49bcad6a..c7b3874388d73 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -617,6 +617,7 @@ ExtensionArray ^^^^^^^^^^^^^^ - Bug in :func:`array` failing to preserve :class:`PandasArray` (:issue:`43...
Closes #44098
https://api.github.com/repos/pandas-dev/pandas/pulls/44115
2021-10-20T16:36:05Z
2021-10-21T00:51:10Z
2021-10-21T00:51:10Z
2021-10-21T06:04:48Z
CLN: clean TODOs in csv test
diff --git a/pandas/tests/frame/methods/test_to_csv.py b/pandas/tests/frame/methods/test_to_csv.py index be84eb9c85663..8a857c033a2de 100644 --- a/pandas/tests/frame/methods/test_to_csv.py +++ b/pandas/tests/frame/methods/test_to_csv.py @@ -142,8 +142,6 @@ def test_to_csv_from_csv4(self): result = read_c...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44113
2021-10-20T12:41:09Z
2021-10-20T17:25:26Z
2021-10-20T17:25:26Z
2022-11-18T02:20:52Z
DOC: ewm constructor
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index c697db9ea313e..c17af442fe2cc 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -126,9 +126,7 @@ def _calculate_deltas( class ExponentialMovingWindow(BaseWindow): r""" - Provide exponential weighted (EW) functions...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * Made language more consistent in the Parameters * Organized and added more Examples
https://api.github.com/repos/pandas-dev/pandas/pulls/44111
2021-10-20T04:51:02Z
2021-10-21T00:58:05Z
2021-10-21T00:58:05Z
2021-10-21T09:17:19Z
DOC: expanding constructor
diff --git a/pandas/core/window/expanding.py b/pandas/core/window/expanding.py index 58662e44b9887..796849e622ff2 100644 --- a/pandas/core/window/expanding.py +++ b/pandas/core/window/expanding.py @@ -44,16 +44,26 @@ class Expanding(RollingAndExpandingMixin): """ - Provide expanding transformations. + Pro...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * Made language more consistent in the Parameters * Organized and added more Examples * Added missing deprecation tag for `cen...
https://api.github.com/repos/pandas-dev/pandas/pulls/44110
2021-10-20T04:12:41Z
2021-10-21T00:54:52Z
2021-10-21T00:54:52Z
2021-10-21T01:48:30Z
DOC: rolling constructor
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 89be1f4206939..39aa5da95cc29 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -840,52 +840,89 @@ class Window(BaseWindow): Parameters ---------- window : int, offset, or BaseIndexer subclass ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * Made language more consistent in the `Parameters` * Organized and added more `Examples`
https://api.github.com/repos/pandas-dev/pandas/pulls/44108
2021-10-20T01:22:12Z
2021-10-21T00:56:13Z
2021-10-21T00:56:13Z
2021-10-21T01:48:39Z
BUG: RangeIndex.difference missed case
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 4def2e4b93553..b209a6556709b 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -705,6 +705,10 @@ def _difference(self, other, sort=None): else: return super()._difference(other, sor...
Need to figure out why running hypothesis locally (repeatedly) isn't catching the ones caught on the CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/44107
2021-10-19T22:24:16Z
2021-10-20T21:06:43Z
2021-10-20T21:06:43Z
2021-10-20T21:51:49Z
BUG: PeriodIndex[B].to_timestamp inferring "D" instead of "B".
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 99a66c7e5454b..8732e1c397ce5 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -579,6 +579,7 @@ I/O Period ^^^^^^ - Bug in adding a :class:`Period` object to a ``np.timedelta64`` object incorrectly ra...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44105
2021-10-19T20:15:59Z
2021-11-11T13:41:52Z
2021-11-11T13:41:52Z
2021-11-11T13:41:52Z
DOC: Perf notes
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 026429dabae84..17b9e49bcad6a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -403,21 +403,46 @@ Performance improvements - Performance improvement in :meth:`.GroupBy.sample`, especially when ``weights...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44101
2021-10-19T17:17:07Z
2021-10-19T21:59:52Z
2021-10-19T21:59:52Z
2021-10-19T22:02:49Z
testing broadcast on multiindex
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 0e6b36a484c47..87af6152b8189 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -668,6 +668,21 @@ def test_arithmetic_with_duplicate_columns(self, op): str(result) ...
- [x] closes #34388 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44094
2021-10-19T02:20:52Z
2021-11-29T00:59:13Z
2021-11-29T00:59:12Z
2021-11-29T00:59:16Z
ENH: retain RangeIndex in RangeIndex.difference
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index f1054635f44db..4def2e4b93553 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -675,6 +675,9 @@ def _difference(self, other, sort=None): if not isinstance(other, RangeIndex): return super()...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry This should handle _all_ cases where it is possible to retain RangeIndex, a claim whic...
https://api.github.com/repos/pandas-dev/pandas/pulls/44093
2021-10-19T01:50:12Z
2021-10-19T12:55:47Z
2021-10-19T12:55:47Z
2021-10-19T14:42:53Z
TST: fix groupby-empty xfails
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8a893db95dc22..3b54918ae99c1 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1536,6 +1536,7 @@ def func(df): result = [index[i] if i >= 0 else np.nan for i in indices] return...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44092
2021-10-18T21:04:33Z
2021-10-20T21:09:05Z
2021-10-20T21:09:05Z
2021-10-20T21:51:21Z
BUG: crosstab fails with lists/tuples
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..a78fe1d83cac2 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -573,6 +573,7 @@ Reshaping - Bug in :func:`concat` would fail when the ``objs`` argument all had the same index and the ``k...
- [x] closes #44076 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44088
2021-10-18T17:51:45Z
2021-10-18T19:28:50Z
2021-10-18T19:28:50Z
2021-10-19T03:45:30Z
ENH: preserve RangeIndex in insert, delete
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 9eb086ed97180..487a1880caff5 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -15,7 +15,10 @@ import numpy as np -from pandas._libs import index as libindex +from pandas._libs import ( + index as libind...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44086
2021-10-18T16:36:25Z
2021-10-18T23:05:28Z
2021-10-18T23:05:28Z
2021-10-18T23:15:52Z
BUG: RangeIndex.difference with sort=None and step<0
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..eee80d10dcb47 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -604,6 +604,7 @@ Other ^^^^^ - Bug in :meth:`CustomBusinessMonthBegin.__add__` (:meth:`CustomBusinessMonthEnd.__add__`) no...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44085
2021-10-18T16:08:00Z
2021-10-18T22:45:22Z
2021-10-18T22:45:22Z
2021-11-20T23:20:36Z
DOC: Fix cheatsheet automatic uploading
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20f7712131ba4..23e452f682b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,6 +136,9 @@ jobs: echo "${{ secrets.server_ip }} ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE1Kkopomm7FH...
Follow up of #44018. I didn't realize before merging that we were first uploading the web directory, and then copying the cheatsheets to it, so they won't be uploaded. The cheatsheets will be removed from the website in the CI of hte previous PR, so would be good to merge this asap, so the cheatsheets are restored. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44083
2021-10-18T15:32:24Z
2021-10-18T15:34:17Z
2021-10-18T15:34:16Z
2021-10-18T17:53:54Z
BUG: to_datetime with xarray DataArray and specifie unit errors
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 964f4b83866c9..4465875fc9ae6 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -467,6 +467,7 @@ Conversion ^^^^^^^^^^ - Bug in :class:`UInt64Index` constructor when passing a list containing both posit...
- [x] closes #44053 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] coerce to numpy array before calling ```tslib.array_with_unit_to_datetime```function Let me know if ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44074
2021-10-18T00:20:51Z
2021-10-19T01:43:32Z
2021-10-19T01:43:31Z
2021-10-19T01:43:36Z
Backport PR #44058 on branch 1.3.x (DOC: Start v1.3.5 release notes)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index e05bf9621e2c4..381df50641291 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 1.3 .. toctree:: :maxdepth: 2 + v1.3.5 v1.3.4 v1.3.3 v1.3.2 diff --git a/doc/source/...
Backport PR #44058: DOC: Start v1.3.5 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/44072
2021-10-17T17:57:15Z
2021-10-17T19:31:49Z
2021-10-17T19:31:49Z
2021-10-17T19:31:50Z
REF: share Index subclass formatting code
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0cfd0e970a44c..7a42a37e6f6d1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1247,11 +1247,11 @@ def _format_data(self, name=None) -> str_t: line_break_each_value=self._is_multi, ) - de...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44070
2021-10-17T16:45:31Z
2021-10-17T22:00:51Z
2021-10-17T22:00:51Z
2021-10-17T23:56:10Z
BUG: 43909 - check monoticity of rolling groupby
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index ffd32e263aa50..6baed863476a9 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -809,6 +809,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.nth` failing on ``axis=1`` (:issue:`43926`) - Fixed bug ...
- [x] closes #43909 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Whats new: - Exception now raised when non-monotonic data passed to rolling groupby...
https://api.github.com/repos/pandas-dev/pandas/pulls/44068
2021-10-17T16:13:55Z
2021-12-22T15:16:03Z
2021-12-22T15:16:03Z
2021-12-22T15:16:07Z
Backport PR #43199 on branch 1.3.x (BUG: convert_dtypes incorrectly converts byte strings to strings in 1.3+)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index c99f9e28e7fdf..22e15ed9f5d71 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
Backport PR #43199: BUG: convert_dtypes incorrectly converts byte strings to strings in 1.3+
https://api.github.com/repos/pandas-dev/pandas/pulls/44066
2021-10-17T11:04:34Z
2021-10-17T11:53:23Z
2021-10-17T11:53:23Z
2021-10-17T11:53:23Z
BUG: sort_index did not respect ignore_index when not sorting
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index af7706f624323..3d518de98a8a3 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -500,6 +500,7 @@ Indexing - Bug in :meth:`DataFrame.nlargest` and :meth:`Series.nlargest` where sorted result did not count...
- [X] closes #43591 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44065
2021-10-17T02:58:03Z
2021-10-19T15:00:17Z
2021-10-19T15:00:16Z
2021-10-19T15:00:25Z
DEPS: bump pyarrow min to 1.0 #41329
diff --git a/ci/deps/actions-38-db-min.yaml b/ci/deps/actions-38-db-min.yaml index a45e3919afd69..f875f2ef88949 100644 --- a/ci/deps/actions-38-db-min.yaml +++ b/ci/deps/actions-38-db-min.yaml @@ -31,7 +31,7 @@ dependencies: - openpyxl - pandas-gbq - protobuf>=3.12.4 - - pyarrow=0.17.1 # GH 38803 + - pyarrow...
- [x] closes #41329 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44064
2021-10-17T01:41:04Z
2021-10-18T13:29:03Z
2021-10-18T13:29:02Z
2022-11-18T02:20:52Z
CLN: collected cleanups
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 9fa84a0135a5e..78853ce6e41dc 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -408,7 +408,7 @@ cdef slice indexer_as_slice(intp_t[:] vals): int64_t d if vals is None: - raise TypeError("vals must...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44063
2021-10-16T22:48:35Z
2021-10-18T01:32:58Z
2021-10-18T01:32:58Z
2021-10-18T01:36:22Z
Backport PR #43291: BUG: Fixes to FixedForwardWindowIndexer and GroupbyIndexer (#43267)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index b6ee2d57a0965..f36c0afac763e 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -33,6 +33,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Fixed bug in :meth:`pandas.DataFrame.groupby.rolling` and :class...
Backport PR #43291
https://api.github.com/repos/pandas-dev/pandas/pulls/44061
2021-10-16T20:36:14Z
2021-10-16T21:37:12Z
2021-10-16T21:37:12Z
2021-10-16T21:37:16Z
Backport PR #44057 on branch 1.3.x (DOC: 1.3.4 release date)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index b6ee2d57a0965..2bdebe463ecc0 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_134: -What's new in 1.3.4 (October ??, 2021) +What's new in 1.3.4 (October 17, 2021) ---------...
Backport PR #44057: DOC: 1.3.4 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/44060
2021-10-16T19:56:58Z
2021-10-16T21:02:59Z
2021-10-16T21:02:59Z
2021-10-16T21:02:59Z
REF: share ExtensionIndex astype, __getitem__ with Index
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0cfd0e970a44c..bea31d148a309 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -59,7 +59,10 @@ deprecate_nonkeyword_arguments, doc, ) -from pandas.util._exceptions import find_stack_level +from pandas.uti...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44059
2021-10-16T18:22:30Z
2021-10-17T22:42:15Z
2021-10-17T22:42:15Z
2021-10-17T23:55:38Z
DOC: Start v1.3.5 release notes
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index b94954cf4c361..df33174804a33 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.3 .. toctree:: :maxdepth: 2 + v1.3.5 v1.3.4 v1.3.3 v1.3.2 diff --git a/doc/source/...
this fails until 1.3.4 tag exists.
https://api.github.com/repos/pandas-dev/pandas/pulls/44058
2021-10-16T18:15:08Z
2021-10-17T17:57:06Z
2021-10-17T17:57:06Z
2021-10-17T17:57:10Z
DOC: 1.3.4 release date
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index b6ee2d57a0965..2bdebe463ecc0 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_134: -What's new in 1.3.4 (October ??, 2021) +What's new in 1.3.4 (October 17, 2021) ---------...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44057
2021-10-16T18:07:25Z
2021-10-16T19:56:49Z
2021-10-16T19:56:49Z
2021-10-16T20:06:02Z
Backport PR #44032 on branch 1.3.x ([PERF] fixing memory leak in aggregation.pyx)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 9c9aacc4b0f52..b6ee2d57a0965 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -35,6 +35,7 @@ Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`.GroupBy.mean` with datetimelike values including ``NaT`` values ...
Backport PR #44032: [PERF] fixing memory leak in aggregation.pyx
https://api.github.com/repos/pandas-dev/pandas/pulls/44055
2021-10-16T17:47:26Z
2021-10-16T19:14:17Z
2021-10-16T19:14:17Z
2021-10-16T19:14:17Z
Fix several typos under pandas/_libs
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 1e05ef443d516..c229c67519a66 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -532,7 +532,7 @@ def group_add(add_t[:, ::1] out, nobs[lab, j] += 1 if nobs[lab, j] == 1: - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44043
2021-10-15T16:07:46Z
2021-10-15T18:14:13Z
2021-10-15T18:14:13Z
2021-10-15T21:26:48Z
Fixed metadata propagation in Dataframe.apply (issue #28283)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 254a004a37c40..4d3317b037e01 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -607,6 +607,7 @@ Reshaping - Bug in :func:`concat` which ignored the ``sort`` parameter (:issue:`43375`) - Fixed bug in :f...
Co-authored-by: Mohamad Rkein <mohamad_rkein@usp.br> Co-authored-by: Rafael Rodrigues <rrvsrafael@gmail.com> In reference to #28283 - [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-...
https://api.github.com/repos/pandas-dev/pandas/pulls/44041
2021-10-15T02:53:36Z
2021-10-29T21:57:49Z
2021-10-29T21:57:49Z
2021-10-29T21:57:49Z
DOC: Fix Docstring for DataFrame nlargest `keep` option (#44040)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 023ffb5a5fbda..1bb3dda0312cd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6584,8 +6584,8 @@ def nlargest(self, n, columns, keep: str = "first") -> DataFrame: keep : {'first', 'last', 'all'}, default 'first' Where th...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Add double backticks for DataFrame nlargest `keep` option to keep the style consistent From https://pandas.pydata.org/do...
https://api.github.com/repos/pandas-dev/pandas/pulls/44040
2021-10-15T02:02:09Z
2021-10-15T07:32:06Z
2021-10-15T07:32:06Z
2021-10-15T08:35:30Z
REF: dispatch DTI/TDI setops to RangeIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index d309dfc21eb95..4cff33f96de27 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -28,6 +28,7 @@ Resolution, Tick, parsing, + to_offset, ) from pandas.compat.numpy im...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Includes #44019 (but not that whatsnew) I'm optimistic we can eventually dispatch a...
https://api.github.com/repos/pandas-dev/pandas/pulls/44039
2021-10-15T01:55:22Z
2021-10-16T17:28:17Z
2021-10-16T17:28:16Z
2021-10-16T17:48:07Z
TST: added groupby apply test for nan coerce
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index e07d56931db8c..9e15da1bb0c01 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -1157,3 +1157,24 @@ def test_apply_na(dropna): result = dfgrp.apply(lambda grp_df: grp_df.nlargest(1, "...
- [x] closes #24903 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Bug was reported in #24903 that showed empty strings being coerced into Nan when certain apply was used...
https://api.github.com/repos/pandas-dev/pandas/pulls/44038
2021-10-15T01:04:31Z
2021-10-16T15:36:13Z
2021-10-16T15:36:13Z
2021-10-16T15:36:17Z
DOC: Document and annotate Index.reindex (#40328).
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f6bb8e7af3558..2dbfb23c9b785 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3947,6 +3947,27 @@ def reindex( Parameters ---------- target : an iterable + method : {None, 'pad'/'f...
- [x] closes #40328 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44037
2021-10-14T22:10:42Z
2021-10-16T15:35:07Z
2021-10-16T15:35:06Z
2021-10-16T15:47:43Z
Backport PR #43729: DEPS: Upgrade Deps for Python 3.10
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index d4777bcd1d079..2e4bfea165316 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -13,5 +13,5 @@ runs: - name: Build Pandas run: | python setup.py bu...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry **THIS IS A MANUAL BACKPORT OF LARGE BUILD CHANGES. PLEASE REVIEW CAREFULLY BEFORE MER...
https://api.github.com/repos/pandas-dev/pandas/pulls/44036
2021-10-14T21:40:29Z
2021-10-15T01:33:26Z
2021-10-15T01:33:26Z
2021-10-15T02:24:37Z
TST: adds test for .loc on multiindex for series GH43908
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py index 104fa2da7a67e..d036773c778e6 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -912,3 +912,11 @@ def test_loc_keyerror_rightmost_key_missing(): ...
- [x] closes #43908 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44035
2021-10-14T21:01:33Z
2021-10-15T18:15:20Z
2021-10-15T18:15:20Z
2021-10-15T18:15:35Z
CLN: no need for suffices anymore in test_hashtable.py
diff --git a/pandas/tests/libs/test_hashtable.py b/pandas/tests/libs/test_hashtable.py index 8b7304a84c27b..bdc02ff0aa7a8 100644 --- a/pandas/tests/libs/test_hashtable.py +++ b/pandas/tests/libs/test_hashtable.py @@ -370,96 +370,85 @@ def test_unique_for_nan_objects_tuple(): assert len(unique) == 2 -def get_ht...
- [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Since we have version with fused types, there is no need to call precise version (i.e. with suffices like ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44034
2021-10-14T20:29:13Z
2021-10-15T18:16:32Z
2021-10-15T18:16:32Z
2021-10-15T18:16:47Z
[PERF] fixing memory leak in aggregation.pyx
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 9c9aacc4b0f52..b6ee2d57a0965 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -35,6 +35,7 @@ Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`.GroupBy.mean` with datetimelike values including ``NaT`` values ...
- [x] closes #43339 - [x] tests passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry The old memory needs to be released, before the pointer switches to the new list.
https://api.github.com/repos/pandas-dev/pandas/pulls/44032
2021-10-14T20:06:26Z
2021-10-16T17:46:50Z
2021-10-16T17:46:50Z
2021-10-16T17:47:33Z
Temporarily add back Index._get_attributes_dict for dask compat
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f6bb8e7af3558..cc0521caaaf6c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -731,6 +731,22 @@ def _format_duplicate_message(self) -> DataFrame: # -------------------------------------------------------------...
See https://github.com/pandas-dev/pandas/pull/43895#issuecomment-938472299. There was of course no need to revert the full PR, just to add this method again.
https://api.github.com/repos/pandas-dev/pandas/pulls/44028
2021-10-14T09:48:22Z
2021-10-14T22:47:57Z
2021-10-14T22:47:57Z
2021-10-14T22:48:00Z
Bug multiple css selectors GH44011
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..3d89911434bfa 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -544,6 +544,8 @@ Styler - Bug when rendering an empty DataFrame with a named index (:issue:`43305`). - Bug when rendering ...
- [x ] closes #44011 - [x ] tests added / passed - [x ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44023
2021-10-14T00:59:05Z
2021-10-16T13:58:11Z
2021-10-16T13:58:10Z
2021-10-16T13:58:15Z
DOC: DatetimeArray.std
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index 6e58f487d5f4a..1ce75f5aac877 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -407,6 +407,7 @@ Methods :toctree: api/ DatetimeIndex.mean + DatetimeIndex.std TimedeltaIndex ...
`DatetimeIndex.std` is missing a doc-string. Add doc-string to `DatetimeArray.std` as `DatetimeIndex` is re-using `DatetimeArray.std`. There are a few more keywords, but they seem to be not implemented (numpy-compatiblity?) ```py pd.DatetimeIndex([1, 2]).std(out=[]) ValueError: the 'out' parameter is not supp...
https://api.github.com/repos/pandas-dev/pandas/pulls/44020
2021-10-13T22:44:08Z
2021-10-18T19:54:31Z
2021-10-18T19:54:31Z
2022-04-01T01:36:48Z
BUG: RangeIndex.union
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..d17329902f343 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -548,6 +548,7 @@ Styler Other ^^^^^ - Bug in :meth:`CustomBusinessMonthBegin.__add__` (:meth:`CustomBusinessMonthEnd.__ad...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44019
2021-10-13T22:12:03Z
2021-10-16T15:39:08Z
2021-10-16T15:39:08Z
2021-10-16T16:10:04Z
DOC: Upload cheatsheets to site
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8f5f0385732f..20f7712131ba4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,7 +137,7 @@ jobs: if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}} - name: Upload web - run: rsync ...
- [x] closes #40949 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry I went ahead and modified the `.github/workflows/ci.yml` so that the cheatsheets ar...
https://api.github.com/repos/pandas-dev/pandas/pulls/44018
2021-10-13T17:24:19Z
2021-10-18T15:16:36Z
2021-10-18T15:16:36Z
2021-10-28T16:36:12Z
Backport PR #44012 on branch 1.3.x (DOC: minor fixup of 1.3.4 release notes)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 6f07dc3e1e2f9..7fa24ab6225df 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,13 +15,13 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`.Gr...
Backport PR #44012: DOC: minor fixup of 1.3.4 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/44016
2021-10-13T15:30:23Z
2021-10-13T18:03:49Z
2021-10-13T18:03:49Z
2021-10-13T18:03:49Z
DOC: minor fixup of 1.3.4 release notes
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 963aaa7f9189f..9c9aacc4b0f52 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,13 +15,13 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`.Gr...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44012
2021-10-13T11:52:55Z
2021-10-13T15:29:56Z
2021-10-13T15:29:55Z
2021-10-13T16:22:01Z
DOC: Added DataFrame in Parameters & Return description in the docstring
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 8b37026e16171..21357f37853d9 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -692,7 +692,8 @@ def to_datetime( Parameters ---------- arg : int, float, str, datetime, list, tuple, 1-d arr...
- [x] closes #41676 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Hello! I have added the following information to the source code (docstring of to_...
https://api.github.com/repos/pandas-dev/pandas/pulls/44007
2021-10-13T04:18:04Z
2021-10-17T20:55:07Z
2021-10-17T20:55:07Z
2021-10-18T15:57:24Z
CLN: pragma no cover, post-array_ufunc
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 82f9280870d59..4570957c01016 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1428,13 +1428,13 @@ def diff_2d( # see https://github.com/cython/cython/issues/2646 if (out_t is float32_t and not (diff_t is float...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44006
2021-10-13T04:01:56Z
2021-10-15T13:52:08Z
2021-10-15T13:52:08Z
2022-01-18T16:00:19Z
TST: Adding test to test_numeric, #37348
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 2e4551a449267..9932adccdbaf2 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -1429,3 +1429,16 @@ def test_sub_multiindex_swapped_levels(): result = df - df2 ...
- [x] closes #37348 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them This makes sure that comparing int to empty strings doesn't return an error.
https://api.github.com/repos/pandas-dev/pandas/pulls/44005
2021-10-13T01:12:19Z
2021-10-16T14:46:41Z
2021-10-16T14:46:40Z
2021-10-16T14:46:44Z
REF: de-duplicate MaskedArray tests
diff --git a/pandas/tests/arrays/boolean/test_comparison.py b/pandas/tests/arrays/boolean/test_comparison.py index 726b78fbd43bd..8730837b518e5 100644 --- a/pandas/tests/arrays/boolean/test_comparison.py +++ b/pandas/tests/arrays/boolean/test_comparison.py @@ -4,7 +4,7 @@ import pandas as pd import pandas._testing as...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44004
2021-10-12T23:01:21Z
2021-10-13T17:47:54Z
2021-10-13T17:47:54Z
2021-10-13T20:02:33Z
[BUG] Fix DataFrameGroupBy.boxplot with subplots=False fails for object columns
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 026429dabae84..63c18374b9154 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -542,7 +542,7 @@ Period Plotting ^^^^^^^^ -- +- When given non-numeric data, :meth:`DataFrame.boxplot` now raises a ``Va...
- [x] closes #43480 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44003
2021-10-12T22:25:43Z
2021-11-14T03:08:55Z
2021-11-14T03:08:55Z
2021-11-14T03:08:59Z
BUG: Fix for rolling with uneven nanosecond windows have wrong results
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..e47eaa94eb412 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -506,6 +506,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.apply` with time-based :class:`Grouper` objects incorrect...
- [x] closes #43997 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43998
2021-10-12T15:44:50Z
2021-10-15T00:59:21Z
2021-10-15T00:59:21Z
2021-10-15T00:59:28Z
MAINT: Correct small cast issues on Windows
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index e7f889ef39707..ec89e52e2eff7 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -543,7 +543,7 @@ def has_infs(floating[:] arr) -> bool: def maybe_indices_to_slice(ndarray[intp_t, ndim=1] indices, int max_len): cdef: Py_ssize_t i,...
Use correct types to avoid downcasts on Windows - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43995
2021-10-12T09:40:05Z
2021-10-12T22:19:37Z
2021-10-12T22:19:37Z
2021-10-12T22:19:37Z
REF: share more ExtensionIndex methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a6360454cc02c..f6bb8e7af3558 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -356,6 +356,7 @@ def _outer_indexer( _typ: str = "index" _data: ExtensionArray | np.ndarray + _data_cls: type[np.ndarray]...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43992
2021-10-12T04:54:51Z
2021-10-12T19:31:54Z
2021-10-12T19:31:54Z
2021-10-12T19:44:58Z
CLN: use numpy quantile in qcut
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 77cd73fdfe91b..10a5932731e3b 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1117,89 +1117,6 @@ def checked_add_with_arr( return arr + b -def quantile(x, q, interpolation_method="fraction"): - """ - Comput...
The quantile function in algos is a partial implementation of the numpy quantile and there are no pandas objects involved.
https://api.github.com/repos/pandas-dev/pandas/pulls/43991
2021-10-12T04:18:47Z
2021-10-12T19:27:24Z
2021-10-12T19:27:24Z
2021-10-12T19:31:13Z
TST: pass exact to assert_index_equal
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index fc7e36dda4619..c9f7fd43c1050 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -33,6 +33,7 @@ IntervalIndex, MultiIndex, PeriodIndex, + RangeIndex, Series, TimedeltaIndex, ) @@ -552,...
After this we're close to being able to change the default from "equiv" to True (not that we would since that would be an API change)
https://api.github.com/repos/pandas-dev/pandas/pulls/43989
2021-10-12T01:50:11Z
2021-10-12T19:26:51Z
2021-10-12T19:26:50Z
2021-10-12T19:31:54Z
PERF: RangeIndex.insert
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index d219361dbdd57..90649ad2dcbc1 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -713,6 +713,20 @@ def symmetric_difference(self, other, result_name: Hashable = None, sort=None): # -------------------------...
``` index = pd.Index(range(2)) %timeit index.insert(2, 2) 48.4 µs ± 2.03 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 2.54 µs ± 70.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43988
2021-10-11T23:50:46Z
2021-10-12T19:32:17Z
2021-10-12T19:32:17Z
2021-10-12T19:45:16Z
REF: extract params used in DataFrame.__repr__
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 76a00071c8adc..9ce8a19b98857 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -994,24 +994,8 @@ def __repr__(self) -> str: self.info(buf=buf) return buf.getvalue() - max_rows = get_option("display.max_rows")...
`DataFrame.__repr__` used different parameters than `DataFrame.to_string` and I've got a case where I want to use the `__repr__` ones, but with a change to one of the parameters. This refactoring makes it possible to extract those parameters so we can do: ```python >>> params = pd.io.formats.format.get_frame_repr_p...
https://api.github.com/repos/pandas-dev/pandas/pulls/43987
2021-10-11T22:58:31Z
2021-10-14T23:33:23Z
2021-10-14T23:33:23Z
2021-10-16T13:12:03Z
BUG: Fix `skipna` default value in method signatures
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b235f120d98c8..0e86a544f3435 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10387,15 +10387,13 @@ def _stat_function_ddof( name: str, func, axis=None, - skipna=None, + skipna=True, ...
Set `skipna` default values to `True` so that the value matches the purpose of the variable and its docstring. - [X] closes #34063 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43980
2021-10-11T21:09:30Z
2021-10-16T17:28:54Z
2021-10-16T17:28:54Z
2021-10-16T17:30:01Z
TYP: misc
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index bff7d117c97da..6dd1c7c9fb209 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -1,4 +1,5 @@ -# Note: this covers algos.pyx and algos_common_helper but NOT algos_take_helper +from __future__ import annotations + from typing import Any ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43977
2021-10-11T19:20:20Z
2021-10-14T23:21:06Z
2021-10-14T23:21:06Z
2021-10-14T23:45:48Z
DOC: bug in user guide after new method
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 67cf07a718877..1c83b0d3d048b 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1288,7 +1288,7 @@ "outputs": [], "source": [ "df2.style.format('{:.3f}', na_rep=\"\")\\\n", - "...
just updating something that I missed on previous pr when arg name was changed.
https://api.github.com/repos/pandas-dev/pandas/pulls/43976
2021-10-11T16:11:30Z
2021-10-14T17:07:13Z
2021-10-14T17:07:13Z
2021-10-15T16:48:20Z
STYLE ban np.testing
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e99fda786ee68..2c76b682ee343 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -135,6 +135,12 @@ repos: entry: 'np\.random\.seed' files: ^asv_bench/benchmarks exclude: ^asv_bench/benchmarks/pandas_vb_comm...
xref https://github.com/pandas-dev/pandas/pull/43674#discussion_r720831806 There used to be a linting rule for this, but I missed it when moving linting rules over to `pandas-dev-flaker` in https://github.com/pandas-dev/pandas/pull/40906 - sorry about that, I thought I'd checked that everything had been preserved ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43971
2021-10-11T13:58:02Z
2021-10-11T22:29:40Z
2021-10-11T22:29:40Z
2021-10-11T22:29:44Z
FIX BUG: Timestamp __add__/__sub__ DateOffset with nanoseconds lost.
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f50442eb7ca46..d6d3127e67945 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -626,6 +626,7 @@ Datetimelike - Bug in adding a ``np.timedelta64`` object to a :class:`BusinessDay` or :class:`CustomBusine...
- [x] closes #43892 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43968
2021-10-11T13:23:29Z
2021-12-17T22:41:30Z
2021-12-17T22:41:29Z
2021-12-18T07:47:52Z
Example for pandas.DataFrame.to_period docs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 76a00071c8adc..5df90eda378ee 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10503,6 +10503,28 @@ def to_period( Returns ------- DataFrame with PeriodIndex + + Examples + -------- + >>> idx = ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Doc improvement - added the example section for pandas.DataFrame.to_period
https://api.github.com/repos/pandas-dev/pandas/pulls/43967
2021-10-11T10:49:49Z
2021-10-14T22:40:42Z
2021-10-14T22:40:42Z
2021-10-14T22:41:02Z
DOC: Fix Series nlargest and nsmallest doc strings (#43964)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 76a00071c8adc..b266702f9a6d3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6597,7 +6597,7 @@ def nlargest(self, n, columns, keep: str = "first") -> DataFrame: - `first` : prioritize the first occurrence(s) - `las...
- [x] closes #43937 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Cancel nlargest and nsmallest's doc list item text bold effect, detail could see below. From ![Clip...
https://api.github.com/repos/pandas-dev/pandas/pulls/43964
2021-10-11T02:59:44Z
2021-10-12T22:28:00Z
2021-10-12T22:28:00Z
2021-10-15T02:02:53Z
Test that using a `tuple` or `list` for parameter `ascending` of `sort_index` is the same
diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py index e0f3286ec1f2f..c1141f705acbc 100644 --- a/pandas/tests/frame/methods/test_sort_index.py +++ b/pandas/tests/frame/methods/test_sort_index.py @@ -785,6 +785,48 @@ def test_sort_index_use_inf_as_na(self): ...
- [x] closes #43884 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry I could not find a suitable place to add a `whatsnew` entry, if there is one I will ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43963
2021-10-10T22:17:27Z
2021-10-16T14:35:19Z
2021-10-16T14:35:19Z
2021-10-16T14:35:23Z
BUG: RangeIndex arithmetic result.name
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4914d213accac..32f99c7852cca 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -411,6 +411,7 @@ Numeric - Bug in :meth:`DataFrame.rank` treating missing values and extreme values as equal (for example `...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43962
2021-10-10T21:48:33Z
2021-10-11T22:06:08Z
2021-10-11T22:06:08Z
2021-10-11T22:21:06Z
ENH: Update isin docs with examples of ~ operator usage (#43959)
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 584dd0f52ae28..e41f938170417 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -997,6 +997,15 @@ a list of items you want to check for. df.isin(values) +To return the DataFrame of...
- [x] closes #43959 Updated relevant docs to show usage of ~ to emulate `notin` operation.
https://api.github.com/repos/pandas-dev/pandas/pulls/43961
2021-10-10T21:42:10Z
2021-10-12T22:20:29Z
2021-10-12T22:20:29Z
2021-10-12T22:20:33Z
TYP/CLN: mostly in io/html.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d360c450194f1..c29a67c4942db 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -22,7 +22,6 @@ IO, TYPE_CHECKING, Any, - AnyStr, Callable, Hashable, Iterable, @@ -2598,7 +2597,7 @@ def to_stata( writer....
and in io/feather_format.py
https://api.github.com/repos/pandas-dev/pandas/pulls/43958
2021-10-10T17:38:21Z
2021-10-17T21:50:06Z
2021-10-17T21:50:05Z
2021-10-17T21:50:10Z
DOC: cancel replace's doc list item text bold effect
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index a3fa24c7ee1e0..7d89f2e8b7789 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -414,51 +414,51 @@ * numeric, str or regex: - numeric: numeric values equal to `to_replace` will be - ...
- [x] closes #43937 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Cancel replace's doc list item text bold effect, detail could see below. From ![image](https://use...
https://api.github.com/repos/pandas-dev/pandas/pulls/43955
2021-10-10T10:17:20Z
2021-10-10T18:12:43Z
2021-10-10T18:12:42Z
2021-10-10T18:12:46Z
PERF: Index.insert
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c002832cd89bb..d7a8a2e3d5f87 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6330,13 +6330,24 @@ def insert(self, loc: int, item) -> Index: dtype = self._find_common_type_compat(item) re...
``` import pandas as pd idx = pd.Index([4, 5, 6]) %timeit idx.insert(1, 19) 26.7 µs ± 299 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 15.5 µs ± 185 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43953
2021-10-10T04:03:53Z
2021-10-10T21:41:14Z
2021-10-10T21:41:14Z
2021-10-10T21:51:37Z
REF: share RangeIndex methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index da953fe46ef1d..1c1bc356ef816 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1027,7 +1027,8 @@ def take( taken = algos.take( self._values, indices, allow_fill=allow_fill, fill_value=self._na...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43952
2021-10-10T03:42:18Z
2021-10-10T17:20:56Z
2021-10-10T17:20:56Z
2021-10-10T18:04:09Z
TYP: Use Protocols for file-like objects in read/to_*
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index c7113e663789b..437e75be0e55b 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -10,7 +10,10 @@ ) import zipfile -from pandas._typing import FilePathOrBuffer +from pandas._typing import ( + FilePath, + ReadPickleBuffer, +) fr...
Fixes #41610, rebased on top of #43855. This PR does a few things: 1. break `FilePathOrBuffer` apart to not mix basic types and generics 2. use protocols instead of union of specific classes 3. define many fine-grained protocols for the to/read methods/functions I tested that the protocols are sufficient (ne...
https://api.github.com/repos/pandas-dev/pandas/pulls/43951
2021-10-10T02:23:24Z
2021-11-17T02:11:38Z
2021-11-17T02:11:38Z
2021-11-24T23:02:11Z
CLN: Lint for comprehension codes
diff --git a/ci/lint.sh b/ci/lint.sh index ba5334310c34a..c7ea92e6a67e6 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -20,14 +20,14 @@ if [ "$LINT" ]; then # pandas/_libs/src is C code, so no need to search there. echo "Linting *.py" - flake8 pandas --filename=*.py --exclude pandas/_libs/src --ignore=C406,...
xref #22122 Applying the lint comprehension codes that seem to be fully clean in specified paths in `lint.sh`
https://api.github.com/repos/pandas-dev/pandas/pulls/22455
2018-08-22T06:06:51Z
2018-08-22T10:05:14Z
2018-08-22T10:05:14Z
2018-08-22T15:59:24Z
use fused types for reshape
diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx index 8d7e314517ed8..9f4e67ca4e256 100644 --- a/pandas/_libs/reshape.pyx +++ b/pandas/_libs/reshape.pyx @@ -1,15 +1,95 @@ # -*- coding: utf-8 -*- -cimport cython -from cython cimport Py_ssize_t +import cython +from cython import Py_ssize_t -import nu...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22454
2018-08-21T23:40:56Z
2018-09-18T12:43:14Z
2018-09-18T12:43:14Z
2018-09-18T13:51:39Z
use fused types for parts of algos_common_helper
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 415e7026e09c8..d2914dc8ac751 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -353,6 +353,523 @@ def nancorr_spearman(ndarray[float64_t, ndim=2] mat, Py_ssize_t minp=1): return result +# --------------------------------------...
Broken off of #22432, which was a proof of concept.
https://api.github.com/repos/pandas-dev/pandas/pulls/22452
2018-08-21T22:02:35Z
2018-09-18T12:45:00Z
2018-09-18T12:45:00Z
2019-04-30T06:24:01Z
BUG fix IntegerArray.astype int -> uint
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d7feb6e547b22..7f19bf9cfb5ea 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -42,7 +42,7 @@ Pandas has gained the ability to hold integer dtypes with missing values. This l Here is an example of t...
Closes https://github.com/pandas-dev/pandas/issues/22440
https://api.github.com/repos/pandas-dev/pandas/pulls/22441
2018-08-21T14:35:47Z
2018-08-22T10:08:24Z
2018-08-22T10:08:24Z
2018-08-22T10:19:18Z
BUG #19860 Corrected use of mixed indexes with .at
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3e22084d98234..e70f3f0f6164b 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -663,6 +663,7 @@ Indexing - Fixed ``DataFrame[np.nan]`` when columns are non-unique (:issue:`21428`) - Bug when indexi...
`.at` incorrectly disallowed the use of integer indexes when a mixed index was used ``` s = Series([1,2,3,4,5],index=['a','b','c',1,2]) s.at['a'] # returns 1 s.at[1] # returns 4 s.at[4] # raises KeyError, doesn't do fallback indexing ``` Made sure fallback indexing doesn't happen on mixed indexes - [X] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22436
2018-08-21T06:54:14Z
2018-08-29T12:49:03Z
2018-08-29T12:49:03Z
2018-09-10T05:48:38Z
Pin blosc to 1.14.3 for travis-27 build
diff --git a/ci/travis-27.yaml b/ci/travis-27.yaml index 3e94f334174e6..9c0347de9adfb 100644 --- a/ci/travis-27.yaml +++ b/ci/travis-27.yaml @@ -29,6 +29,7 @@ dependencies: - PyCrypto - pymysql=0.6.3 - pytables + - blosc=1.14.3 - python-blosc - python-dateutil=2.5.0 - python=2.7* diff --git a/pandas/...
This reverts commit 52e186af3e0fed9415a2db9e0c8d7d75d1267a54. xref https://github.com/pandas-dev/pandas/issues/22427 and https://github.com/pandas-dev/pandas/pull/22424
https://api.github.com/repos/pandas-dev/pandas/pulls/22429
2018-08-20T13:09:47Z
2018-08-20T18:20:29Z
2018-08-20T18:20:29Z
2018-08-20T18:20:32Z
Backport PR #22424 on branch 0.23.x
diff --git a/ci/travis-36-doc.yaml b/ci/travis-36-doc.yaml index c22dddbe0ba3f..8705b82412e7c 100644 --- a/ci/travis-36-doc.yaml +++ b/ci/travis-36-doc.yaml @@ -36,6 +36,7 @@ dependencies: - sphinx - sqlalchemy - statsmodels + - tzlocal - xarray - xlrd - xlsxwriter
Backport PR #22424: CI: add missing tzlocal dependency (rpy2, doc build)
https://api.github.com/repos/pandas-dev/pandas/pulls/22425
2018-08-20T05:59:23Z
2018-08-20T11:04:29Z
2018-08-20T11:04:29Z
2018-08-20T11:04:29Z
CI: add missing tzlocal dependency (rpy2, doc build)
diff --git a/ci/travis-36-doc.yaml b/ci/travis-36-doc.yaml index 153a81197a6c7..abb0426dbe08e 100644 --- a/ci/travis-36-doc.yaml +++ b/ci/travis-36-doc.yaml @@ -36,6 +36,7 @@ dependencies: - sphinx - sqlalchemy - statsmodels + - tzlocal - xarray - xlrd - xlsxwriter
- [x] closes #22412 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22424
2018-08-19T22:27:36Z
2018-08-20T05:58:42Z
2018-08-20T05:58:42Z
2018-08-20T05:58:53Z