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
DOC: fix DataFrame.nlargest and DataFrame.nsmallest doctests
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b829cbefe8f7a..04813cc31f603 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -123,7 +123,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then MSG='Doctests frame.py' ; echo $MSG pytest -q --doctest-modules pandas/core/frame.py \ - ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Based on #22459. Fix the docstring for `DataFrame.nlargest` and `DataFrame.nsmallest` (since they are quite similar). I also updated `ci/code_check.sh` I extended the existing doctest of `Series.nlargest` and `Series.nsm...
https://api.github.com/repos/pandas-dev/pandas/pulls/23202
2018-10-17T14:10:07Z
2018-11-05T08:15:06Z
2018-11-05T08:15:06Z
2018-11-05T21:16:17Z
DOC: Fix pandas.Series.resample docstring
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4b483a794c21..eba96f0c6c2fc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -151,7 +151,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then MSG='Doctests generic.py' ; echo $MSG pytest -q --doctest-modules pandas/core/generic.py \ - ...
- [x] closes #22894 - [x] tests added / passed: - [x] `./scripts/validate_docstrings.py pandas.Series.resample` - [x] `flake8 --doctests pandas/core/generic.py` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --> Needed? - Followed pandas docstring [conventions](ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/23197
2018-10-17T11:46:16Z
2018-11-10T21:47:24Z
2018-11-10T21:47:24Z
2018-11-10T21:47:25Z
CLN: Merge_asof null error message
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 88b1ec7e47bbb..ed9466795f97f 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -1390,18 +1390,18 @@ def flip(xs): self.right_join_keys[-1]) tolerance = self.tolerance - ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Post #23190 cleanup based on a review I wanted to give: * `any()` instead of `sum() > 0` * pytest parametrize cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/23195
2018-10-17T07:07:22Z
2018-10-17T12:24:34Z
2018-10-17T12:24:34Z
2018-10-17T16:08:27Z
CLN import from pandas.core.arrays when possible
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 4cc33d7afd6c8..0f07a9cf3c0e0 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -508,7 +508,7 @@ def _add_delta(self, delta): The result's name is set outside of _add_delta by the calling ...
- [ ] closes #xxxx - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `pandas.core.arrays.__init__.py` imports some classes by default, so other classes can import directly from `pandas.core.arrays` instead of accessing the specific files
https://api.github.com/repos/pandas-dev/pandas/pulls/23193
2018-10-17T01:31:43Z
2018-10-17T11:06:10Z
2018-10-17T11:06:10Z
2018-10-17T11:06:10Z
Merge asof with nans
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3053625721560..16f0b9ee99909 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -972,6 +972,7 @@ Reshaping - Bug in :func:`merge` when merging ``datetime64[ns, tz]`` data that contained a DST transit...
Fix to raise a more meaningful error message when attempting to merge_asof with missing values - [ ] closes #23189 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23190
2018-10-16T20:05:17Z
2018-10-17T01:15:06Z
2018-10-17T01:15:06Z
2018-10-17T06:02:08Z
BUG: sets in str.cat
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d0aa156cf5059..3f3a01cf6e850 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -210,6 +210,7 @@ Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - A newly constructed empty :...
- [x] closes #23009 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is split off from #23065.
https://api.github.com/repos/pandas-dev/pandas/pulls/23187
2018-10-16T19:15:24Z
2018-10-23T03:10:07Z
2018-10-23T03:10:07Z
2018-10-23T05:39:59Z
BUG: SparseArray.unique with all sparse
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3053625721560..6fb066d1b8fe6 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -985,6 +985,7 @@ Sparse - Improved performance of :meth:`Series.shift` for non-NA ``fill_value``, as values are no long...
xref https://github.com/pandas-dev/pandas/issues/23168 Closes https://github.com/pandas-dev/pandas/issues/19595
https://api.github.com/repos/pandas-dev/pandas/pulls/23186
2018-10-16T16:17:24Z
2018-10-18T11:25:58Z
2018-10-18T11:25:57Z
2018-10-18T11:26:01Z
API: Add sparse Acessor
diff --git a/doc/source/api.rst b/doc/source/api.rst index 1ec2a56dcd094..6e8eb83577c46 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -851,6 +851,22 @@ Sparse SparseSeries.to_coo SparseSeries.from_coo +.. autosummary:: + :toctree: generated/ + :template: autosummary/accessor_attribute.rst + ...
* Adds a Series.sparse accessor * Adds several methods to SparseArray to for use via the accessor Closes #23148. This should provide all the methods / attributes that were available on SparseSeries, but not Series. Right now the docs for `.sparse.from_coo` and `to_coo` seem to be broken. It's a bit strange si...
https://api.github.com/repos/pandas-dev/pandas/pulls/23183
2018-10-16T14:35:48Z
2018-10-26T01:28:55Z
2018-10-26T01:28:55Z
2018-10-26T01:31:50Z
Windows CI
diff --git a/ci/azure-windows-36.yaml b/ci/azure-windows-36.yaml index 6230e9b6a1885..656a6a31d92b4 100644 --- a/ci/azure-windows-36.yaml +++ b/ci/azure-windows-36.yaml @@ -5,12 +5,14 @@ channels: dependencies: - blosc - bottleneck + - boost-cpp<1.67 - fastparquet - feather-format - matplotlib - num...
xref https://github.com/pandas-dev/pandas/issues/23180 Trying to ensure we get the pyarrow from main, not conda-forge.
https://api.github.com/repos/pandas-dev/pandas/pulls/23182
2018-10-16T13:45:42Z
2018-10-18T02:06:53Z
2018-10-18T02:06:53Z
2018-10-18T02:06:58Z
try pinning numpy dev
diff --git a/ci/travis-37-numpydev.yaml b/ci/travis-37-numpydev.yaml index 82c75b7c91b1f..957941b7379aa 100644 --- a/ci/travis-37-numpydev.yaml +++ b/ci/travis-37-numpydev.yaml @@ -13,5 +13,5 @@ dependencies: - "git+git://github.com/dateutil/dateutil.git" - "-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838d...
xref #22960
https://api.github.com/repos/pandas-dev/pandas/pulls/23178
2018-10-16T11:00:22Z
2018-10-16T11:24:37Z
2018-10-16T11:24:37Z
2018-10-16T11:40:52Z
REF: use fused types for join_helper
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index ebb7bd40694ec..7c791ab8a1b00 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -239,4 +239,420 @@ def ffill_indexer(ndarray[int64_t] indexer): return result -include "join_helper.pxi" +# -------------------------------------------...
Related but orthogonal to #23022.
https://api.github.com/repos/pandas-dev/pandas/pulls/23171
2018-10-15T21:34:57Z
2018-10-17T12:35:21Z
2018-10-17T12:35:21Z
2018-10-17T15:59:56Z
API: Series.str-accessor infers dtype (and Index.str does not raise on all-NA)
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index f7fdfcf8bf882..87c75e8bcd91f 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -70,6 +70,16 @@ and replacing any remaining whitespaces with underscores: ``.str`` methods which operate on elements of...
closes #23163 closes #23011 closes #23551 ~#23555 / #23556~ - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Several times while working around `str.cat` (most recently #22725) @jreback and @WillAyd mentioned that the `.str` accessor should...
https://api.github.com/repos/pandas-dev/pandas/pulls/23167
2018-10-15T19:13:46Z
2019-06-01T15:03:08Z
2019-06-01T15:03:07Z
2019-06-01T15:09:48Z
DOC: Validate parameter types in docstrings (e.g. str instead of string)
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 27c63e3ba3a79..fcae4051dc471 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -208,7 +208,7 @@ def mode(self, axis, numeric_only): .. versionch...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Related to #20298. Fixes the bullet "Using string, boolean, integer in the param descriptions (should be str, bool, int)".
https://api.github.com/repos/pandas-dev/pandas/pulls/23165
2018-10-15T14:03:44Z
2018-10-21T04:35:01Z
2018-10-21T04:35:01Z
2018-10-22T00:47:22Z
BUG: Don't parse NaN as 'nan' in Data IO
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 16f0b9ee99909..d3b15703dab1f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -440,7 +440,7 @@ In addition to these API breaking changes, many :ref:`performance improvements a Raise ValueError in `...
Re-implementation of #20429, with a couple of changes: * The `whatsnew` entry now has a separate section for this change (https://github.com/pandas-dev/pandas/pull/20429#discussion_r180160530) * The fix is localized as much as possible to `parsers.py` and does not impact other functionality. Closes #20377.
https://api.github.com/repos/pandas-dev/pandas/pulls/23162
2018-10-15T06:03:01Z
2018-10-18T15:58:29Z
2018-10-18T15:58:29Z
2022-12-06T21:51:17Z
DOC: Validate in docstrings that numpy and pandas are not imported
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 0e10265a7291d..aa8a1500d9d3d 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -218,6 +218,18 @@ def mode(self, axis, numeric_only): """ pass...
Fix #23134
https://api.github.com/repos/pandas-dev/pandas/pulls/23161
2018-10-15T05:05:53Z
2018-11-04T14:04:24Z
2018-11-04T14:04:24Z
2019-01-02T20:26:26Z
DOC: Modify IntervalArray/IntervalIndex docstrings to pass validate_docstrings.py
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index eced3bf34e7c6..8171d2007b406 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -140,6 +140,13 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then -k"-crosstab -pivot_table -cut" RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Doctests ...
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Didn't materially change any existing content; mostly small modifications and a couple additions.
https://api.github.com/repos/pandas-dev/pandas/pulls/23157
2018-10-14T22:27:22Z
2018-10-24T10:16:22Z
2018-10-24T10:16:21Z
2018-10-25T02:15:44Z
BUG/PERF: Avoid listifying in dispatch_to_extension_op
diff --git a/doc/source/extending.rst b/doc/source/extending.rst index ab940384594bc..1e8a8e50dd9e3 100644 --- a/doc/source/extending.rst +++ b/doc/source/extending.rst @@ -135,6 +135,12 @@ There are two approaches for providing operator support for your ExtensionArray: 2. Use an operator implementation from pandas th...
This simplifies dispatch_to_extension_op. The remaining logic is simply unboxing Series / Indexes in favor of their underlying arrays. This forced two additional changes 1. Move some logic that IntegerArray relied on down to the IntegerArray ops. Things like handling of 0-dim ndarrays was previously broken on ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23155
2018-10-14T18:49:06Z
2018-10-19T12:08:34Z
2018-10-19T12:08:34Z
2018-10-23T08:49:20Z
DOC: fix rendering of example function in cookbook
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index 21c8ab4128188..be8457fc14a4f 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -1228,36 +1228,40 @@ Correlation The `method` argument within `DataFrame.corr` can accept a callable in addition to the named correlation types. Her...
Fix #23128
https://api.github.com/repos/pandas-dev/pandas/pulls/23153
2018-10-14T18:11:53Z
2018-10-16T13:25:33Z
2018-10-16T13:25:33Z
2019-01-02T20:26:44Z
DOC: #22896, Fixed docstring of to_stata in pandas/core/frame.py
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f0772f72d63d4..86e7003681e98 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -148,7 +148,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then MSG='Doctests frame.py' ; echo $MSG pytest -q --doctest-modules pandas/core/frame.py \ - ...
- [x] closes #22896 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] passes `./scripts/validate_docstrings.py pandas.DataFrame.to_stata`
https://api.github.com/repos/pandas-dev/pandas/pulls/23152
2018-10-14T17:41:46Z
2018-11-21T12:40:57Z
2018-11-21T12:40:57Z
2018-11-21T12:41:00Z
DOC: Add number of errors/warnings
diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index 6588522331433..fbc15bf787ac9 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -591,11 +591,11 @@ def header(title, width=80, char='#'): fd.write('{}\n'.format(doc_info['docstring'])) f...
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Add number of Errors or Warnings to scripts/validate_docstrings.py when validating docstrings.
https://api.github.com/repos/pandas-dev/pandas/pulls/23150
2018-10-14T15:26:23Z
2018-11-03T14:33:18Z
2018-11-03T14:33:18Z
2019-11-07T09:13:22Z
CLN GH23123 Move SparseArray to arrays
diff --git a/pandas/api/extensions/__init__.py b/pandas/api/extensions/__init__.py index 8a515661920f3..51555c57b2288 100644 --- a/pandas/api/extensions/__init__.py +++ b/pandas/api/extensions/__init__.py @@ -3,8 +3,8 @@ register_index_accessor, regi...
- [X] closes #23123 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Importing `SparseArray` from the `Arrays` folder was causing circular import paths with the `__init__.py`, so I had to empty it and fix every other file that imported from `pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/23147
2018-10-14T11:29:51Z
2018-10-16T13:37:12Z
2018-10-16T13:37:12Z
2018-10-16T13:37:25Z
DOC: Validate that See Also section items do not contain the pandas. prefix
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 6bf832fb9dc6d..0e10265a7291d 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -334,33 +334,6 @@ def method(self, foo=None, bar=None): pass -class...
Fix #23136 Please also see similar PR #23143
https://api.github.com/repos/pandas-dev/pandas/pulls/23145
2018-10-14T08:11:23Z
2018-10-27T18:20:16Z
2018-10-27T18:20:16Z
2019-01-02T20:26:24Z
DOC: Add docstring validations for "See Also" section
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 27c63e3ba3a79..8ebf4299edca4 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -334,6 +334,33 @@ def method(self, foo=None, bar=None): pass +class...
- [x] closes #23135 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23143
2018-10-14T01:55:26Z
2018-10-26T21:23:22Z
2018-10-26T21:23:22Z
2018-10-26T21:23:31Z
ENH: MultiIndex.from_frame
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 39082ef7a4c69..0cc2cea774bbd 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -62,8 +62,9 @@ The :class:`MultiIndex` object is the hierarchical analogue of the standard can think of ``MultiIndex`` as an array of tuples where each...
- [x] closes #22420 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This pull request is to add the from_frame method of creating multiindexes. Along with this feature the helper method "squeeze" has been added for squeezing single level multiin...
https://api.github.com/repos/pandas-dev/pandas/pulls/23141
2018-10-13T22:20:38Z
2018-12-09T14:10:15Z
2018-12-09T14:10:15Z
2018-12-09T14:10:18Z
Use align_method in comp_method_FRAME
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 2c142bdd7185b..c93162177462b 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -567,6 +567,88 @@ Previous Behavior: 0 0 NaT +.. _whatsnew_0240.api.dataframe_cmp_broadcasting: + +DataF...
Redux to #22880 @jorisvandenbossche Closes #20090 Summary: DataFrame comparison operations broadcasting is inconsistent with arithmetic operations broadcasting. This PR fixes that.
https://api.github.com/repos/pandas-dev/pandas/pulls/23132
2018-10-13T16:25:16Z
2018-10-23T02:55:37Z
2018-10-23T02:55:37Z
2018-10-23T09:17:57Z
CLN: Flake8 E741
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index c3a85d595eb59..ff6989cc4dc20 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -14,7 +14,6 @@ pycodestyle: - E402, # module level import not at top of file - E722, # do not use bare except - E731, # do not assign a lambda expression,...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - xref up E741 mentioned on this issue: #22122 - Follow up from this PR: #22913 `flake8 --select E741` now runs clean
https://api.github.com/repos/pandas-dev/pandas/pulls/23131
2018-10-13T16:01:57Z
2018-10-14T12:34:42Z
2018-10-14T12:34:42Z
2018-10-15T12:32:21Z
DOC: Fix creation of [source] links in the doc creation
diff --git a/doc/source/conf.py b/doc/source/conf.py index 29f947e1144ea..f0cf3a977416f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -569,7 +569,11 @@ def linkcode_resolve(domain, info): return None try: - fn = inspect.getsourcefile(obj) + # inspect.unwrap() was added in...
See this issue: https://github.com/pandas-dev/pandas/issues/23046 A simple fix is to add `inspect.unwrap(obj)` before `getsourcefile`. This follows the `__wrapped__` attributes of the functions "all the way to the bottom" and then returns the object found. One problem with this is that `unwrap` function was only ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23129
2018-10-13T15:17:10Z
2018-11-04T20:32:20Z
2018-11-04T20:32:20Z
2018-11-04T20:32:27Z
Bump Hypothesis timeout from 200ms to 5s.
diff --git a/pandas/conftest.py b/pandas/conftest.py index e84657a79b51a..b2870f8fd9ece 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -13,6 +13,11 @@ hypothesis.settings.register_profile( "ci", + # Hypothesis timing checks are tuned for scalars by default, so we bump + # them from 200ms to 5...
Closes #23121 - this is a minor config change to account for the fact that Pandas tests are slower than equivalent tests for scalars simply due to data size. CC @jorisvandenbossche @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/23127
2018-10-13T13:26:29Z
2018-10-13T14:09:23Z
2018-10-13T14:09:23Z
2018-10-13T14:35:12Z
Revert "Use align_method in comp_method_FRAME"
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 95eecba5b5ef6..5d7f45b92b75d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -510,88 +510,6 @@ Previous Behavior: 0 0 NaT -.. _whatsnew_0240.api.dataframe_cmp_broadcasting: - -DataF...
Reverts pandas-dev/pandas#22880
https://api.github.com/repos/pandas-dev/pandas/pulls/23120
2018-10-13T07:58:54Z
2018-10-13T07:59:01Z
2018-10-13T07:59:01Z
2018-10-13T07:59:04Z
Remove offset/DTI caching (disabled since 0.14
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 5811a8c4c45ff..dde098be2e5ae 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -688,6 +688,7 @@ Other API Changes - :meth:`DataFrame.corr` and :meth:`Series.corr` now raise a ``ValueError`` along wi...
- [x] closes #23080 - [ ] 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/23118
2018-10-13T01:38:56Z
2018-10-14T19:36:33Z
2018-10-14T19:36:33Z
2018-10-14T19:36:49Z
TST: add test cases for reset_index method
diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py index 4e61c9c62266d..3faf62b4ec28b 100644 --- a/pandas/tests/frame/test_alter_axes.py +++ b/pandas/tests/frame/test_alter_axes.py @@ -744,6 +744,15 @@ def test_reset_index(self, float_frame): xp = xp.set_index(['B'], app...
- [x] closes #17067 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry the fix appears to work but it breaks previous assert_frame_equal that assumes index.name == None after reset_index() call. The question remains that is the issue #17067 act...
https://api.github.com/repos/pandas-dev/pandas/pulls/23116
2018-10-12T21:31:03Z
2018-10-24T12:23:37Z
2018-10-24T12:23:37Z
2018-10-24T12:30:31Z
BUG: Fix ndarray + DataFrame ops
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 700bf4ddc3a37..5811a8c4c45ff 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -844,7 +844,7 @@ Numeric - Bug in :class:`DataFrame` multiplication between boolean dtype and integer returning ``objec...
- [X] closes #22537 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23114
2018-10-12T16:20:21Z
2018-10-14T16:48:41Z
2018-10-14T16:48:41Z
2018-10-23T03:28:44Z
CLN: Move to_period, to_perioddelta up to EA subclasses
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 0f07a9cf3c0e0..ac90483513af5 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -820,6 +820,25 @@ def to_period(self, freq=None): return PeriodArrayMixin(self.values, freq=freq) + def ...
Should be orthogonal to other outstanding datetimelike EA PRs.
https://api.github.com/repos/pandas-dev/pandas/pulls/23113
2018-10-12T16:14:28Z
2018-10-22T07:08:43Z
2018-10-22T07:08:43Z
2018-12-10T16:34:49Z
Deprecate read_feather nthreads argument + update feather-format to pyarrow.feather
diff --git a/ci/azure-windows-36.yaml b/ci/azure-windows-36.yaml index 979443661f99b..af42545af7971 100644 --- a/ci/azure-windows-36.yaml +++ b/ci/azure-windows-36.yaml @@ -7,7 +7,6 @@ dependencies: - bottleneck - boost-cpp<1.67 - fastparquet - - feather-format - matplotlib - numexpr - numpy=1.14* di...
- [x] closes #23053, closes https://github.com/pandas-dev/pandas/issues/21639 - [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/23112
2018-10-12T15:56:18Z
2018-11-01T12:02:41Z
2018-11-01T12:02:41Z
2021-04-27T14:29:33Z
CI: Some Azure Pipelines cleanups
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 409b1ac8c9df3..1e4e43ac03815 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,28 +1,20 @@ # Adapted from https://github.com/numba/numba/blob/master/azure-pipelines.yml jobs: -# Mac and Linux could potentially use the same template -# except ...
Hey all, I'm a PM on Azure Pipelines. I noticed you had some comments in your `azure-pipelines.yml` regarding conditional steps and possibly adding a Linux flavor. I've taken the liberty of addressing those issues. One thing I didn't completely finish: getting Linux to publish test results. The problem is that there...
https://api.github.com/repos/pandas-dev/pandas/pulls/23111
2018-10-12T15:46:52Z
2018-12-11T15:08:57Z
2018-12-11T15:08:57Z
2018-12-11T15:08:57Z
DEPR: deprecate fastpath keyword in Index constructors
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9b70dd4ba549f..4da7ebb3eff36 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -664,6 +664,7 @@ Deprecations many ``Series``, ``Index`` or 1-dimensional ``np.ndarray``, or alternatively, only scal...
From all that looking at Index constructors ... Apparently it was even hardly used internally for the Index classes (except a little bit in RangeIndex). Part of https://github.com/pandas-dev/pandas/issues/20110
https://api.github.com/repos/pandas-dev/pandas/pulls/23110
2018-10-12T15:12:06Z
2018-10-18T17:25:37Z
2018-10-18T17:25:37Z
2018-10-18T18:05:08Z
Ignoring W504 (line break after binary operator) in linting
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index c3a85d595eb59..79101a59ac767 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -11,6 +11,7 @@ pycodestyle: max-line-length: 79 ignore: - W503, # line break before binary operator + - W504, # line break after binary operator - ...
Based on the discussion in #23073, `flake8` is not linting for `W504`. `pep8speak` does, and future versions of `flake8` are likely to do so. So, I think we need to update our settings to ignore it explicitly, so `pep8speaks` is consistent with the CI, and updates on `flake8` do not start to generate unwanted errors. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23101
2018-10-12T09:31:32Z
2018-10-12T12:46:47Z
2018-10-12T12:46:46Z
2018-10-12T12:46:49Z
DOC: Improve the docstring of pd.Index.contains and closes PR #20211
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 88510e84a29a5..0e393476bdf5f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3812,19 +3812,44 @@ def _is_memory_usage_qualified(self): def is_type_compatible(self, kind): return kind == self.inferre...
- [x] closes #20211 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR is an update to PR #20211, improving the `Index.contains` docstring.
https://api.github.com/repos/pandas-dev/pandas/pulls/23100
2018-10-12T08:56:08Z
2018-12-07T14:16:52Z
2018-12-07T14:16:52Z
2018-12-07T14:17:06Z
REF: de-duplicate datetimelike wrapping code
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index e4ace2bfe1509..73c0c3c5056bc 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -41,7 +41,7 @@ from pandas.util._decorators import deprecate_kwarg -def _make_comparison_op(op, cls): +...
Should be orthogonal to other outstanding datetimelike index/array PRs
https://api.github.com/repos/pandas-dev/pandas/pulls/23099
2018-10-12T00:42:06Z
2018-10-12T12:41:39Z
2018-10-12T12:41:39Z
2018-10-12T15:19:51Z
Add isort config
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f2188e6bb56b8..00f17d5c91537 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -56,6 +56,11 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then cpplint --quiet --extensions=c,h --headers=h --recursive --filter=-readability/casting,-runtime/int,-build...
- [x] closes #23048 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Confirming that CI fails when Imports are incorrectly formatted. See here: https://travis-ci.org/pandas-dev/pandas/jobs/440557769 Sample output: Doctests top-level reshaping functions DONE Check import format using iso...
https://api.github.com/repos/pandas-dev/pandas/pulls/23096
2018-10-11T22:39:34Z
2018-10-17T13:59:26Z
2018-10-17T13:59:25Z
2019-12-25T20:21:52Z
REF: Simplify Period/Datetime Array/Index constructors
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index e4ace2bfe1509..5aa9d7aa1be75 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -18,6 +18,7 @@ from pandas.tseries.offsets import Tick, DateOffset from pandas.core.dtypes.common import...
Split off from the same branch that spawned #23083.
https://api.github.com/repos/pandas-dev/pandas/pulls/23093
2018-10-11T15:19:19Z
2018-10-12T21:50:47Z
2018-10-12T21:50:47Z
2018-10-14T01:41:14Z
clean CategoricalIndex.get_loc and improve error message
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 45703c220a4be..7eab123497282 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -426,6 +426,10 @@ def get_loc(self, key, method=None): ------- loc : int if unique index, slice if mon...
This is an offspring from #21699 to do the a cleanup in a contained PR. ``self.categories.get_loc(key)`` can never return -1, so the ``if (codes == -1): raise KeyError(key)`` is unnecessary. Instead, if key is not in self.categories, a KeyError is raised straight away. ```python >>> ci = pd.CategoricalIndex(['a'...
https://api.github.com/repos/pandas-dev/pandas/pulls/23091
2018-10-11T13:26:22Z
2018-10-18T16:13:22Z
2018-10-18T16:13:22Z
2018-10-18T17:43:21Z
BUG: DataFrame(ndarray, dtype=categoricaldtype)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 049c4fe653107..9981b2c4b395e 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -184,8 +184,8 @@ Categorical ^^^^^^^^^^^ - Bug in :class:`CategoricalIndex` incorrectly failing to raise ``TypeError`` whe...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38857
2020-12-31T17:01:44Z
2021-01-02T02:00:55Z
2021-01-02T02:00:55Z
2021-01-02T02:17:50Z
TST: GH30999 address all bare pytest.raises in pandas/tests/series and add EMPTY_STRING_PATTERN to tm
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 24359809065b1..897f4ab59c370 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -130,6 +130,7 @@ NULL_OBJECTS = [None, np.nan, pd.NaT, float("nan"), pd.NA] +EMPTY_STRING_PATTERN = re.compile("^$") # set testi...
This PR is to address xref #30999 in pandas/tests/series Three of the four errors raised within `pytest.raises` were for `NotImplementedError` with the empty string as the error message. Rather than individually making a regular expression for the empty string, I added one as a constant to `pandas/_testing/__init__....
https://api.github.com/repos/pandas-dev/pandas/pulls/38855
2020-12-31T16:04:09Z
2020-12-31T18:47:38Z
2020-12-31T18:47:38Z
2020-12-31T18:47:41Z
Fix broken link in docs of DataFrame.to_hdf
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c3db8ef58deb6..eee5f72a05738 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2576,7 +2576,7 @@ def to_hdf( See Also -------- - DataFrame.read_hdf : Read from HDF file. + read_hdf : Read from HDF fil...
The link in https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_hdf.html in "See also" seems to be broken. This should fix it. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew e...
https://api.github.com/repos/pandas-dev/pandas/pulls/38854
2020-12-31T15:58:31Z
2020-12-31T18:48:28Z
2020-12-31T18:48:28Z
2021-01-01T12:14:28Z
Backport PR #38850 on branch 1.2.x (DOC: sphinx error in 1.2.1 release notes)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index c83a2ff7c1d22..a1612117072a5 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -21,8 +21,8 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.groupby()` with :class:`Categorical` grouping colum...
Backport PR #38850: DOC: sphinx error in 1.2.1 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/38853
2020-12-31T15:51:36Z
2020-12-31T17:19:33Z
2020-12-31T17:19:33Z
2020-12-31T17:19:33Z
BLD: move metadata to setup.cfg
diff --git a/MANIFEST.in b/MANIFEST.in index cf6a1835433a4..494ad69efbc56 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,4 @@ -include MANIFEST.in -include LICENSE include RELEASE.md -include README.md -include setup.py -include pyproject.toml graft doc prune doc/build @@ -16,10 +11,12 @@ global-exclude *.b...
move metadata to setup.cfg to separate them from build logic.
https://api.github.com/repos/pandas-dev/pandas/pulls/38852
2020-12-31T15:28:54Z
2021-02-16T09:51:44Z
2021-02-16T09:51:44Z
2021-06-12T15:40:36Z
DOC: sphinx error in 1.2.1 release notes
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index c83a2ff7c1d22..a1612117072a5 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -21,8 +21,8 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.groupby()` with :class:`Categorical` grouping colum...
https://api.github.com/repos/pandas-dev/pandas/pulls/38850
2020-12-31T12:17:45Z
2020-12-31T15:49:30Z
2020-12-31T15:49:30Z
2020-12-31T15:59:40Z
TST: GH30999 address all bare pytest.raises in pandas/tests/arrays/boolean/test_arithmetic.py
diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py index 01de64568a011..f8f1af4c3da51 100644 --- a/pandas/tests/arrays/boolean/test_arithmetic.py +++ b/pandas/tests/arrays/boolean/test_arithmetic.py @@ -46,8 +46,11 @@ def test_add_mul(left_array, right_array, op...
xref #30999 I thought I was done with the simple bare `pytest.raise` instances but I somehow missed this test module. Four instances, three fixed by adding `match` and one by using `tm.external_error_raised` because I believe the error comes from numpy. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `b...
https://api.github.com/repos/pandas-dev/pandas/pulls/38849
2020-12-31T12:14:36Z
2021-01-01T00:03:54Z
2021-01-01T00:03:54Z
2021-01-01T00:03:54Z
Backport PR #38806: DOC: fix sphinx directive error in 1.2.1 release notes
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 72f76b4749c54..f275cfa895269 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -15,8 +15,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXI...
Backport PR #38806
https://api.github.com/repos/pandas-dev/pandas/pulls/38848
2020-12-31T10:35:30Z
2020-12-31T12:00:36Z
2020-12-31T12:00:36Z
2020-12-31T12:00:42Z
CI,STYLE: narrow down ignore-words-list of codespell
diff --git a/pandas/core/arrays/sparse/accessor.py b/pandas/core/arrays/sparse/accessor.py index 12f29faab9574..c0bc88dc54e43 100644 --- a/pandas/core/arrays/sparse/accessor.py +++ b/pandas/core/arrays/sparse/accessor.py @@ -333,18 +333,18 @@ def to_coo(self): if isinstance(dtype, SparseDtype): dt...
- [x] xref #38820 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry see Issue #38802, task4
https://api.github.com/repos/pandas-dev/pandas/pulls/38847
2020-12-31T09:25:12Z
2021-01-04T01:13:44Z
2021-01-04T01:13:44Z
2021-01-04T01:13:47Z
remove docs from packages
diff --git a/MANIFEST.in b/MANIFEST.in index 494ad69efbc56..d0d93f2cdba8c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -17,8 +17,10 @@ global-exclude *.h5 global-exclude *.html global-exclude *.json global-exclude *.jsonl +global-exclude *.pdf global-exclude *.pickle global-exclude *.png +global-exclude *.pptx g...
- ~closes #xxxx~ - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry #30741 discusses removing documentation and tests from package distributions. This is valuable because it makes `pandas` easier to use in storage-sensi...
https://api.github.com/repos/pandas-dev/pandas/pulls/38846
2020-12-31T04:15:58Z
2021-04-09T00:04:51Z
2021-04-09T00:04:51Z
2021-04-09T00:10:24Z
BUG: inconsistent concat casting EA vs non-EA
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 049c4fe653107..cae04af1ac2c4 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -293,10 +293,11 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ - - Bug in :meth:`DataFrame.unstack` with missing level...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Because we dont have 2D EAs, we end up passing axis=0 to concat_compat from internals.concat. As a result we drop empty arrays only when EAs are pre...
https://api.github.com/repos/pandas-dev/pandas/pulls/38843
2020-12-31T03:04:11Z
2021-01-01T23:03:25Z
2021-01-01T23:03:25Z
2021-01-05T22:14:19Z
Update conf.py to execute imports during pdf building
diff --git a/doc/source/conf.py b/doc/source/conf.py index 951a6d4043786..8ab1c8c2f3428 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -427,7 +427,7 @@ ipython_warning_is_error = False -ipython_exec_lines = [ +ipython_execlines = [ "import numpy as np", "import pandas as pd", # This ens...
closes #38451 According [https://ipython.readthedocs.io/en/stable/sphinxext.html](), it should be `ipython_execlines` not `ipython_exec_lines`. Should close issue #38451
https://api.github.com/repos/pandas-dev/pandas/pulls/38841
2020-12-31T02:32:07Z
2021-01-05T12:57:09Z
2021-01-05T12:57:09Z
2021-01-06T04:38:01Z
TYP: follow-ups to recent PRs
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index a9355e30cd3c2..aea9029972de6 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -89,7 +89,7 @@ def _cast_to_common_type(arr: ArrayLike, dtype: DtypeObj) -> ArrayLike: # wrap datetime-likes in EA to ensur...
https://api.github.com/repos/pandas-dev/pandas/pulls/38840
2020-12-31T02:31:36Z
2020-12-31T18:44:22Z
2020-12-31T18:44:22Z
2020-12-31T19:10:02Z
DOC: fix includes
diff --git a/doc/source/conf.py b/doc/source/conf.py index 951a6d4043786..7f7309bae7031 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -68,7 +68,12 @@ "contributors", # custom pandas extension ] -exclude_patterns = ["**.ipynb_checkpoints"] +exclude_patterns = [ + "**.ipynb_checkpoints", + # ...
- Added missing `.` to the `.. include`s - Put the includes in a folder to exclude from Sphinx, to avoid `:orphan:` being written to the HTML Before: <img width="1156" alt="Screen_Shot_2020-12-30_at_7_08_52_PM" src="https://user-images.githubusercontent.com/86842/103387595-99de4380-4ad2-11eb-85bf-8ac8da85676a.pn...
https://api.github.com/repos/pandas-dev/pandas/pulls/38839
2020-12-31T00:10:27Z
2020-12-31T16:39:16Z
2020-12-31T16:39:16Z
2021-01-01T21:14:25Z
Backport PR #38816 on branch 1.2.x (REGR: groupby.sem with nuisance columns)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 5fdc06f1fc6a3..72f76b4749c54 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Bug in repr of float-like strings of an ``object`` dtype having trailing 0's truncated a...
Backport PR #38816: REGR: groupby.sem with nuisance columns
https://api.github.com/repos/pandas-dev/pandas/pulls/38838
2020-12-30T23:39:23Z
2020-12-31T03:02:40Z
2020-12-31T03:02:40Z
2020-12-31T03:02:41Z
DEPR: try_cast kwarg in mask, where
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 5197fd2b23dab..95629e9d1ea29 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -155,7 +155,7 @@ Deprecations - Deprecating allowing scalars passed to the :class:`Categorical` constructor (:issue:`38433`...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry It is silently ignored ATM.
https://api.github.com/repos/pandas-dev/pandas/pulls/38836
2020-12-30T23:23:04Z
2020-12-31T15:51:41Z
2020-12-31T15:51:41Z
2020-12-31T15:56:06Z
BUG: astype_nansafe with copy=False
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index b6d5493aefaa9..d6269fabf0f00 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -296,7 +296,7 @@ Sparse ^^^^^^ - Bug in :meth:`DataFrame.sparse.to_coo` raising ``KeyError`` with columns that are a num...
- [x] closes #34456 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Opens up possibility of addressing #23092
https://api.github.com/repos/pandas-dev/pandas/pulls/38835
2020-12-30T23:13:03Z
2020-12-31T01:49:35Z
2020-12-31T01:49:34Z
2020-12-31T01:57:55Z
BUG: IntervalIndex.intersection returning duplicates
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 83bff6d7bfb2d..19abd082604b6 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -226,7 +226,7 @@ Strings Interval ^^^^^^^^ - Bug in :meth:`IntervalIndex.intersection` and :meth:`IntervalIndex.symmetric...
- [x] closes #38743 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Moved the wrong test code into a new test with adjusted behavior
https://api.github.com/repos/pandas-dev/pandas/pulls/38834
2020-12-30T22:46:08Z
2020-12-31T01:50:22Z
2020-12-31T01:50:22Z
2021-01-01T21:33:37Z
REF: move putmask internals in array_algos.putmask
diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py index 32c84b6eb234f..2a1b6f784a1f2 100644 --- a/pandas/core/array_algos/putmask.py +++ b/pandas/core/array_algos/putmask.py @@ -120,3 +120,37 @@ def _putmask_preserve(new_values: np.ndarray, new, mask: np.ndarray): except (IndexEr...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38833
2020-12-30T22:25:53Z
2020-12-31T01:49:08Z
2020-12-31T01:49:08Z
2020-12-31T01:59:44Z
Backport PR #38819 on branch 1.2.x (REGR: read_excel does not work for most file handles)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 31c5b770b1f35..5fdc06f1fc6a3 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Bug in repr of float-like strings of an ``object`` dtype having trailing 0's truncated a...
Backport PR #38819: REGR: read_excel does not work for most file handles
https://api.github.com/repos/pandas-dev/pandas/pulls/38832
2020-12-30T21:12:57Z
2020-12-30T23:18:37Z
2020-12-30T23:18:37Z
2020-12-30T23:18:37Z
Parametrized groupby allowlist test
diff --git a/pandas/tests/groupby/test_allowlist.py b/pandas/tests/groupby/test_allowlist.py index 34729c771eac9..57ccf6ebd24bd 100644 --- a/pandas/tests/groupby/test_allowlist.py +++ b/pandas/tests/groupby/test_allowlist.py @@ -341,18 +341,9 @@ def test_groupby_function_rename(mframe): assert f.__name__ == na...
Still exploring a few things to remove setting the .data pointer in Cython - this test is liable to fail but very tough to debug with current loop @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/38829
2020-12-30T19:52:09Z
2020-12-31T01:48:53Z
2020-12-31T01:48:53Z
2023-04-12T20:17:38Z
Backport PR #38789 on branch 1.2.x (BUG: Fix precise_xstrtod segfault on long exponent)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 0bc01c683e0ad..31c5b770b1f35 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Bug in repr of float-like strings of an ``object`` dtype having trailing 0's truncated a...
Backport PR #38789: BUG: Fix precise_xstrtod segfault on long exponent
https://api.github.com/repos/pandas-dev/pandas/pulls/38828
2020-12-30T18:41:31Z
2020-12-30T20:28:25Z
2020-12-30T20:28:25Z
2020-12-30T20:28:25Z
CLN: add typing to dtype arg in selection of files in core/arrays (GH38808)
diff --git a/pandas/_typing.py b/pandas/_typing.py index 64452bf337361..0b50dd69f7abb 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -94,8 +94,9 @@ Axes = Collection # dtypes +NpDtype = Union[str, np.dtype] Dtype = Union[ - "ExtensionDtype", str, np.dtype, Type[Union[str, float, int, complex, bool, o...
Follow on PR for #38808 - [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38826
2020-12-30T18:27:55Z
2020-12-31T03:08:30Z
2020-12-31T03:08:30Z
2020-12-31T03:08:33Z
TST: GH30999 Change all pytest.raises in pandas/tests/indexing to tm.external_error_raised
diff --git a/pandas/tests/indexing/multiindex/test_partial.py b/pandas/tests/indexing/multiindex/test_partial.py index 9c356b81b85db..c203d986efd23 100644 --- a/pandas/tests/indexing/multiindex/test_partial.py +++ b/pandas/tests/indexing/multiindex/test_partial.py @@ -178,9 +178,9 @@ def test_partial_loc_missing(self, ...
Addresses xref #30999 for pandas/tests/indexing by changing three bare `pytest.raise` instances to `tm.external_error_raised` This is the last of the simpler PRs for #30999 - after that it gets more complex. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstre...
https://api.github.com/repos/pandas-dev/pandas/pulls/38825
2020-12-30T18:18:50Z
2020-12-31T16:40:14Z
2020-12-31T16:40:14Z
2020-12-31T16:40:17Z
REGR: read_excel does not work for most file handles
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 3ecea674fd34c..df7a8b8775501 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Bug in repr of float-like strings of an ``object`` dtype having trailing 0's truncated a...
- [x] closes #38788 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38819
2020-12-30T16:11:15Z
2020-12-30T21:12:30Z
2020-12-30T21:12:30Z
2020-12-31T16:24:45Z
TST/CLN: Remove duplicate abc tests
diff --git a/pandas/tests/dtypes/test_generic.py b/pandas/tests/dtypes/test_generic.py index 1d0c871eaa0a8..3e95a1f2f50ac 100644 --- a/pandas/tests/dtypes/test_generic.py +++ b/pandas/tests/dtypes/test_generic.py @@ -22,28 +22,6 @@ class TestABCClasses: datetime_array = pd.core.arrays.DatetimeArray(datetime_index)...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry From #38588, this test is a proper subset of the tests immediately below them.
https://api.github.com/repos/pandas-dev/pandas/pulls/38818
2020-12-30T15:55:30Z
2020-12-30T18:43:16Z
2020-12-30T18:43:16Z
2020-12-30T18:43:34Z
MAINT: regex char class improve
diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index 538a52d84b73a..ac9b160ab0968 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -1066,7 +1066,7 @@ def test_replace_compiled_regex(self): values = Series(["fooBAD__barBAD", np.nan]) # test wit...
* remove superfluous regex character classes from the codebase (those that contain a single character incur the overhead of a class with none of the advantages of a class) * for more details, see similar change in NumPy: https://github.com/numpy/numpy/pull/18083 * check performed with some simple [scraping co...
https://api.github.com/repos/pandas-dev/pandas/pulls/38817
2020-12-30T15:44:33Z
2020-12-30T18:42:03Z
2020-12-30T18:42:03Z
2020-12-30T18:42:07Z
REGR: groupby.sem with nuisance columns
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index df7a8b8775501..acbfaa5f4d3bf 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Bug in repr of float-like strings of an ``object`` dtype having trailing 0's truncated a...
- [x] closes #38774 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry We were using the same integer locs in the result of `std` and `count` when computing the quotient for `sem`. However, `std` will drop nuisance colu...
https://api.github.com/repos/pandas-dev/pandas/pulls/38816
2020-12-30T15:40:27Z
2020-12-30T23:38:49Z
2020-12-30T23:38:49Z
2020-12-31T13:33:07Z
CLN: Add typing for dtype argument in io directory (GH38808)
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 221e8b9ccfb14..d54426a437843 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -12,7 +12,7 @@ from pandas._config import config from pandas._libs.parsers import STR_NA_VALUES -from pandas._typing import Buffer, FilePathOrBu...
incremental PR for issue #38808 - [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38814
2020-12-30T15:25:05Z
2020-12-30T21:24:22Z
2020-12-30T21:24:22Z
2020-12-30T21:24:26Z
Backport PR #38723 on branch 1.2.x (BUG: inconsistency between frame.any/all with dt64 vs dt64tz)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 374ac737298d3..0bc01c683e0ad 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -18,6 +18,8 @@ Fixed regressions - :meth:`to_csv` created corrupted zip files when there were more rows than ``chunksize`` ...
Backport PR #38723: BUG: inconsistency between frame.any/all with dt64 vs dt64tz
https://api.github.com/repos/pandas-dev/pandas/pulls/38807
2020-12-30T13:24:07Z
2020-12-30T14:45:19Z
2020-12-30T14:45:19Z
2020-12-30T14:45:19Z
DOC: fix sphinx directive error in 1.2.1 release notes
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 804886fb987ad..ac5c83f7c368e 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -15,9 +15,9 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXI...
https://api.github.com/repos/pandas-dev/pandas/pulls/38806
2020-12-30T12:12:59Z
2020-12-31T10:28:24Z
2020-12-31T10:28:24Z
2020-12-31T10:37:20Z
TST: GH30999 add match=msg to pytest.raises in modules with one simple instance each
diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py index ce9d5b1dca505..e1f339e360c77 100644 --- a/pandas/tests/dtypes/test_inference.py +++ b/pandas/tests/dtypes/test_inference.py @@ -131,7 +131,7 @@ def foo(): inference.is_list_like([]) foo() - with pytes...
This pull request partially addresses xref #30999 to remove bare pytest.raises by adding match=msg. It doesn't close that issue as I have only addressed the following three modules: pandas/tests/dtypes/test_inference.py pandas/tests/libs/test_hashtable.py pandas/tests/resample/test_resampler_grouper.py They are...
https://api.github.com/repos/pandas-dev/pandas/pulls/38805
2020-12-30T11:46:47Z
2020-12-30T13:30:14Z
2020-12-30T13:30:14Z
2020-12-30T13:30:18Z
TST: GH30999 add match=msg to all pytest.raises in pandas/tests/window
diff --git a/pandas/tests/window/moments/test_moments_ewm.py b/pandas/tests/window/moments/test_moments_ewm.py index eceba7f143ab9..70706c027a21e 100644 --- a/pandas/tests/window/moments/test_moments_ewm.py +++ b/pandas/tests/window/moments/test_moments_ewm.py @@ -218,11 +218,12 @@ def test_ewma_halflife_arg(series): ...
This pull request partially addresses xref #30999 to remove bare `pytest.raises` by adding `match=msg`. It doesn't close that issue as I have only addressed test modules in the pandas/tests/window/ directory. I have added `match=msg` to 3 instances of `pytest.raises` and converted another to a `tm.external_error_rai...
https://api.github.com/repos/pandas-dev/pandas/pulls/38804
2020-12-30T11:27:00Z
2020-12-30T13:47:31Z
2020-12-30T13:47:31Z
2020-12-30T13:47:34Z
BUG: avoid attribute error with pyarrow >=0.16.0 and <1.0.0
diff --git a/ci/deps/actions-37-locale.yaml b/ci/deps/actions-37-locale.yaml index 4f9918ca2f0c0..b18ce37d05ca0 100644 --- a/ci/deps/actions-37-locale.yaml +++ b/ci/deps/actions-37-locale.yaml @@ -30,7 +30,7 @@ dependencies: - openpyxl - pandas-gbq - google-cloud-bigquery>=1.27.2 # GH 36436 - - pyarrow>=0.17 ...
Problem: The minimum pyarrow [listed](https://pandas.pydata.org/docs/dev/whatsnew/v1.2.0.html#increased-minimum-versions-for-dependencies) as an optional dependency is 0.15.1. Pyarrow added the compute module that is imported in the change here with pyarrow [0.16.0](https://github.com/apache/arrow/commit/27dded680e84f...
https://api.github.com/repos/pandas-dev/pandas/pulls/38803
2020-12-30T10:47:20Z
2021-01-05T12:23:29Z
2021-01-05T12:23:28Z
2021-01-05T13:23:45Z
TST: GH30999 Add match=msg to all pytest.raises in pandas/tests/reshape
diff --git a/pandas/tests/reshape/test_get_dummies.py b/pandas/tests/reshape/test_get_dummies.py index a32adeb612e7c..42907b3b4e23f 100644 --- a/pandas/tests/reshape/test_get_dummies.py +++ b/pandas/tests/reshape/test_get_dummies.py @@ -1,3 +1,5 @@ +import re + import numpy as np import pytest @@ -30,7 +32,8 @@ def...
This pull request partially addresses xref #30999 to remove bare pytest.raises by adding match=msg. It doesn't close that issue as I have only addressed test modules in the pandas/tests/reshape/ directory. This one was super simple. Fixed 5 bare pytest.raises and didn't do anything complicated or controversial. -...
https://api.github.com/repos/pandas-dev/pandas/pulls/38800
2020-12-30T10:21:53Z
2020-12-30T13:33:38Z
2020-12-30T13:33:38Z
2020-12-30T13:33:42Z
TST: Add hook for Disallow bare pytest.raises
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d78c2bacc4e44..2dade8afbf91f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,5 @@ minimum_pre_commit_version: 2.9.2 +exclude: ^LICENSES/|\.(html|csv|svg)$ repos: - repo: https://github.com/python/black rev: 20.8...
xref #30999 Adding a hook with lots of excluded folders (for now), this can be made stricter as we go along, there's not that much left
https://api.github.com/repos/pandas-dev/pandas/pulls/38799
2020-12-30T08:51:07Z
2021-01-03T21:05:46Z
2021-01-03T21:05:46Z
2021-01-05T16:56:39Z
BUG: GH38672 SeriesGroupBy.value_counts for categorical
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 5197fd2b23dab..ba3af0a6accb3 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -284,7 +284,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- +- Bug in :meth:`SeriesGroupBy.value_coun...
Unobserved categories in Series were being dropped in value_counts, which was inconsistent with Series.value_counts - [x] closes #38672 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38796
2020-12-30T03:06:51Z
2020-12-31T16:41:17Z
2020-12-31T16:41:17Z
2020-12-31T22:09:33Z
REF: implement array_algos.putmask
diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py new file mode 100644 index 0000000000000..32c84b6eb234f --- /dev/null +++ b/pandas/core/array_algos/putmask.py @@ -0,0 +1,122 @@ +""" +EA-compatible analogue to to np.putmask +""" +from typing import Any +import warnings + +import nump...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38793
2020-12-30T02:37:19Z
2020-12-30T19:58:14Z
2020-12-30T19:58:14Z
2020-12-30T20:03:18Z
BUG: DataFrame(dt64data, dtype=td64) corner cases
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index f66098633b45e..d2269b8ef78e1 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -190,7 +190,8 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :class:`DataFrame` and :class:`Series` constructors sometimes dropping...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38792
2020-12-30T02:29:39Z
2020-12-31T23:49:08Z
2020-12-31T23:49:08Z
2021-01-01T02:04:12Z
BUG: Categorical with non-nano dt64
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 1bb5556663c29..4b29663adda23 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -30,6 +30,7 @@ coerce_indexer_dtype, maybe_cast_to_extension_array, maybe_infer_to_datetimelike, ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixes the flaky xfails in test_drop_duplicates
https://api.github.com/repos/pandas-dev/pandas/pulls/38791
2020-12-30T01:49:07Z
2020-12-30T13:35:00Z
2020-12-30T13:35:00Z
2020-12-30T15:42:28Z
Backport PR #38649 on branch 1.2.x (BUG: Fix regression for groupby.indices in case of unused categories)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 649b17e255f3d..374ac737298d3 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -17,7 +17,7 @@ Fixed regressions - The deprecated attributes ``_AXIS_NAMES`` and ``_AXIS_NUMBERS`` of :class:`DataFrame` an...
Backport PR #38649: BUG: Fix regression for groupby.indices in case of unused categories
https://api.github.com/repos/pandas-dev/pandas/pulls/38790
2020-12-29T23:16:53Z
2020-12-30T11:11:20Z
2020-12-30T11:11:20Z
2020-12-30T11:11:20Z
BUG: Fix precise_xstrtod segfault on long exponent
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 4c444ea1020dd..3ecea674fd34c 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Bug in repr of float-like strings of an ``object`` dtype having trailing 0's truncated a...
- [x] closes #38753 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry @snowman2 can you check if this branch returns behavior to what you had before 1.2?
https://api.github.com/repos/pandas-dev/pandas/pulls/38789
2020-12-29T21:00:46Z
2020-12-30T18:41:00Z
2020-12-30T18:40:59Z
2020-12-30T18:54:26Z
Backport PR #38737 on branch 1.2.x (BUG/REG: RollingGroupby MultiIndex levels dropped)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index f275cfa895269..c83a2ff7c1d22 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXIS_NAMES`` and ``_AXIS_NUMBERS`` of :c...
Backport PR #38737: BUG/REG: RollingGroupby MultiIndex levels dropped
https://api.github.com/repos/pandas-dev/pandas/pulls/38784
2020-12-29T18:56:53Z
2020-12-31T14:38:28Z
2020-12-31T14:38:28Z
2020-12-31T14:38:28Z
TYP: ExtensionIndex
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index b6938931e86af..4d4df96953196 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -325,7 +325,7 @@ def __repr__(self) -> str: # ------------------------------------------------------------------------ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38783
2020-12-29T17:44:25Z
2020-12-29T20:29:47Z
2020-12-29T20:29:47Z
2020-12-29T20:33:09Z
BUG: inspect.getmembers(Series)
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index d4219296f5795..9a8a95bec66ad 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -329,21 +329,11 @@ Each data structure has several *constructor properties* for returning a new dat...
Make `inspect.getmembers(Series)` work, previously raised an `AbstractMethodError`. xref: #38740
https://api.github.com/repos/pandas-dev/pandas/pulls/38782
2020-12-29T16:33:01Z
2021-02-07T16:44:02Z
2021-02-07T16:44:02Z
2021-02-08T17:23:38Z
Center rolling window for time offset
diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst index be9c04ae5d4f3..5efb3f40f5018 100644 --- a/doc/source/user_guide/window.rst +++ b/doc/source/user_guide/window.rst @@ -157,6 +157,18 @@ By default the labels are set to the right edge of the window, but a s.rolling(window=5, cente...
- [x] closes #20012 - [x] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added center functionality for `VariableWindowIndexer`. Note - I am unsure if the NotImplementedError in lines 1966-1969 in rolling.py still correct...
https://api.github.com/repos/pandas-dev/pandas/pulls/38780
2020-12-29T14:59:14Z
2021-04-09T16:28:12Z
2021-04-09T16:28:12Z
2021-04-13T12:11:23Z
Backport PR #38766 on branch 1.2.x (BLD: fix build failure py3.9.1 on OSX)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 37562be17f02e..649b17e255f3d 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -41,7 +41,7 @@ I/O Other ~~~~~ -- +- Fixed build failure on MacOS 11 in Python 3.9.1 (:issue:`38766`) - .. ---------...
Backport PR #38766: BLD: fix build failure py3.9.1 on OSX
https://api.github.com/repos/pandas-dev/pandas/pulls/38777
2020-12-29T14:06:02Z
2020-12-29T15:35:02Z
2020-12-29T15:35:02Z
2020-12-29T15:35:02Z
CI,STYLE: add spell check?
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1fd95b8103a41..d78c2bacc4e44 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -minimum_pre_commit_version: '2.9.2' +minimum_pre_commit_version: 2.9.2 repos: - repo: https://github.com/python/black rev: 20.8b1...
IIRC it was suggested in a comment some time ago to use a spell checker, so I thought I'd make a little PR showing how `codespell` would work (for now just applied to `pandas/core`). Is this something we'd want? False positives can be ignored in `setup.cfg` in the `[codespell]` section
https://api.github.com/repos/pandas-dev/pandas/pulls/38776
2020-12-29T11:20:53Z
2020-12-29T17:03:09Z
2020-12-29T17:03:09Z
2020-12-29T17:03:13Z
BUG: Added test cases to check loc on multiindex with NaNs #29751
diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py index 144df1e28f8b6..6c0d1c285acf3 100644 --- a/pandas/tests/indexing/multiindex/test_getitem.py +++ b/pandas/tests/indexing/multiindex/test_getitem.py @@ -197,6 +197,38 @@ def test_frame_mixed_depth_get(): ...
- [x] closes #29751 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added test cases to check loc on multiindex containing NaN values using `np.nan`, `pd.NA`, and `None`
https://api.github.com/repos/pandas-dev/pandas/pulls/38772
2020-12-29T05:05:16Z
2021-01-07T13:58:09Z
2021-01-07T13:58:08Z
2021-01-07T13:58:12Z
DOC: suppress debug messages when displaying plots
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 7629870a8de66..2b329ef362354 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -730,7 +730,7 @@ The :meth:`~plt.close` method is used to `close <https://matplotlib.org/3.1.1/ap ts = ts.cumsum() ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38770
2020-12-29T03:46:04Z
2020-12-29T14:06:41Z
2020-12-29T14:06:41Z
2020-12-29T22:00:30Z
Backport PR #38759 on branch 1.2.x (BUG: float-like string, trailing 0 truncation)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index e280b730679f0..37562be17f02e 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXIS_NAMES`` and ``_AXIS_NUMBERS`` of :c...
Backport PR #38759: BUG: float-like string, trailing 0 truncation
https://api.github.com/repos/pandas-dev/pandas/pulls/38769
2020-12-29T03:19:31Z
2020-12-29T10:22:15Z
2020-12-29T10:22:15Z
2020-12-29T10:22:15Z
CLN: rolling.py and window/aggregations.pyx
diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx index 54a09a6d2ede7..c21e71c407630 100644 --- a/pandas/_libs/window/aggregations.pyx +++ b/pandas/_libs/window/aggregations.pyx @@ -55,39 +55,11 @@ cdef: float64_t NaN = <float64_t>np.NaN -cdef inline int int_max(int a, in...
* Inlined a helper method * Added `const`s * Removed unneeded comments/code
https://api.github.com/repos/pandas-dev/pandas/pulls/38768
2020-12-29T02:31:39Z
2020-12-29T14:05:56Z
2020-12-29T14:05:56Z
2020-12-29T18:43:13Z
Backport PR #38728 on branch 1.2.x (REGR: to_csv created corrupt ZIP files when chunksize<rows)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 769c195229bbd..e280b730679f0 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXI...
Backport PR #38728: REGR: to_csv created corrupt ZIP files when chunksize<rows
https://api.github.com/repos/pandas-dev/pandas/pulls/38767
2020-12-29T00:05:21Z
2020-12-29T03:16:45Z
2020-12-29T03:16:45Z
2020-12-29T03:16:45Z
BLD: fix build failure py3.9.1 on OSX
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index e280b730679f0..cbbb0dfcf3b43 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -40,7 +40,7 @@ I/O Other ~~~~~ -- +- Fixed build failure on MacOS 11 in Python 3.9.1 (:issue:`38766`) - .. ---------...
Ran `brew upgrade` yesterday and ended up bumping from 3.9.0 to 3.9.1, after which I got build failures ``` LooseVersion(python_target) < "10.9" File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/version.py", line 306, in __init__ self.parse(vstr...
https://api.github.com/repos/pandas-dev/pandas/pulls/38766
2020-12-28T23:55:12Z
2020-12-29T14:05:09Z
2020-12-29T14:05:09Z
2020-12-29T15:57:32Z
TYP: DataFrame.(dot, __matmul__)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c32483aa2a231..1abbe37e67b09 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -48,6 +48,7 @@ from pandas._libs.lib import no_default from pandas._typing import ( AggFuncType, + AnyArrayLike, ArrayLike, Axes, Axis, @@ ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/38416/files#r549438292
https://api.github.com/repos/pandas-dev/pandas/pulls/38765
2020-12-28T23:32:46Z
2021-01-05T00:37:14Z
2021-01-05T00:37:13Z
2021-01-06T19:29:38Z
BUG: Series construction with mismatched dt64 data vs td64 dtype
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 77bc080892e6c..0077f1061e588 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -189,7 +189,7 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :class:`DataFrame` and :class:`Series` constructors sometimes dropping...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixing this for DataFrame is much harder, so punting for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/38764
2020-12-28T23:23:35Z
2020-12-29T19:05:43Z
2020-12-29T19:05:43Z
2020-12-29T19:07:22Z
Backport PR #38761 on branch 1.2.x (CI: print build version)
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index 5fe7fc17a98cb..c2f332cc5454a 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -86,6 +86,9 @@ jobs: run: ci/run_tests.sh if: always() + - name: Build Version + run: pushd /tmp && ...
Backport PR #38761: CI: print build version
https://api.github.com/repos/pandas-dev/pandas/pulls/38763
2020-12-28T23:12:44Z
2020-12-28T23:59:57Z
2020-12-28T23:59:57Z
2020-12-28T23:59:57Z
CI: print build version
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index 5fe7fc17a98cb..c2f332cc5454a 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -86,6 +86,9 @@ jobs: run: ci/run_tests.sh if: always() + - name: Build Version + run: pushd /tmp && ...
xref #38344 followup
https://api.github.com/repos/pandas-dev/pandas/pulls/38761
2020-12-28T21:27:36Z
2020-12-28T23:12:15Z
2020-12-28T23:12:15Z
2020-12-29T01:57:33Z