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
ENH: Styler css Str optional input arguments as well as List[Tuple]
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 114b4688fffaf..1058a270a76ba 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -180,8 +180,7 @@ "\n", "styles = [\n", " hover(),\n", - " {'selector': \"th\", 'props': ...
- [x] closes #39563 - [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/39564
2021-02-02T20:13:16Z
2021-02-05T14:57:51Z
2021-02-05T14:57:51Z
2021-02-05T20:07:59Z
STYLE use absolute imports
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0940ce8be992..e7b815766a04f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -195,3 +195,8 @@ repos: rev: v0.1.6 hooks: - id: no-string-hints +- repo: https://github.com/MarcoGorelli/abs-imports + rev: v0.1....
- [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 The code style guide reads > > Imports (aim for absolute) > ========================== > > In Python 3, absolute imports are recommended. Using absolute...
https://api.github.com/repos/pandas-dev/pandas/pulls/39561
2021-02-02T18:21:27Z
2021-02-03T13:48:01Z
2021-02-03T13:48:01Z
2021-02-17T16:33:46Z
REF: move replace code out of Blocks
diff --git a/pandas/core/array_algos/replace.py b/pandas/core/array_algos/replace.py index 1cac825cc0898..d0565dfff0eb1 100644 --- a/pandas/core/array_algos/replace.py +++ b/pandas/core/array_algos/replace.py @@ -3,7 +3,7 @@ """ import operator import re -from typing import Optional, Pattern, Union +from typing impo...
https://api.github.com/repos/pandas-dev/pandas/pulls/39559
2021-02-02T15:24:15Z
2021-02-02T19:13:00Z
2021-02-02T19:13:00Z
2021-02-02T19:22:16Z
Added an example for infer_freq
diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py index c5b875b8f027e..ea60bc7f91a36 100644 --- a/pandas/tseries/frequencies.py +++ b/pandas/tseries/frequencies.py @@ -145,6 +145,12 @@ def infer_freq(index, warn: bool = True) -> Optional[str]: If the index is not datetime-like. Va...
Added an example for infer_freq function. The initial index is built using a fixed number of periods to avoid encoding frequency in this index explicitly.
https://api.github.com/repos/pandas-dev/pandas/pulls/39558
2021-02-02T14:48:00Z
2021-03-30T21:18:08Z
2021-03-30T21:18:08Z
2021-03-31T08:33:10Z
Fixed comment for pandas.unique
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 58384405a5cab..51eeabc14c4c9 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -321,7 +321,8 @@ def unique(values): Hash table-based unique. Uniques are returned in order of appearance. This does NOT sort. - ...
Timed pd.unique vs np.unique with 1_000 and 100_000 sequences lengths. In first case np.unique was faster, whereas in the second case pd.unique won. Hence, I propose to make the doc a bit more accurate. ![image](https://user-images.githubusercontent.com/1339818/106612351-519ac100-6569-11eb-9388-1acfc39ef3a1.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/39557
2021-02-02T14:15:10Z
2021-02-03T03:26:56Z
2021-02-03T03:26:56Z
2021-02-07T18:15:57Z
Backport PR #39492: DOC: Document how encoding errors are handled
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index d99abbea90a51..8ad86fd0a0dce 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -325,6 +325,11 @@ Encoding to use for UTF when reading/writing (ex. 'utf-8'). `List of Python standard encodings <https://docs.python.org/3/library/c...
Backport PR #39492
https://api.github.com/repos/pandas-dev/pandas/pulls/39552
2021-02-02T10:06:45Z
2021-02-02T10:57:43Z
2021-02-02T10:57:42Z
2021-02-02T10:57:48Z
CI: numpy deprecation warnings
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 3214b21133b72..b457bce8fe138 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -108,8 +108,8 @@ def setup(self): self.vals_short = np.arange(2).astype(object) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39551
2021-02-02T03:47:50Z
2021-02-02T13:33:35Z
2021-02-02T13:33:35Z
2021-02-07T12:33:51Z
Backport PR #39546 on branch 1.2.x (CI/TST: update exception message, xfail)
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index a9d93f473e0e1..2ef9e4a028793 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1286,16 +1286,18 @@ def _format_native_types(self, na_rep="nan", **kwargs): # go through the levels and format them ...
Backport PR #39546: CI/TST: update exception message, xfail
https://api.github.com/repos/pandas-dev/pandas/pulls/39549
2021-02-01T23:41:05Z
2021-02-02T00:54:32Z
2021-02-02T00:54:32Z
2021-02-02T00:54:32Z
BUG: read_excel with openpyxl produces trailing rows of nan
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 60683030dca15..6e9e14989ce02 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -36,6 +36,7 @@ Bug fixes - :func:`pandas.read_excel` error message when a specified ``sheetname`` does not exist is now u...
- [x] closes #39181 - [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 on top of #39486
https://api.github.com/repos/pandas-dev/pandas/pulls/39547
2021-02-01T22:43:57Z
2021-02-08T15:14:25Z
2021-02-08T15:14:25Z
2021-02-08T16:37:47Z
CI/TST: update exception message, xfail
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 0d30c1665df34..46dbcdaab42b0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1282,16 +1282,18 @@ def _format_native_types(self, na_rep="nan", **kwargs): # go through the levels and format them ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39546
2021-02-01T21:19:53Z
2021-02-01T23:40:37Z
2021-02-01T23:40:37Z
2021-02-02T00:02:27Z
Backport PR #39544 on branch 1.2.x (CI: pin numpy<1.20)
diff --git a/ci/deps/actions-37-locale.yaml b/ci/deps/actions-37-locale.yaml index b18ce37d05ca0..551308f1d5fac 100644 --- a/ci/deps/actions-37-locale.yaml +++ b/ci/deps/actions-37-locale.yaml @@ -11,7 +11,7 @@ dependencies: - hypothesis>=3.58.0 # required - - numpy + - numpy<1.20 # GH#39541 compat for pyarr...
Backport PR #39544: CI: pin numpy<1.20
https://api.github.com/repos/pandas-dev/pandas/pulls/39545
2021-02-01T21:07:06Z
2021-02-01T21:55:26Z
2021-02-01T21:55:26Z
2021-02-01T21:55:26Z
CI: pin numpy<1.20
diff --git a/ci/deps/actions-37-locale.yaml b/ci/deps/actions-37-locale.yaml index b18ce37d05ca0..551308f1d5fac 100644 --- a/ci/deps/actions-37-locale.yaml +++ b/ci/deps/actions-37-locale.yaml @@ -11,7 +11,7 @@ dependencies: - hypothesis>=3.58.0 # required - - numpy + - numpy<1.20 # GH#39541 compat for pyarr...
- [x] closes #39541 - [ ] 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/39544
2021-02-01T19:18:01Z
2021-02-01T21:06:45Z
2021-02-01T21:06:45Z
2021-02-01T21:07:59Z
TYP: blocks
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index eb8bb0fe90e9a..77f4263214529 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -239,7 +239,7 @@ def array_values(self) -> ExtensionArray: """ return PandasArray(self.values) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39543
2021-02-01T19:13:21Z
2021-02-01T23:46:09Z
2021-02-01T23:46:09Z
2021-02-02T08:52:01Z
Backport PR #39534 on branch 1.2.x (CI: numpy warnings produced by pytables)
diff --git a/pandas/tests/io/pytables/__init__.py b/pandas/tests/io/pytables/__init__.py index fb4b317a5e977..d3735f8863c3b 100644 --- a/pandas/tests/io/pytables/__init__.py +++ b/pandas/tests/io/pytables/__init__.py @@ -6,4 +6,7 @@ "ignore:a closed node found in the registry:UserWarning" ), pytest.m...
Backport PR #39534: CI: numpy warnings produced by pytables
https://api.github.com/repos/pandas-dev/pandas/pulls/39540
2021-02-01T19:06:12Z
2021-02-01T21:32:30Z
2021-02-01T21:32:30Z
2021-02-01T21:32:30Z
CI: Upgrade 'pyupgrade' (v2.7.4 --> v2.9.0)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 677aa9100015f..0fc6e61049a44 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,10 +24,10 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.7.4 + rev: v2.9.0 hooks: ...
- [x] closes #39523 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry ------ This PR upgrades `pyupgrade` and also includes style/formatting changes required af...
https://api.github.com/repos/pandas-dev/pandas/pulls/39538
2021-02-01T17:55:27Z
2021-02-03T18:08:05Z
2021-02-03T18:08:05Z
2021-02-03T18:26:21Z
Backport PR #39482: ERR: Unify error message for bad excel sheetnames
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index c5825d0881515..2759b243c2a5a 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -27,7 +27,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- :func:`pandas.read_excel` error message when a specified ``sh...
Backport PR #39482
https://api.github.com/repos/pandas-dev/pandas/pulls/39536
2021-02-01T16:09:21Z
2021-02-01T17:49:19Z
2021-02-01T17:49:19Z
2021-02-01T17:49:24Z
Backport PR #39355: BUG: read_excel failing to check older xlrd versions properly
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index c5825d0881515..51535501f5c1b 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -14,6 +14,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ + +- Fixed regression in :func:`r...
Backport PR #39355
https://api.github.com/repos/pandas-dev/pandas/pulls/39535
2021-02-01T15:48:58Z
2021-02-01T16:56:23Z
2021-02-01T16:56:23Z
2021-02-01T16:56:28Z
CI: numpy warnings produced by pytables
diff --git a/pandas/tests/io/pytables/__init__.py b/pandas/tests/io/pytables/__init__.py index fb4b317a5e977..d3735f8863c3b 100644 --- a/pandas/tests/io/pytables/__init__.py +++ b/pandas/tests/io/pytables/__init__.py @@ -6,4 +6,7 @@ "ignore:a closed node found in the registry:UserWarning" ), pytest.m...
https://api.github.com/repos/pandas-dev/pandas/pulls/39534
2021-02-01T15:43:58Z
2021-02-01T19:05:20Z
2021-02-01T19:05:20Z
2021-02-01T19:07:06Z
Backport PR #39494: CI: update for numpy 1.20
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 68f12a939e061..11726bc5e31c8 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -7,7 +7,6 @@ import numpy as np import pytest -from pandas.compat.numpy import is_numpy_dev import pandas.u...
Backport PR #39494
https://api.github.com/repos/pandas-dev/pandas/pulls/39532
2021-02-01T15:18:17Z
2021-02-01T16:10:59Z
2021-02-01T16:10:59Z
2021-02-01T16:11:03Z
Backport PR #39512 on branch 1.2.x (CLN: Fix userguide deprecation warning new numpy)
diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 42621c032416d..b474989f43731 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -199,8 +199,8 @@ in Python, so maybe we could minimize these by cythonizing the apply pa...
Backport PR #39512: CLN: Fix userguide deprecation warning new numpy
https://api.github.com/repos/pandas-dev/pandas/pulls/39530
2021-02-01T13:42:41Z
2021-02-01T14:49:28Z
2021-02-01T14:49:28Z
2021-02-01T14:49:28Z
Backport PR #39526 on branch 1.2.x (CI: pin numpy for CI / Checks github action)
diff --git a/environment.yml b/environment.yml index 6f3f81d8a4d77..71d7e47894f9d 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: # required - - numpy>=1.16.5 + - numpy>=1.16.5, <1.20 # gh-39513 - python=3 - python-dateutil>=2.7.3 - pytz diff --...
Backport PR #39526: CI: pin numpy for CI / Checks github action
https://api.github.com/repos/pandas-dev/pandas/pulls/39529
2021-02-01T13:39:58Z
2021-02-01T14:48:39Z
2021-02-01T14:48:38Z
2021-02-01T14:48:39Z
CI: pin numpy for CI / Checks github action
diff --git a/environment.yml b/environment.yml index cac705bff72ea..1224336dadda4 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: # required - - numpy>=1.16.5 + - numpy>=1.16.5, <1.20 # gh-39513 - python=3 - python-dateutil>=2.7.3 - pytz diff --...
failures with numpy 1.20 https://github.com/pandas-dev/pandas/pull/39517/checks?check_run_id=1803471267 xref #39513 and https://github.com/pandas-dev/pandas/pull/38379#discussion_r567753143 conda-forge should pick up 1.19.5 with these changes.
https://api.github.com/repos/pandas-dev/pandas/pulls/39526
2021-02-01T11:49:21Z
2021-02-01T13:39:11Z
2021-02-01T13:39:11Z
2021-02-01T13:48:52Z
STYLE Upgrade no-string-hints
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0940ce8be992..5f12d89862f7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -192,6 +192,6 @@ repos: files: ^pandas/ exclude: ^pandas/tests/ - repo: https://github.com/MarcoGorelli/no-string-hints - rev: v...
Precursor to #39501, in which the previous version of `no-string-hints` was removing the string literals even for `Literal["foo"]`
https://api.github.com/repos/pandas-dev/pandas/pulls/39524
2021-02-01T10:30:38Z
2021-02-03T13:05:41Z
2021-02-03T13:05:41Z
2021-02-03T13:14:26Z
CLN: remove unnecessary name in stack_arrays
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index f1cf1aa9a72cb..c352fa39627d9 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1698,7 +1698,7 @@ def construction_error(tot_items, block_shape, axes, e=None): # ----------------------------...
- [ ] 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/39517
2021-02-01T02:09:44Z
2021-02-02T13:35:29Z
2021-02-02T13:35:29Z
2021-02-02T15:10:15Z
ENH: Add I/O support of XML with pandas.read_xml and DataFrame.to_xml…
https://github.com/pandas-dev/pandas/pull/39516.diff
… (GH27554) - [X] closes #27554 - [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 - [X] io entry - [X] install entry To Do List - [ ] Add `parse_dates` f...
https://api.github.com/repos/pandas-dev/pandas/pulls/39516
2021-02-01T01:04:20Z
2021-02-27T18:15:01Z
2021-02-27T18:15:01Z
2021-02-27T19:00:33Z
CLN: Fix userguide deprecation warning new numpy
diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 49bb923dbec39..aa9a1ba6d6bf0 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -199,8 +199,8 @@ in Python, so maybe we could minimize these by cythonizing the apply pa...
This should get the ipython directives passing
https://api.github.com/repos/pandas-dev/pandas/pulls/39512
2021-01-31T21:37:48Z
2021-02-01T13:42:29Z
2021-02-01T13:42:29Z
2021-02-02T21:14:21Z
API: consistent default dropna for value_counts
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 9f5827eabee52..12de9b121ef6d 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -84,8 +84,8 @@ class ToCSVIndexes(BaseIO): def _create_df(rows, cols): index_cols = { "index1": n...
Also hopefully fixes some docbuild issues
https://api.github.com/repos/pandas-dev/pandas/pulls/39511
2021-01-31T21:08:27Z
2021-02-03T01:30:50Z
2021-02-03T01:30:50Z
2021-02-03T02:08:56Z
REF/API: DataFrame.__setitem__ never operate in-place
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index fad734a0e39ad..272d9f8399d81 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -225,6 +225,41 @@ In pandas 1.3.0, ``df`` continues to share data with ``values`` np.shares_memory(df["A"], values) ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/issues/38896#issuecomment-761620727
https://api.github.com/repos/pandas-dev/pandas/pulls/39510
2021-01-31T20:29:53Z
2021-03-16T16:56:07Z
2021-03-16T16:56:07Z
2021-06-30T14:46:15Z
TST: fix td64 arithmetic xfails
diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index c4afe971d533e..740ec3be4a1c6 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -31,14 +31,23 @@ def assert_dtype(obj, expected_dtype): """ He...
https://api.github.com/repos/pandas-dev/pandas/pulls/39508
2021-01-31T20:19:34Z
2021-02-01T23:44:30Z
2021-02-01T23:44:30Z
2021-02-01T23:49:59Z
BUG: DataFrame.stack not handling NaN in MultiIndex columns correct
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 6abe70e56b9b9..b946e4e93d7f4 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -413,6 +413,7 @@ Reshaping - :meth:`merge_asof` raises ``ValueError`` instead of cryptic ``TypeError`` in case of non-numer...
- [x] closes #39481 - [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/39507
2021-01-31T20:14:27Z
2021-02-04T01:52:52Z
2021-02-04T01:52:52Z
2021-02-04T23:12:37Z
Remove repeated keywords (#39503)
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index a6d71cadddd64..e9c77fb12d3ff 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -557,8 +557,6 @@ def _parsed_string_to_bounds(self, reso: Resolution, parsed: datetime): "hour", ...
- [x] closes #39503 - [ ] 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/39506
2021-01-31T20:09:12Z
2021-01-31T21:15:47Z
2021-01-31T21:15:46Z
2021-01-31T21:15:47Z
CI: Run pre-commit gh action on only changed files
diff --git a/.github/workflows/comment_bot.yml b/.github/workflows/comment_bot.yml index 98b8e10f66f6c..dc396be753269 100644 --- a/.github/workflows/comment_bot.yml +++ b/.github/workflows/comment_bot.yml @@ -29,7 +29,7 @@ jobs: - name: Install-pre-commit run: python -m pip install --upgrade pre-commit ...
- [x] closes #38862 - [ ] 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 ----- Since pre-commit in comment-bot runs on all files, it's a bit slow. Running it only...
https://api.github.com/repos/pandas-dev/pandas/pulls/39505
2021-01-31T18:18:56Z
2021-01-31T19:36:22Z
2021-01-31T19:36:22Z
2021-02-01T13:36:32Z
TST: refactor iris_view table creation in SQL test
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index d9747c525771b..99e12ef39c4ee 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -186,12 +186,6 @@ "mysql": "SELECT * FROM iris WHERE `Name` LIKE '%'", "postgresql": "SELECT * FROM iris WHERE \"Name\...
xref #40686
https://api.github.com/repos/pandas-dev/pandas/pulls/43024
2021-08-13T17:58:02Z
2021-08-13T21:16:01Z
2021-08-13T21:16:01Z
2021-08-17T04:20:07Z
PERF: internals.concat
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index 3feefe7ac8ff4..c589985a6d4b1 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -33,6 +33,8 @@ class BlockPlacement: @property def as_array(self) -> np.ndarray: ... @property + def as_slice(self) -> sli...
Nothing big, just a few things found while trying to figure out the slightly-different ArrayManager behavior.
https://api.github.com/repos/pandas-dev/pandas/pulls/43021
2021-08-13T16:58:23Z
2021-08-13T21:16:50Z
2021-08-13T21:16:50Z
2021-08-13T21:48:48Z
Replace str::replace hack for getting module name from ImportError in __init__.py
diff --git a/pandas/__init__.py b/pandas/__init__.py index d8df7a42911ab..82593a932d0dd 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -24,8 +24,7 @@ try: from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib except ImportError as e: # pragma: no cover - # hack but overk...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/43013
2021-08-13T04:00:12Z
2021-08-18T23:49:18Z
2021-08-18T23:49:18Z
2021-08-18T23:49:23Z
PERF: Series.mad
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 72bc489c07aeb..c71c3c3912812 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1714,6 +1714,13 @@ def array_values(self): """The array that Series.array returns""" return s...
``` from asv_bench.benchmarks.stat_ops import * self = SeriesOps() self.setup("mad", "int") %timeit self.time_op("mad", "int") 1.45 ms ± 22.6 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master 474 µs ± 2.77 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43010
2021-08-13T02:06:57Z
2021-08-13T14:34:58Z
2021-08-13T14:34:58Z
2021-08-13T15:24:14Z
POC: use github issue form for usage questions
diff --git a/.github/ISSUE_TEMPLATE/submit_question.md b/.github/ISSUE_TEMPLATE/submit_question.md deleted file mode 100644 index 9b48918ff2f6d..0000000000000 --- a/.github/ISSUE_TEMPLATE/submit_question.md +++ /dev/null @@ -1,24 +0,0 @@ ---- - -name: Submit Question -about: Ask a general question about pandas -title: ...
#42951 has the context - figured the usage question form would be a good starting point as the least crucial issue template, but a common source of issues not being completely filled in. Wasn't sure about the best way to test this out, so I just have a repo https://github.com/mzeitlin11/issue-forms which I'll try to...
https://api.github.com/repos/pandas-dev/pandas/pulls/43009
2021-08-13T01:54:31Z
2021-08-13T14:37:42Z
2021-08-13T14:37:42Z
2021-08-13T14:49:55Z
Backport PR #43005 on branch 1.3.x (CI: Run python dev with numpy python 3.10 wheels)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 3b3bb7b46bf65..94ab2b568b636 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip se...
Backport PR #43005: CI: Run python dev with numpy python 3.10 wheels
https://api.github.com/repos/pandas-dev/pandas/pulls/43007
2021-08-13T00:33:20Z
2021-08-13T14:32:39Z
2021-08-13T14:32:39Z
2021-08-13T14:32:39Z
CI: Run python dev with numpy python 3.10 wheels
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index adeae4c4f09dc..7429155fe5023 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -41,7 +41,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip 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 Just testing the numpy wheels in preparation for making our own.
https://api.github.com/repos/pandas-dev/pandas/pulls/43005
2021-08-12T22:44:17Z
2021-08-13T00:32:55Z
2021-08-13T00:32:54Z
2021-08-13T23:22:34Z
DOC: Update param doc of to_parquet about compression
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 49384cfb2e554..e92afd4e35ca1 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -382,8 +382,12 @@ def to_parquet( ``io.parquet.engine`` is used. The default ``io.parquet.engine`` behavior is to try 'pyarrow', falling back to '...
Users are misled by current `compression` param doc. Actually more compressions like "ZSTD" are supported by pyarrow engine. This patch updates the param doc to reflect the supported compressions.
https://api.github.com/repos/pandas-dev/pandas/pulls/43004
2021-08-12T22:06:26Z
2021-08-17T16:16:42Z
2021-08-17T16:16:42Z
2021-08-17T16:20:41Z
DOC: Fixed all remaining GL02 documentation errors and added appropriate check in CI
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f9860de3b2bb3..7e4b5775af317 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -89,8 +89,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, S...
- Closes #42809 - Adds check for GL02 in CI
https://api.github.com/repos/pandas-dev/pandas/pulls/43003
2021-08-12T21:26:18Z
2021-08-19T01:58:19Z
2021-08-19T01:58:19Z
2021-08-19T01:58:24Z
TST: Fix test related to reverting fastparquet nullable support
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 49384cfb2e554..5671cce1b966d 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -311,7 +311,7 @@ def read( ): parquet_kwargs: dict[str, Any] = {} use_nullable_dtypes = kwargs.pop("use_nullable_dtypes", False) - if ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/42987#discussion_r687209605
https://api.github.com/repos/pandas-dev/pandas/pulls/42999
2021-08-12T18:10:11Z
2021-08-13T21:38:24Z
2021-08-13T21:38:24Z
2021-08-13T23:22:24Z
PERF: DataFrame.insert
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 10fb926ee4d03..75ef8a276da5e 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -366,11 +366,20 @@ class InsertColumns: def setup(self): self.N = 10 ** 3 self.df = DataFrame...
- [ ] 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 ``` from asv_bench.benchmarks.indexing import * self = InsertColumns() self.setup() ...
https://api.github.com/repos/pandas-dev/pandas/pulls/42998
2021-08-12T18:03:26Z
2021-08-19T20:58:50Z
2021-08-19T20:58:50Z
2021-08-19T21:00:50Z
REF: remove libreduction.apply_frame_axis0
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index ef7ff2d24009e..22bfafaa63ab4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -178,6 +178,7 @@ Performance improvements - Performance improvement in constructing :class:`DataFrame` objects (:issue:`426...
- [x] closes #40446 - [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 Discussed on call today. Just started an asv run.
https://api.github.com/repos/pandas-dev/pandas/pulls/42992
2021-08-11T23:59:55Z
2021-08-12T16:21:47Z
2021-08-12T16:21:47Z
2021-08-12T16:48:35Z
TST: test_offsets files to better homes & parameterize (#27085)
diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py index 08dbc1345b9d4..dfa2a7a67b877 100644 --- a/pandas/tests/tseries/offsets/test_offsets.py +++ b/pandas/tests/tseries/offsets/test_offsets.py @@ -51,7 +51,6 @@ CustomBusinessMonthBegin, CustomBusinessMon...
- [ ] xref #27085 (chips away at, yes) - [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://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/42991
2021-08-11T20:57:51Z
2021-08-12T00:05:24Z
2021-08-12T00:05:24Z
2021-08-12T01:00:22Z
TST: move easter to own file and parameterize (#27085)
diff --git a/pandas/tests/tseries/offsets/test_easter.py b/pandas/tests/tseries/offsets/test_easter.py new file mode 100644 index 0000000000000..90ee7c7f69d5e --- /dev/null +++ b/pandas/tests/tseries/offsets/test_easter.py @@ -0,0 +1,36 @@ +""" +Tests for the following offsets: +- Easter +""" +from __future__ import an...
- [ ] xref #27085 (chips away at, yes) - [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://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/42990
2021-08-11T20:06:23Z
2021-08-12T00:06:32Z
2021-08-12T00:06:32Z
2021-08-12T01:00:16Z
TST: move orphaned business hour tests biz hour file (#27085)
diff --git a/pandas/tests/tseries/offsets/test_business_hour.py b/pandas/tests/tseries/offsets/test_business_hour.py index 72b939b79c321..ee05eab5ec5ca 100644 --- a/pandas/tests/tseries/offsets/test_business_hour.py +++ b/pandas/tests/tseries/offsets/test_business_hour.py @@ -920,3 +920,451 @@ def test_bday_ignores_tim...
- [ ] xref #27085 (chips away at, yes) - [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://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/42989
2021-08-11T19:30:32Z
2021-08-12T00:05:58Z
2021-08-12T00:05:58Z
2021-08-12T01:00:09Z
TST: refactor iris table creation in SQL test
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 1ce1bac3b2b7b..d9747c525771b 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -24,6 +24,7 @@ time, ) from io import StringIO +from pathlib import Path import sqlite3 import warnings @@ -72,34 +73,6 @@ ...
split #42976 xref #40686
https://api.github.com/repos/pandas-dev/pandas/pulls/42988
2021-08-11T19:01:05Z
2021-08-13T14:33:50Z
2021-08-13T14:33:50Z
2021-08-17T04:19:56Z
Backport fastparquet 0.7 compat (PR #42954 and #42919)
diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml index cfdcf266236e6..9d680cb8338fd 100644 --- a/ci/deps/actions-37-db.yaml +++ b/ci/deps/actions-37-db.yaml @@ -15,7 +15,7 @@ dependencies: - beautifulsoup4 - botocore>=1.11 - dask - - fastparquet>=0.4.0, < 0.7.0 + - fastparquet>=0.4.0 -...
- [ ] xref #42954 and #42919 - [ ] 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 **This is a non-trivial backport. Please first review changed files before mergin...
https://api.github.com/repos/pandas-dev/pandas/pulls/42987
2021-08-11T18:56:28Z
2021-08-12T06:29:07Z
2021-08-12T06:29:07Z
2021-08-12T14:41:04Z
Backport PR #42983: DOC/CLN: 1.3.2 release notes
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index 669e824fa3989..a94eab960418b 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -15,17 +15,17 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Performance regression in :met...
Backport PR #42983
https://api.github.com/repos/pandas-dev/pandas/pulls/42985
2021-08-11T17:09:05Z
2021-08-11T18:51:39Z
2021-08-11T18:51:39Z
2021-08-11T18:51:44Z
Backport PR #42823 on branch 1.3.x (BUG: Pass copy argument to expanddim constructor in concat.)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index e0ce9c8dfe2cd..669e824fa3989 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression where :meth:`pandas.read_csv` raised a ``ValueError`` when parameters `...
Backport PR #42823: BUG: Pass copy argument to expanddim constructor in concat.
https://api.github.com/repos/pandas-dev/pandas/pulls/42984
2021-08-11T12:56:06Z
2021-08-11T14:48:00Z
2021-08-11T14:48:00Z
2021-08-11T14:48:01Z
DOC/CLN: 1.3.2 release notes
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index ef8f8245c6640..a94eab960418b 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -15,17 +15,17 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Performance regression in :met...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/42983
2021-08-11T11:03:01Z
2021-08-11T16:59:26Z
2021-08-11T16:59:26Z
2021-08-11T17:10:26Z
BUG: pd.to_datetime with format doesn't work with pd.NA
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f6e90a3341424..01ad7d69cddc7 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -378,6 +378,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :class:`DataFrame` constructor unnecessarily copying non-...
- [x] closes #42957 - [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/42982
2021-08-11T09:12:45Z
2021-09-25T15:35:31Z
2021-09-25T15:35:31Z
2021-09-25T15:37:56Z
DOC: updates documentations Closes #21749
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index 58ce9b17909bb..a0b6963cfac97 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -160,11 +160,10 @@ def network( Tests decorated with @network will fail if it's possible to make a network connection to another URL (defaults to ...
- [x] xref #21749 - [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/42979
2021-08-11T07:56:57Z
2021-08-17T14:32:24Z
2021-08-17T14:32:24Z
2021-08-17T14:32:38Z
TST: use fixtures for some sql database connections
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index cb8ee4891a41e..2f988d825d9db 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -58,6 +58,7 @@ SQLiteDatabase, _gt14, get_engine, + pandasSQL_builder, read_sql_query, read_sql_table, ) @@...
xref #40686 This PR: 1. Create fixtures for all supported SQL connections, including sqlalchemy engine/connection and sqlite3 connection. Setup and cleanup are handled within fixtures. 2. Migrate several common tests to use connection fixtures. They serve as examples for future migrations. We probably should ...
https://api.github.com/repos/pandas-dev/pandas/pulls/42976
2021-08-11T01:28:41Z
2021-12-22T03:05:42Z
2021-12-22T03:05:42Z
2022-11-18T02:20:04Z
Backport PR #42838 on branch 1.3.x (REGR: Series.nlargest with masked arrays)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index ef611589cea2e..e0ce9c8dfe2cd 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression where :meth:`pandas.read_csv` raised a ``ValueError`` when parameters `...
Backport PR #42838: REGR: Series.nlargest with masked arrays
https://api.github.com/repos/pandas-dev/pandas/pulls/42975
2021-08-10T21:45:43Z
2021-08-11T11:06:03Z
2021-08-11T11:06:03Z
2021-08-11T11:06:03Z
Backport PR #42936 on branch 1.3.x (BUG:Can't calculate quantiles from Int64Dtype Series when results are floats)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index e68f5d9d6bc56..ef611589cea2e 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression where :meth:`pandas.read_csv` raised a ``ValueError`` when parameters `...
Backport PR #42936: BUG:Can't calculate quantiles from Int64Dtype Series when results are floats
https://api.github.com/repos/pandas-dev/pandas/pulls/42974
2021-08-10T20:03:43Z
2021-08-10T21:41:34Z
2021-08-10T21:41:34Z
2021-08-10T21:41:34Z
ENH: `max_rows` `max_cols` kw for `Styler.to_html` + `styler.options`
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index 1193dff4361b4..59319fda8045c 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -38,11 +38,11 @@ and so passing in a substring will work - as long as it is unambiguous: .. ipython:: python ...
one more item towards deprecating `DataFrame.to_html` for #41693 - [x] adds options to config - [x] update `options.rst` - [x] add tests - [x] update to_html docstring - [x] whats new - [ ] update user guide (will be follow on after all options in master tracker added) and an item towards consistent `p...
https://api.github.com/repos/pandas-dev/pandas/pulls/42972
2021-08-10T17:45:47Z
2021-09-09T06:04:57Z
2021-09-09T06:04:56Z
2021-09-09T06:05:00Z
Backport PR #42962 on branch 1.3.x (CI: Pin dateutil)
diff --git a/ci/deps/actions-38-numpydev.yaml b/ci/deps/actions-38-numpydev.yaml index 6eed2daac0c3b..e943053f15600 100644 --- a/ci/deps/actions-38-numpydev.yaml +++ b/ci/deps/actions-38-numpydev.yaml @@ -11,11 +11,11 @@ dependencies: - hypothesis>=3.58.0 # pandas dependencies + - python-dateutil - pytz ...
Backport PR #42962: CI: Pin dateutil
https://api.github.com/repos/pandas-dev/pandas/pulls/42969
2021-08-10T16:41:41Z
2021-08-10T18:27:45Z
2021-08-10T18:27:45Z
2021-08-10T18:27:45Z
PERF: avoid repeating checks in interpolation
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index f144821220e4b..1a07b5614eb38 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -215,7 +215,7 @@ def interpolate_array_2d( **kwargs, ): """ - Wrapper to dispatch to either interpolate_2d or interpolate_2d_with_fill. + W...
Not a particularly big difference.
https://api.github.com/repos/pandas-dev/pandas/pulls/42963
2021-08-10T03:59:06Z
2021-08-10T21:46:45Z
2021-08-10T21:46:45Z
2021-08-10T22:27:07Z
CI: Pin dateutil
diff --git a/ci/deps/actions-39-numpydev.yaml b/ci/deps/actions-39-numpydev.yaml index 466ca6215f46a..03181a9d71d1d 100644 --- a/ci/deps/actions-39-numpydev.yaml +++ b/ci/deps/actions-39-numpydev.yaml @@ -11,11 +11,11 @@ dependencies: - hypothesis>=5.5.3 # pandas dependencies + - python-dateutil - pytz -...
- [ ] 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/42962
2021-08-09T23:59:01Z
2021-08-10T16:34:29Z
2021-08-10T16:34:29Z
2021-11-11T01:38:29Z
DOC: erroneous initialization of a DataFrame with Series objects #42818
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 823de2133f0b3..b50c6fd629e5e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -463,7 +463,8 @@ class DataFrame(NDFrame, OpsMixin): ---------- data : ndarray (structured or homogeneous), Iterable, dict, or DataFrame Dict can...
- [ ] closes #42818 - [ ] 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 issue url : https://github.com/pandas-dev/pandas/issues/42818
https://api.github.com/repos/pandas-dev/pandas/pulls/42960
2021-08-09T23:08:24Z
2021-09-08T09:08:37Z
2021-09-08T09:08:37Z
2021-09-08T09:08:51Z
TST: use fixtures for sql test data
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index e924bcef494b9..1ce1bac3b2b7b 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -222,6 +222,54 @@ } +@pytest.fixture +def test_frame1(): + columns = ["index", "A", "B", "C", "D"] + data = [ + ( + ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/42959
2021-08-09T22:57:48Z
2021-08-10T18:58:32Z
2021-08-10T18:58:32Z
2021-08-17T04:21:43Z
Backport PR #42942 on branch 1.3.x (ERR: clarify PerformanceWarning for fragmented frame)
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 84a3ea28e09cb..ea22cdaa89299 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1188,8 +1188,8 @@ def insert(self, loc: int, item: Hashable, value: ArrayLike) -> None: warnings.w...
Backport PR #42942: ERR: clarify PerformanceWarning for fragmented frame
https://api.github.com/repos/pandas-dev/pandas/pulls/42958
2021-08-09T22:52:42Z
2021-08-10T09:30:01Z
2021-08-10T09:30:01Z
2021-08-10T09:30:01Z
BENCH: Fix misleading Interpolate asv
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index e5834f311d259..e4c4122f9ff43 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -538,8 +538,12 @@ class Interpolate: def setup(self, downcast): N = 10000 ...
The ArrayManager benchmark is misleading ATM.
https://api.github.com/repos/pandas-dev/pandas/pulls/42956
2021-08-09T18:56:05Z
2021-08-11T12:56:36Z
2021-08-11T12:56:36Z
2021-08-11T13:51:26Z
CLN: remove unused Series._index attribute
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b2a4fecbf084d..860d4f6a5dcc2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -211,7 +211,6 @@ class NDFrame(PandasObject, indexing.IndexingMixin): "_is_copy", "_subtyp", "_name", - "_index", ...
Noticed this in https://github.com/pandas-dev/pandas/pull/42950, the attribute seems completely unused. (cc @jbrockmendel do you have any idea what the reason is/was for this?)
https://api.github.com/repos/pandas-dev/pandas/pulls/42955
2021-08-09T17:27:18Z
2021-08-10T22:30:03Z
2021-08-10T22:30:03Z
2021-08-11T06:44:20Z
Revert fastparquet nullable dtype support
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index f54cea744f4d2..df0af0b5ed156 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -44,7 +44,6 @@ Bug fixes Other ~~~~~ -- :meth:`pandas.read_parquet` now supports reading nullable dtypes with ``fastparq...
- [ ] 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/42954
2021-08-09T17:16:11Z
2021-08-10T20:03:57Z
2021-08-10T20:03:56Z
2021-08-12T18:12:02Z
REF: format_object_attrs -> Index._format_attrs
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 08946bf5a8033..ee943c3a327f3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -20,6 +20,8 @@ import numpy as np +from pandas._config import get_option + from pandas._libs import ( algos as libalgos, ...
Preliminary to trying to implement generic EA-backed Index (and in particular IntegerArray/BooleanArray), trying to identify all the Index methods that implicitly assume we have an ndarray. This refactors a used-only-once function into the method to make it more obvious that it does _not_ assume an ndarray.
https://api.github.com/repos/pandas-dev/pandas/pulls/42953
2021-08-09T16:49:45Z
2021-08-10T21:56:25Z
2021-08-10T21:56:25Z
2021-08-10T22:26:51Z
TST: move index tests to correct files (#27045)
diff --git a/pandas/tests/tseries/offsets/test_business_month.py b/pandas/tests/tseries/offsets/test_business_month.py index 3f537fc450764..bb2049fd35489 100644 --- a/pandas/tests/tseries/offsets/test_business_month.py +++ b/pandas/tests/tseries/offsets/test_business_month.py @@ -7,6 +7,7 @@ import pytest +import ...
- [ ] xref #27085 (chips away at, yes) - [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://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/42952
2021-08-09T16:09:42Z
2021-08-10T19:00:37Z
2021-08-10T19:00:37Z
2021-08-10T21:25:37Z
BUG: preserve object-dtype index when accessing DataFrame column / PERF: improve perf of Series fastpath constructor
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index d8578ed604ae3..d43314f0d461f 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -3,6 +3,7 @@ import numpy as np from pandas import ( + Index, NaT, Series, ...
This came up while discussing the CoW proof of concept (and need for item_cache / speed of creating a Series of a column). Those small changes gives a decent reduction of some overhead (~30% reduction): ```python arr = np.array([1, 2, 3]) idx = pd.Index(["a", "b", "c"]) pd.Series(arr, index=idx, name="name", fa...
https://api.github.com/repos/pandas-dev/pandas/pulls/42950
2021-08-09T14:28:25Z
2022-01-24T09:51:30Z
2022-01-24T09:51:30Z
2022-01-24T09:51:33Z
Fix cross-references in docs
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index d5b45f5953453..f7beff2dd81cc 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -106,7 +106,7 @@ extension array for IP Address data, this might be ``ipaddress.IPv4Address``. Se...
Fix Sphinx cross-references in docs.
https://api.github.com/repos/pandas-dev/pandas/pulls/42949
2021-08-09T14:24:42Z
2021-08-10T19:53:59Z
2021-08-10T19:53:59Z
2021-08-10T19:53:59Z
ENH: A new GroupBy method to slice rows preserving index and order
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..36d21bb338202 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -110,6 +110,30 @@ Example: s.rolling(3).rank(method="max") +.. _whatsnew_140.enhancements.groupby_indexing: + +Grou...
Closes #42864 New indexable attribute GroupBy.iloc to perform most grouped slices analagous to DataFrame.iloc Row indexes can be integers or slices with +ve step Row slices preserve the DataFrame order and grouping and extend the existing GroupBy head() and tail() methods All column indexes are handled as for D...
https://api.github.com/repos/pandas-dev/pandas/pulls/42947
2021-08-09T12:01:35Z
2021-10-15T13:28:43Z
2021-10-15T13:28:43Z
2021-10-18T19:32:53Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09b56b3541388..d72364b66e0e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: absolufy-imports files: ^pandas/ - repo: https://github.com/python/black - rev: 21.6b0 + rev: 21.7b0 ...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/nod...
https://api.github.com/repos/pandas-dev/pandas/pulls/42945
2021-08-09T07:10:32Z
2021-08-09T09:38:37Z
2021-08-09T09:38:37Z
2021-08-10T11:03:32Z
ERR: clarify PerformanceWarning for fragmented frame
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 7c8b289e6eb87..72bc489c07aeb 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1178,8 +1178,8 @@ def insert(self, loc: int, item: Hashable, value: ArrayLike) -> None: warnings.w...
xref some confusion in #42477. If this is thought an improvement, could target 1.3.2 since more users now see this error than in 1.2.x
https://api.github.com/repos/pandas-dev/pandas/pulls/42942
2021-08-09T01:27:30Z
2021-08-09T22:52:17Z
2021-08-09T22:52:17Z
2021-08-09T23:06:18Z
TST: GH34037 add test for type error when using parameter 'min_period'
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 538a707aa3580..a714abd461461 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2407,3 +2407,15 @@ def test_datetime_categorical_multikey_groupby_indices(): ("c", Timesta...
- [x] closes #34037 - [ 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/42940
2021-08-08T22:49:58Z
2021-08-17T00:20:32Z
2021-08-17T00:20:32Z
2021-08-17T00:20:40Z
TST: add test for getting array from series
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 7a22f84bfcc7e..dbf6d5627c00b 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -13,6 +13,7 @@ iNaT, lib, ) +from pandas.compat.numpy import np_version_u...
- [x] closes #38543 - [ 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/42939
2021-08-08T21:00:00Z
2021-09-13T02:18:26Z
2021-09-13T02:18:25Z
2021-09-13T02:18:33Z
BUG: df.drop not separating missing labels with commas
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index fa9c424351b00..3ac3852f17074 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -239,6 +239,7 @@ Indexing - Bug in updating values of :class:`pandas.Series` using boolean index, created by using :meth:`p...
- [x] closes #42881 - [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/42938
2021-08-08T19:39:38Z
2021-08-10T20:06:45Z
2021-08-10T20:06:45Z
2021-08-10T20:06:49Z
CLN: clean warning assertions in sql tests
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 4b8aa62ab8730..217c1b28c61a5 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -27,7 +27,6 @@ from io import StringIO from pathlib import Path import sqlite3 -import warnings import numpy as np import pytest ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/42937
2021-08-08T19:36:03Z
2021-08-19T16:45:38Z
2021-08-19T16:45:38Z
2022-11-18T02:20:46Z
BUG:Can't calculate quantiles from Int64Dtype Series when results are floats
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index e68f5d9d6bc56..ef611589cea2e 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression where :meth:`pandas.read_csv` raised a ``ValueError`` when parameters `...
- [x] closes #42626 - [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/42936
2021-08-08T17:58:42Z
2021-08-10T20:03:35Z
2021-08-10T20:03:34Z
2021-08-11T09:42:05Z
DOC add example to reorder levels
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c6eda015ba09f..304e350a377bb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6837,6 +6837,31 @@ def reorder_levels(self, order: Sequence[Axis], axis: Axis = 0) -> DataFrame: Returns ------- DataFrame + + Ex...
Response to changes suggested on my previous pull request - [x] closes #42124 - [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/42935
2021-08-08T16:47:28Z
2021-08-23T16:54:49Z
2021-08-23T16:54:48Z
2021-08-23T16:54:59Z
TST: reorganize misplaced quarter / business quarter tests (#27085)
diff --git a/pandas/tests/tseries/offsets/test_business_quarter.py b/pandas/tests/tseries/offsets/test_business_quarter.py new file mode 100644 index 0000000000000..b928b47d30a0d --- /dev/null +++ b/pandas/tests/tseries/offsets/test_business_quarter.py @@ -0,0 +1,311 @@ +""" +Tests for the following offsets: +- BQuarte...
- [ ] xref #27085 (chips away at, yes) - [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://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/42932
2021-08-08T04:15:59Z
2021-08-08T23:15:12Z
2021-08-08T23:15:12Z
2021-08-09T15:40:53Z
BUG: Attributes skipped when serialising plain Python objects to JSON (#42768)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 8754286ee7d11..247786f08869e 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -260,6 +260,7 @@ I/O - Bug in :func:`read_excel` attempting to read chart sheets from .xlsx files (:issue:`41448`) - Bug i...
This patch closes #42768 and fixes a previously-reported issue #33043. When `ujson` falls back to encoding a Python object, it iterates over all of the non-callable attributes of the object which do not start with an underscore, using them as JSON keys. While iterating the `dirs(obj)` list, an index was incremented ...
https://api.github.com/repos/pandas-dev/pandas/pulls/42931
2021-08-08T01:48:06Z
2021-08-11T13:26:05Z
2021-08-11T13:26:05Z
2021-08-11T13:26:10Z
TST: reorganize misplaced year / business year tests (#27085)
diff --git a/pandas/tests/tseries/offsets/test_business_year.py b/pandas/tests/tseries/offsets/test_business_year.py new file mode 100644 index 0000000000000..d531a586c5db2 --- /dev/null +++ b/pandas/tests/tseries/offsets/test_business_year.py @@ -0,0 +1,220 @@ +""" +Tests for the following offsets: +- BYearBegin +- BY...
- [ ] xref #27085 (chips away at, yes) - [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://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/42930
2021-08-08T01:03:25Z
2021-08-08T02:20:18Z
2021-08-08T02:20:18Z
2021-08-08T04:03:23Z
Backport PR #42776 on branch 1.3.x (BUG: Incorrect variable window bounds for first row when offset cover all rows)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index bcb096e630d85..70fff75f84dc3 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -32,6 +32,7 @@ Bug fixes ~~~~~~~~~ - Bug in :meth:`pandas.read_excel` modifies the dtypes dictionary when reading a file w...
Backport PR #42776: BUG: Incorrect variable window bounds for first row when offset cover all rows
https://api.github.com/repos/pandas-dev/pandas/pulls/42929
2021-08-07T23:15:14Z
2021-08-08T01:31:40Z
2021-08-08T01:31:40Z
2021-08-08T01:31:40Z
Backport PR #42799 on branch 1.3.x (BUG: `Styler.set_sticky` fix the names rows 2/2)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index bcb096e630d85..0539d17526579 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -33,6 +33,7 @@ Bug fixes - Bug in :meth:`pandas.read_excel` modifies the dtypes dictionary when reading a file with duplica...
Backport PR #42799: BUG: `Styler.set_sticky` fix the names rows 2/2
https://api.github.com/repos/pandas-dev/pandas/pulls/42928
2021-08-07T23:14:55Z
2021-08-08T01:32:13Z
2021-08-08T01:32:12Z
2021-08-08T01:32:13Z
PERF: Sparse Series to scipy COO sparse matrix
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index 35e5818cd3b2b..c8c1a962e6861 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -67,16 +67,28 @@ def time_sparse_series_from_coo(self): class ToCoo: - def setup(self): + params = [True, False] ...
- [x] closes #42880 - [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 I made the test more thorough, as it only checked the output's type, but not that the out...
https://api.github.com/repos/pandas-dev/pandas/pulls/42925
2021-08-07T17:36:25Z
2021-09-05T01:45:01Z
2021-09-05T01:45:00Z
2021-09-05T10:21:13Z
STYLE: moving unwanted pattern check to precommit
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf76033f769b5..b9fe5461aff37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,10 +32,6 @@ jobs: with: fetch-depth: 0 - - name: Looking for unwanted patterns - run: ci/code_checks.sh patterns - ...
- [x] closes #42123 - [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/42923
2021-08-07T11:39:11Z
2021-08-07T21:58:39Z
2021-08-07T21:58:38Z
2021-08-08T05:40:19Z
DOC: More subtotals / margins in pivot_table
diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst index 7d1d03fe020a6..e74272c825e46 100644 --- a/doc/source/user_guide/reshaping.rst +++ b/doc/source/user_guide/reshaping.rst @@ -474,7 +474,15 @@ rows and columns: .. ipython:: python - df.pivot_table(index=["A", "B"], column...
- [ ] closes #4817 - [ ] 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 Added an example in the documentation for DataFrame.pivot_table to show how to display a p...
https://api.github.com/repos/pandas-dev/pandas/pulls/42922
2021-08-06T22:37:34Z
2021-08-12T13:55:27Z
2021-08-12T13:55:27Z
2021-08-12T13:55:31Z
BUG: read_fwf raise if len colspec doesnt match len names
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f0af60f80edd5..4b36f481acf50 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -307,6 +307,7 @@ I/O - Bug in :func:`read_excel` attempting to read chart sheets from .xlsx files (:issue:`41448`) - Bug i...
- [x] closes #40830 - [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/42920
2021-08-06T19:40:42Z
2021-08-31T23:43:10Z
2021-08-31T23:43:10Z
2021-09-01T05:46:11Z
COMPAT: Support fastparquet 0.7.1
diff --git a/ci/deps/actions-38-db.yaml b/ci/deps/actions-38-db.yaml index 421eeb7a9c2d0..b4495fa6887f4 100644 --- a/ci/deps/actions-38-db.yaml +++ b/ci/deps/actions-38-db.yaml @@ -15,7 +15,7 @@ dependencies: - beautifulsoup4 - botocore>=1.11 - dask - - fastparquet>=0.4.0, < 0.7.0 + - fastparquet>=0.4.0 -...
- [ ] closes #42588 - [ ] 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 Also adds support for ``use_nullable_dtypes`` keyword. Technically, its not our enhancemen...
https://api.github.com/repos/pandas-dev/pandas/pulls/42919
2021-08-06T16:40:31Z
2021-08-08T23:09:19Z
2021-08-08T23:09:18Z
2021-08-09T17:05:55Z
ENH: add kw `level` to `Styler.hide_columns`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f86c45ae8a86c..8754286ee7d11 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -34,7 +34,7 @@ Other enhancements - :meth:`Series.sample`, :meth:`DataFrame.sample`, and :meth:`.GroupBy.sample` now accept...
follows #42636, which added `levels` to `Styler.hide_index`. This adds same functionality.
https://api.github.com/repos/pandas-dev/pandas/pulls/42914
2021-08-06T12:00:09Z
2021-08-09T10:49:08Z
2021-08-09T10:49:08Z
2021-08-09T10:49:14Z
CI: Add ASV Bot
diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml new file mode 100644 index 0000000000000..c2a49dd96c1c1 --- /dev/null +++ b/.github/workflows/asv-bot.yml @@ -0,0 +1,81 @@ +name: "ASV Bot" + +on: + issue_comment: # Pull requests are issues + types: + - created + +env: + ENV_FILE: env...
- [ ] closes #41157 - [ ] 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 Triggers with command ``@github-actions benchmark -b ^regexgoeshere``(doesn't work rn, nee...
https://api.github.com/repos/pandas-dev/pandas/pulls/42911
2021-08-06T00:53:57Z
2021-09-04T14:09:45Z
2021-09-04T14:09:45Z
2021-09-18T17:45:41Z
cln: remove printing statements
diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py index 7b1dc95335b11..6b084ecc2ca6c 100644 --- a/pandas/tests/io/formats/style/test_style.py +++ b/pandas/tests/io/formats/style/test_style.py @@ -1193,7 +1193,6 @@ def test_hide_multiindex(self): assert ctx1[...
removes `print` from tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/42910
2021-08-05T22:55:54Z
2021-08-05T23:34:50Z
2021-08-05T23:34:49Z
2021-08-06T06:02:24Z
TST: reorganize misplaced month / business month tests (#27085)
diff --git a/pandas/tests/tseries/offsets/test_business_month.py b/pandas/tests/tseries/offsets/test_business_month.py new file mode 100644 index 0000000000000..3f537fc450764 --- /dev/null +++ b/pandas/tests/tseries/offsets/test_business_month.py @@ -0,0 +1,196 @@ +""" +Tests for the following offsets: +- BMonthBegin +...
- [ ] xref #27085 (chips away at, yes) - [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 Continuation of: * https://github.com/pandas-dev/pandas/pull/42284 *...
https://api.github.com/repos/pandas-dev/pandas/pulls/42909
2021-08-05T22:01:29Z
2021-08-05T23:39:11Z
2021-08-05T23:39:11Z
2021-08-06T00:00:38Z
Inconsistent date parsing of to_datetime
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 6f005f912fe37..a112c632ceb25 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -204,6 +204,7 @@ If you use dates which start with the day first (i.e. European style), you can pas...
- [x] xref #12585 - [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 carries on from https://github.com/pandas-dev/pandas/pull/35428
https://api.github.com/repos/pandas-dev/pandas/pulls/42908
2021-08-05T18:55:45Z
2021-08-26T21:18:13Z
2021-08-26T21:18:13Z
2021-08-27T08:29:50Z
Backport PR #42871 on branch 1.3.x (BUG: GH42866 DatetimeIndex de-serializing fails in PYTHONOPTIMIZE mode)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index 4e6ea85e2ff1d..bcb096e630d85 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -33,6 +33,8 @@ Bug fixes - Bug in :meth:`pandas.read_excel` modifies the dtypes dictionary when reading a file with duplica...
Backport PR #42871: BUG: GH42866 DatetimeIndex de-serializing fails in PYTHONOPTIMIZE mode
https://api.github.com/repos/pandas-dev/pandas/pulls/42904
2021-08-05T11:48:31Z
2021-08-05T13:32:41Z
2021-08-05T13:32:41Z
2021-08-05T13:32:42Z
Backport PR #42720 on branch 1.3.x (CLN: clean the conda-to-pip script)
diff --git a/scripts/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_conda.py index 1ad9ec03925a0..fdb891e747553 100755 --- a/scripts/generate_pip_deps_from_conda.py +++ b/scripts/generate_pip_deps_from_conda.py @@ -13,7 +13,7 @@ $ python scripts/generate_pip_deps_from_conda.py --compare """ imp...
Backport PR #42720: CLN: clean the conda-to-pip script
https://api.github.com/repos/pandas-dev/pandas/pulls/42903
2021-08-05T09:32:57Z
2021-08-05T11:47:06Z
2021-08-05T11:47:06Z
2021-08-05T11:47:06Z
Backport PR #42304: DEPS: update setuptools min version
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d580fcf4fc545..e2e6fe51b5f8b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -110,7 +110,7 @@ repos: entry: python scripts/generate_pip_deps_from_conda.py files: ^(environment.yml|requirements-dev.txt)$ ...
Backport PR #42304
https://api.github.com/repos/pandas-dev/pandas/pulls/42901
2021-08-05T09:15:34Z
2021-08-05T13:46:00Z
2021-08-05T13:46:00Z
2021-08-05T13:46:06Z
REF: share maybe_cast_slice_bound DTI/TDI/PI
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 1c94baf74b60b..a3e45c972d63f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -57,6 +57,7 @@ deprecate_nonkeyword_arguments, doc, ) +from pandas.util._exceptions import find_stack_level from pandas.co...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/42897
2021-08-05T02:43:51Z
2021-08-05T22:00:36Z
2021-08-05T22:00:36Z
2021-08-05T23:52:52Z
TST: move custom business day tests to own file (#27085)
diff --git a/pandas/tests/tseries/offsets/test_business_day.py b/pandas/tests/tseries/offsets/test_business_day.py index 26df051ef928f..92daafaf469cd 100644 --- a/pandas/tests/tseries/offsets/test_business_day.py +++ b/pandas/tests/tseries/offsets/test_business_day.py @@ -7,21 +7,17 @@ timedelta, ) -import nump...
- [ ] xref #27085 (chips away at, yes) - [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 Continuation of https://github.com/pandas-dev/pandas/pull/42284 Moving...
https://api.github.com/repos/pandas-dev/pandas/pulls/42896
2021-08-05T01:51:16Z
2021-08-05T12:04:11Z
2021-08-05T12:04:11Z
2021-08-05T15:16:55Z