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
REF: collect validator methods for DTA/TDA/PA
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 430f20b359f8b..27b2ed822a49f 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -588,9 +588,6 @@ def __setitem__( # to a period in from_sequence). For DatetimeArray, it's Timestam...
Zero logic changes in this PR. xref #33685 We have a _lot_ of methods for converting arguments to DTA/TDA/PA/DTI/TDI/PI methods to/from i8 representations. ATM these have slightly different behavior, which we should try to bring into sync (and then de-duplicate the code). This PR just collects all those metho...
https://api.github.com/repos/pandas-dev/pandas/pulls/33689
2020-04-20T23:36:19Z
2020-04-21T12:51:41Z
2020-04-21T12:51:41Z
2020-04-21T14:29:17Z
Grammatically updated HTML Footer
diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html index 92126a7b5a2f2..023bfe9e26b78 100644 --- a/web/pandas/_templates/layout.html +++ b/web/pandas/_templates/layout.html @@ -86,7 +86,7 @@ </li> </ul> <p> - pandas is a fiscally ...
Grammatically updated HTML Footer, Adding a period in the 89th line. - [x] 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/33688
2020-04-20T23:16:53Z
2020-04-22T02:34:25Z
2020-04-22T02:34:25Z
2020-04-22T02:34:33Z
CI/DEP: Use numba.extending.is_jitted for numba version > 0.49.0
diff --git a/pandas/core/util/numba_.py b/pandas/core/util/numba_.py index af24189adbc27..29e74747881ae 100644 --- a/pandas/core/util/numba_.py +++ b/pandas/core/util/numba_.py @@ -1,4 +1,5 @@ """Common utilities for Numba operations""" +from distutils.version import LooseVersion import inspect import types from ty...
- [x] xref #33686 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33687
2020-04-20T21:37:24Z
2020-04-20T22:50:06Z
2020-04-20T22:50:06Z
2020-05-26T09:38:20Z
BLD: Set max version of numba to 0.48.0
diff --git a/ci/deps/azure-windows-36.yaml b/ci/deps/azure-windows-36.yaml index 548660cabaa67..92f9bbe662790 100644 --- a/ci/deps/azure-windows-36.yaml +++ b/ci/deps/azure-windows-36.yaml @@ -17,7 +17,7 @@ dependencies: - bottleneck - fastparquet>=0.3.2 - matplotlib=3.0.2 - - numba + - numba<0.49.0 - num...
This should fix the errors in the CI (Travis) builds, e.g. ``` E AttributeError: module 'numba' has no attribute 'targets' ```
https://api.github.com/repos/pandas-dev/pandas/pulls/33686
2020-04-20T21:20:36Z
2020-04-20T21:43:13Z
null
2020-05-27T08:23:27Z
BUG: arg validation in DTA/TDA/PA.take, DTI/TDI/PI.where
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 27b2ed822a49f..6489d07ebdc4b 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -749,7 +749,7 @@ def _validate_fill_value(self, fill_value): ------ ValueError ""...
We have a _lot_ of really similar validation/casting methods in these classes. This is a step in smoothing out the differences between them so we can share them.
https://api.github.com/repos/pandas-dev/pandas/pulls/33685
2020-04-20T21:18:24Z
2020-04-25T21:06:22Z
2020-04-25T21:06:22Z
2020-04-25T21:10:13Z
REF: update unbox_scalar for better shareability
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 430f20b359f8b..8f94212779e02 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -75,9 +75,9 @@ def wrapper(self, other): other = self._scalar_type(other) self._ch...
I'm finding this will make it easier to share a bunch of unpacking/validation code
https://api.github.com/repos/pandas-dev/pandas/pulls/33684
2020-04-20T20:30:16Z
2020-04-20T21:32:53Z
null
2021-03-02T15:51:39Z
TST: Remove some old xfails
diff --git a/pandas/tests/arrays/sparse/test_arithmetics.py b/pandas/tests/arrays/sparse/test_arithmetics.py index bf7d275e4ff7b..4ae1c1e6b63ce 100644 --- a/pandas/tests/arrays/sparse/test_arithmetics.py +++ b/pandas/tests/arrays/sparse/test_arithmetics.py @@ -31,11 +31,6 @@ def _assert(self, a, b): def _check_n...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33680
2020-04-20T18:04:52Z
2020-04-20T21:35:28Z
2020-04-20T21:35:28Z
2020-04-20T21:43:52Z
CLN: Remove redundant mixin to TimedeltaIndex
diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py index 3e3591ee42c30..d2e743739db3d 100644 --- a/pandas/core/indexes/timedeltas.py +++ b/pandas/core/indexes/timedeltas.py @@ -51,7 +51,7 @@ ], TimedeltaArray, ) -class TimedeltaIndex(DatetimeTimedeltaMixin, dtl.TimelikeOps): +...
we already pass-through the relevant attributes
https://api.github.com/repos/pandas-dev/pandas/pulls/33679
2020-04-20T16:50:25Z
2020-04-20T22:14:17Z
2020-04-20T22:14:17Z
2020-04-20T22:16:42Z
REF: remove single-tuple special case for Categorical.__hash__
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 8fe2b3c60d6d0..0224895774c8e 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -482,31 +482,23 @@ def _hash_categories(categories, ordered: Ordered = True) -> int: from pandas.core.util.hashing import (...
https://api.github.com/repos/pandas-dev/pandas/pulls/33678
2020-04-20T16:45:14Z
2020-04-20T19:20:12Z
null
2020-04-21T22:58:49Z
BUG: value_counts not working correctly on ExtensionArrays
diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py index 22e53dbc89f01..d8ba6ced187cb 100644 --- a/pandas/tests/extension/base/methods.py +++ b/pandas/tests/extension/base/methods.py @@ -28,6 +28,18 @@ def test_value_counts(self, all_data, dropna): self.assert_series...
- [ ] closes #33172 - [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/33674
2020-04-20T13:10:13Z
2020-05-01T00:34:44Z
2020-05-01T00:34:43Z
2020-05-01T00:58:27Z
CLN,TYP: Use subsitutions in info docstrings
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 85bb47485a2e7..57c315af09e8d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2326,9 +2326,116 @@ def to_html( ) # ---------------------------------------------------------------------- + @Substitution( + klass="Dat...
Another precursor to #31796, which should make it easier to review/merge ---- screenshots of docs ![image](https://user-images.githubusercontent.com/33491632/79745028-4f7bb480-82ff-11ea-90d5-8c111a449126.png) ![image](https://user-images.githubusercontent.com/33491632/79744668-aaf97280-82fe-11ea-95e6-7cc34eaf...
https://api.github.com/repos/pandas-dev/pandas/pulls/33673
2020-04-20T10:59:19Z
2020-04-22T14:13:21Z
2020-04-22T14:13:21Z
2020-04-22T16:11:58Z
Solve missing interpolation method (cubicspline)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 07849702c646d..cd1cb0b64f74a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -99,6 +99,7 @@ Other enhancements ``df.to_csv(path, compression={'method': 'gzip', 'compresslevel': 1}`` (:issue:`3319...
By commit 8bb2cc1 scipy.interpolate.CubicSpline method is referenced in the pandas documentation (see pandas/core/generic.py) but it is not wrapped by any interpolation method. This PR solves this by adding the corresponding wrapper. SciPy's CubicSpline is a cubic spline data interpolator that allows explicit contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/33670
2020-04-20T06:35:41Z
2020-04-23T17:39:03Z
2020-04-23T17:39:03Z
2020-04-23T20:10:28Z
CLN: make Categorical.codes a simpler property
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index c5cac0cfeef6c..cdd0717849e96 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -199,17 +199,6 @@ def contains(cat, key, container): return any(loc_ in container for loc_ in loc) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33667
2020-04-20T03:10:11Z
2020-04-20T15:20:52Z
2020-04-20T15:20:52Z
2020-04-20T15:29:47Z
CLN: make DTA/TDA check clearer
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 203ea2152886a..067ff32b85862 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -80,8 +80,7 @@ def wrapper(left, right): cache=True, ) @inherit_names( - ["mean", "freq", "fre...
https://api.github.com/repos/pandas-dev/pandas/pulls/33665
2020-04-20T01:13:28Z
2020-04-20T22:38:27Z
2020-04-20T22:38:27Z
2021-04-22T21:01:22Z
TST: CI checks against direct imports from conftest.py
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 45b7db74fa409..427be459d9edc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -150,7 +150,13 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then # Check for imports from pandas._testing instead of `import pandas._testing as tm` invgrep -R -...
- [x] closes #30914
https://api.github.com/repos/pandas-dev/pandas/pulls/33664
2020-04-20T00:47:16Z
2020-04-20T22:34:37Z
2020-04-20T22:34:36Z
2020-04-20T22:34:40Z
REF: use array_algos shift for Categorical.shift
diff --git a/pandas/core/array_algos/transforms.py b/pandas/core/array_algos/transforms.py index f775b6d733d9c..b8b234d937292 100644 --- a/pandas/core/array_algos/transforms.py +++ b/pandas/core/array_algos/transforms.py @@ -10,6 +10,10 @@ def shift(values: np.ndarray, periods: int, axis: int, fill_value) -> np.ndarra...
We have duplicate code in Categorical.shift and Categorical.take that can be refactored out into Categorical._validate_fill_value (which is the name that DTA/TDA/PA use for the same method, which I intend to share eventually, xref #33660). From there the rest of Categorical.shift can dispatch to array_algos.transforms...
https://api.github.com/repos/pandas-dev/pandas/pulls/33663
2020-04-19T23:51:41Z
2020-04-20T01:21:05Z
2020-04-20T01:21:05Z
2020-04-20T01:35:37Z
TST: Dtype constants into pandas._testing to avoid direct imports from conftest
diff --git a/pandas/_testing.py b/pandas/_testing.py index 1f6b645c821c8..4f957b7a55e3a 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -22,7 +22,7 @@ ) import pandas._libs.testing as _testing -from pandas._typing import FilePathOrBuffer, FrameOrSeries +from pandas._typing import Dtype, FilePathOrBuffer...
part of #30914 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` --------------------------------------------------------------------------------------- Took a naive approach to move these constants into `pandas._testing`. Could also m...
https://api.github.com/repos/pandas-dev/pandas/pulls/33661
2020-04-19T22:17:43Z
2020-04-20T00:38:22Z
2020-04-20T00:38:22Z
2020-04-20T00:38:26Z
REF: Implement NDArrayBackedExtensionArray
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 07849702c646d..53432bbc84781 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -190,6 +190,7 @@ Backwards incompatible API changes Previously a ``UnsupportedFunctionCall`` was raised (``AssertionError...
Many EAs are thin wrappers around np.ndarray. We can both de-duplicate a bunch of code and make things easier on downstream authors by implementing `NDArrayBackedExtensionArray` as a base class for such EAs. This PR only implements `NDArrayBackedExtensionArray.take`, but there is quite a bit more that can be shared...
https://api.github.com/repos/pandas-dev/pandas/pulls/33660
2020-04-19T21:04:25Z
2020-04-25T20:58:51Z
2020-04-25T20:58:51Z
2020-04-25T21:30:13Z
ENH: Add optional argument index to pd.melt to maintain index values
diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst index c476e33b8ddde..aa6bf44547040 100644 --- a/doc/source/user_guide/reshaping.rst +++ b/doc/source/user_guide/reshaping.rst @@ -296,6 +296,22 @@ For instance, cheese.melt(id_vars=['first', 'last']) cheese.melt(id_vars=['fir...
Finishing up a stale PR idea: #28859 and #17459 Has some tests and better code. I think it's fair to duplicate the index values and not bend over backwards to maintain uniqueness like in previous iterations. Apologies for the mess, it was a quick job and I didn't want to spend an hour fiddling with the commits....
https://api.github.com/repos/pandas-dev/pandas/pulls/33659
2020-04-19T20:49:20Z
2020-07-09T23:34:45Z
2020-07-09T23:34:45Z
2020-07-10T07:44:49Z
BUG: Fix StringArray use_inf_as_na bug
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 84ad478226175..c14bcb6c6d8c5 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -796,13 +796,13 @@ ExtensionArray ^^^^^^^^^^^^^^ - Fixed bug where :meth:`Series.value_counts` would raise on empty inpu...
- [x] closes #33655 - [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/33656
2020-04-19T15:54:24Z
2020-05-10T17:12:46Z
2020-05-10T17:12:46Z
2020-05-10T17:40:00Z
DOC: Fix heading capitalization in doc/source/whatsnew - part6 (#32550)
diff --git a/doc/source/whatsnew/v0.22.0.rst b/doc/source/whatsnew/v0.22.0.rst index 75949a90d09a6..66d3ab3305565 100644 --- a/doc/source/whatsnew/v0.22.0.rst +++ b/doc/source/whatsnew/v0.22.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_0220: -v0.22.0 (December 29, 2017) ---------------------------- +Version 0.22.0 (December 2...
- [ ] Modify files v0.22.0.rst, v0.23.1.rst, v0.19.0.rst, v0.24.0.rst, v0.24.2.rst -[ ] Add exceptions in 'validate_rst_title_capitalization.py'
https://api.github.com/repos/pandas-dev/pandas/pulls/33653
2020-04-19T12:54:28Z
2020-07-21T20:15:16Z
null
2020-07-21T20:15:17Z
Value counts normalize
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bce6a735b7b07..fc2aaba6e9c0c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -247,7 +247,8 @@ Numeric ^^^^^^^ - Bug in :func:`to_numeric` where float precision was incorrect (:issue:`31364`) - Bug i...
- [x] closes #25970 - [x] closes #32471 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This pull request resolves issues with binning and NA values in both ``Series.value_counts`` and ``SeriesGroupBy.value_counts,`...
https://api.github.com/repos/pandas-dev/pandas/pulls/33652
2020-04-19T12:48:00Z
2021-06-16T13:59:03Z
null
2021-06-16T13:59:03Z
BUG: Create empty dataframe with string dtype fails
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 816ef4e5c9eb6..3cef9fbe49a9b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -759,6 +759,7 @@ ExtensionArray - Fixed bug in :class:`Series` construction with EA dtype and index but no data or scalar d...
- [ ] closes #33623, closes #27953 - [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/33651
2020-04-19T12:10:29Z
2020-05-09T19:56:15Z
2020-05-09T19:56:15Z
2020-05-09T19:56:19Z
TST: add messages to pytest.raises
diff --git a/pandas/tests/arrays/boolean/test_function.py b/pandas/tests/arrays/boolean/test_function.py index c2987dc37b960..49a832f8dda20 100644 --- a/pandas/tests/arrays/boolean/test_function.py +++ b/pandas/tests/arrays/boolean/test_function.py @@ -54,7 +54,8 @@ def test_ufuncs_binary(ufunc): tm.assert_extensi...
- [x] xref #30999 - [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/33650
2020-04-19T10:12:48Z
2020-04-19T18:39:40Z
2020-04-19T18:39:39Z
2020-04-20T01:31:58Z
BUG/API: getitem behavior with list match ndarray/index/series
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 03a547fadd7ca..9d40f9b6ffa2c 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -529,6 +529,7 @@ Indexing - Bug in :meth:`DataFrame.iloc` when slicing a single column-:class:`DataFrame`` with ``Extension...
- [x] closes #33642 - [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/33646
2020-04-19T02:18:36Z
2020-04-19T21:14:41Z
2020-04-19T21:14:40Z
2020-04-19T21:30:44Z
IO: Fix S3 Error Handling
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 03a547fadd7ca..77acf02bade21 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -582,6 +582,8 @@ I/O - Bug in :func:`pandas.io.json.json_normalize` where location specified by `record_path` doesn't point...
closes #27679 closes #32486 - [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/33645
2020-04-19T00:40:51Z
2020-04-21T12:39:06Z
2020-04-21T12:39:06Z
2020-05-26T09:30:12Z
BUG: Groupby quantiles incorrect bins #33200
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 4605c14643fa2..5cbc01a4ba67f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -815,6 +815,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.resample` where an ``AmbiguousTimeError`` would be rais...
Maintain the order of the bins in group_quantile. Updated tests #33200 - [x] closes #33200, closes #33569 - [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/33644
2020-04-19T00:34:00Z
2020-05-25T21:58:07Z
2020-05-25T21:58:07Z
2020-05-26T08:31:01Z
REF: dispatch Series.__setitem__ to loc/iloc, remove redundant helpers
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index d100cb0bb70d8..303365f50c546 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -616,6 +616,8 @@ def _get_setitem_indexer(self, key): # invalid indexer type vs 'other' indexing errors if "cannot do" in str(...
This will entail some extra overhead, but we get a) de-duplication and b) the structure of `__setitem__` comes to parallel the structure of `__getitem__`, which i find helpful grok-wise.
https://api.github.com/repos/pandas-dev/pandas/pulls/33643
2020-04-18T23:56:25Z
2020-04-19T21:12:39Z
2020-04-19T21:12:39Z
2020-04-19T21:30:23Z
CLN: remove unnecessary non-scalar code in maybe_upcast_putmask
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index df70e73c6aadb..c9419fded5de9 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -350,6 +350,7 @@ def maybe_cast_to_extension_array(cls: Type["ExtensionArray"], obj, dtype=None): def maybe_upcast_putmask(result: np.ndarr...
A few months ago we got rid of the non-scalar case, so some of this became unnecessary
https://api.github.com/repos/pandas-dev/pandas/pulls/33641
2020-04-18T23:42:08Z
2020-04-19T18:40:54Z
2020-04-19T18:40:54Z
2020-04-19T18:44:57Z
DOC: Fix: single
diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index 3f15c91f83c6a..eb7ee000a9a86 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -398,7 +398,7 @@ data set, a sliding window of the data or grouped by categories. The latter is a ...
One word in documentation was misspelled: single
https://api.github.com/repos/pandas-dev/pandas/pulls/33640
2020-04-18T22:42:49Z
2020-04-18T23:27:41Z
2020-04-18T23:27:41Z
2020-04-19T15:02:59Z
TST: groupby-reindex on DTI
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index 9fcbabb07857e..e2b5118922a5a 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -491,6 +491,26 @@ def test_apply_with_duplicated_non_sorted_axis(test_series): tm.assert_frame_equa...
Add test to check whether reindexing works correctly. - [ ] closes #26209 - [ ] 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/33638
2020-04-18T21:12:01Z
2020-04-25T22:05:11Z
2020-04-25T22:05:11Z
2020-04-25T22:05:14Z
REF: _AXIS_TO_AXIS_NUMBER to simplify axis access
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index 992cdfa5d7332..56ef6fc479f2c 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -1333,33 +1333,6 @@ Values can be set to NaT using np.nan, similar to datetime y[1] = np.nan y -Al...
This adds a dict called ``_AXIS_TO_AXIS_NUMBER `` to NDFrame/DataFrame where the keys are the allowed parameter values for the ``axis`` parameter in various ndframe methods and the dict values are the related axis number. This makes getting to the correct axis more straight forward, see for example the new ``_get_axis_...
https://api.github.com/repos/pandas-dev/pandas/pulls/33637
2020-04-18T20:09:29Z
2020-04-21T12:43:17Z
2020-04-21T12:43:17Z
2020-04-21T13:32:25Z
ENH: allow passing freq=None to DatetimeIndex/TimedeltaIndex
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index af5834f01c24c..00e24478b09dd 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1790,6 +1790,7 @@ def maybe_infer_freq(freq): ------- freq : {DateOffset, None} freq_infer :...
cc @jreback discussed elsewhere
https://api.github.com/repos/pandas-dev/pandas/pulls/33635
2020-04-18T17:00:30Z
2020-04-25T23:54:10Z
2020-04-25T23:54:10Z
2020-04-26T00:11:17Z
CLN: replaced Appender with doc
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9ed9db801d0a8..f0b690bc56d04 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -54,12 +54,7 @@ from pandas.compat._optional import import_optional_dependency from pandas.compat.numpy import function as nv from pandas.errors import A...
- [x] ref #31942 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] replaced the Appender/Substitute decorators with doc
https://api.github.com/repos/pandas-dev/pandas/pulls/33633
2020-04-18T16:20:35Z
2020-09-13T22:20:56Z
2020-09-13T22:20:56Z
2020-09-13T22:21:03Z
IO: Fix parquet read from s3 directory
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e06b586926a3e..5b9749aac495c 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -625,6 +625,8 @@ I/O - Bug in :meth:`~DataFrame.to_parquet` was not raising ``PermissionError`` when writing to a private s...
- [x] closes https://github.com/pandas-dev/pandas/issues/26388 - [x] closes https://github.com/pandas-dev/pandas/issues/27596 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (Seems to have also fixed the xfailing t...
https://api.github.com/repos/pandas-dev/pandas/pulls/33632
2020-04-18T16:01:56Z
2020-04-26T21:41:16Z
2020-04-26T21:41:15Z
2020-05-29T22:14:08Z
CLN: Clean missing.py
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 08a6d42042c1c..d329f4337de2e 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -208,11 +208,10 @@ def _use_inf_as_na(key): def _isna_ndarraylike(obj): - is_extension = is_extension_array_dtype(obj.dt...
Random nitpick here
https://api.github.com/repos/pandas-dev/pandas/pulls/33631
2020-04-18T15:21:01Z
2020-04-19T22:24:25Z
2020-04-19T22:24:24Z
2020-04-19T22:25:25Z
BUG: DataFrameGroupby std/sem modify grouped column when as_index=False
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 73892da2cbf71..15adb74e27ba7 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -817,7 +817,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.min` and :meth:`Rolling.max`: Growing memory usage after ...
- [x] closes #10355 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry When working on this, I noticed an unrelated line of code that could be moved inside an if-block and made the change. Should unrelated cleanups like...
https://api.github.com/repos/pandas-dev/pandas/pulls/33630
2020-04-18T15:18:20Z
2020-05-19T12:56:49Z
2020-05-19T12:56:49Z
2020-07-11T16:02:09Z
BUG: Fix Categorical use_inf_as_na bug
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 719178a67459d..e7b79bed148dd 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -480,6 +480,7 @@ Categorical - :meth:`Categorical.fillna` now accepts :class:`Categorical` ``other`` argument (:issue:`3242...
- [x] closes #33594 - [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/33629
2020-04-18T14:25:58Z
2020-04-27T21:07:23Z
2020-04-27T21:07:23Z
2020-05-26T09:34:25Z
inspect-safety for DataFrame._constructor_expanddim
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 85bb47485a2e7..56a9b57a8e720 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -422,7 +422,12 @@ def _constructor(self) -> Type["DataFrame"]: @property def _constructor_expanddim(self): - raise NotImplementedError("Not suppo...
- [x] closes #31549, closes #31474 - [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/33628
2020-04-18T14:07:48Z
2020-04-21T12:53:51Z
2020-04-21T12:53:51Z
2020-04-21T14:37:23Z
TST: Groupby first/last/nth nan column test
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index 947907caf5cbc..0cbfbad85a8b6 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -140,6 +140,18 @@ def test_first_last_nth_dtypes(df_mixed_floats): assert f.dtype == "int64" +def test_firs...
- [X] xref https://github.com/pandas-dev/pandas/issues/33591#issuecomment-615365647 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The first two asserts (`first()`/`last()`) fail on `1.0.3`, as expected.
https://api.github.com/repos/pandas-dev/pandas/pulls/33627
2020-04-18T11:37:32Z
2020-04-23T21:30:56Z
2020-04-23T21:30:56Z
2020-04-23T21:31:06Z
BUG: support median function for custom BaseIndexer rolling windows
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a797090a83444..915827660a110 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -175,7 +175,7 @@ Other API changes - :meth:`Groupby.groups` now returns an abbreviated representation when called on large ...
- [X] xref #32865 - [X] 1 tests added / 1 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ## Scope of PR This PR makes sure that when we calculate the median in `roll_median_c`, we override the maximum window width with the correct va...
https://api.github.com/repos/pandas-dev/pandas/pulls/33626
2020-04-18T10:56:16Z
2020-04-21T12:56:43Z
2020-04-21T12:56:43Z
2020-04-26T11:34:35Z
CLN: simplify info
diff --git a/pandas/io/formats/info.py b/pandas/io/formats/info.py index 1fbc321160120..7b5e553cf394e 100644 --- a/pandas/io/formats/info.py +++ b/pandas/io/formats/info.py @@ -158,17 +158,18 @@ def info( lines.append(str(type(data))) lines.append(data.index._summary()) - if len(data.columns) == 0: + ...
precursor to #31796
https://api.github.com/repos/pandas-dev/pandas/pulls/33625
2020-04-18T10:43:15Z
2020-04-19T18:59:29Z
2020-04-19T18:59:29Z
2020-04-19T19:02:02Z
BUG: pd.Series.replace does not preserve the original dtype
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 366ea54a510ef..ad2599f765380 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1010,7 +1010,12 @@ def coerce_to_target_dtype(self, other): if is_dtype_equal(self.dtype, dtype): ...
- [ ] closes #33484 - [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/33622
2020-04-18T06:57:53Z
2020-09-25T09:33:29Z
null
2020-09-25T09:33:30Z
REF: Make numba function cache globally accessible
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index c007d4920cbe7..504de404b2509 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -76,6 +76,7 @@ from pandas.core.internals import BlockManager, make_block from pandas.core.series import Series from pand...
- [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` For all the numba accessible operations, we use a cache to store compiled JIT'd functions for performance. This `_numba_func_cache` used to be an attribute of `Rolling` and `Groupby` objects befo...
https://api.github.com/repos/pandas-dev/pandas/pulls/33621
2020-04-18T05:03:47Z
2020-04-19T22:23:37Z
2020-04-19T22:23:37Z
2020-04-20T00:45:53Z
CLN: isort core/api.py
diff --git a/setup.cfg b/setup.cfg index 6c42b27c7b015..f7370b6cef8d6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -119,7 +119,7 @@ combine_as_imports = True line_length = 88 force_sort_within_sections = True skip_glob = env, -skip = pandas/__init__.py,pandas/core/api.py +skip = pandas/__init__.py [mypy] ignore_mis...
```isort --quiet --recursive --check-only pandas asv_bench scripts``` runs fine
https://api.github.com/repos/pandas-dev/pandas/pulls/33619
2020-04-18T01:43:11Z
2020-04-18T03:40:13Z
2020-04-18T03:40:13Z
2020-04-18T03:40:18Z
CLN: Remove unrequired imports
diff --git a/pandas/io/common.py b/pandas/io/common.py index ff527de79c387..dd3d205ca90eb 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -20,8 +20,7 @@ Type, Union, ) -from urllib.parse import ( # noqa - urlencode, +from urllib.parse import ( urljoin, urlparse as parse_url, ...
Looks like these are no longer needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/33618
2020-04-18T01:40:11Z
2020-04-19T18:46:52Z
2020-04-19T18:46:52Z
2020-04-19T18:47:01Z
CLN: Cython warnings for type declartions
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index d3d8bead88d08..1e53b789aa05c 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -141,10 +141,10 @@ cdef class BlockPlacement: return BlockPlacement(val) - def delete(self, loc) -> "BlockPlacement": + d...
``` warning: pandas/_libs/internals.pyx:144:29: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: pandas/_libs/internals.pyx:147:32: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: pandas/_libs/internals.pyx:188:28: Strin...
https://api.github.com/repos/pandas-dev/pandas/pulls/33617
2020-04-18T01:37:29Z
2020-04-19T21:15:19Z
2020-04-19T21:15:19Z
2020-05-01T22:03:19Z
REF: get .items out of BlockManager.apply
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a28f89a79a880..ac0dffa8f6aa8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8665,6 +8665,11 @@ def _where( else: align = self._get_axis_number(axis) == 1 + if align and isinstance(other, NDFrame): + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33616
2020-04-18T01:28:13Z
2020-04-19T23:30:51Z
2020-04-19T23:30:51Z
2020-04-19T23:53:03Z
CLN: avoid catching AssertionError, AttributeError in NDFrame methods
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a28f89a79a880..490d3b8f4e003 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -701,10 +701,8 @@ def pop(self: FrameOrSeries, item) -> FrameOrSeries: """ result = self[item] del self[item] - try: + ...
@WillAyd when i run `mypy` manually it passes, but when run via the pre-commit hook I get ``` pandas/core/internals/blocks.py:2739: error: unused 'type: ignore' comment pandas/core/generic.py:4034: error: unused 'type: ignore' comment pandas/core/generic.py:4093: error: unused 'type: ignore' comment Found 3 erro...
https://api.github.com/repos/pandas-dev/pandas/pulls/33615
2020-04-17T20:56:51Z
2020-04-21T14:47:58Z
2020-04-21T14:47:58Z
2020-04-21T14:56:55Z
CLN: assorted cleanups
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index e4aeb7ad69792..9bb5e10348e47 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -55,9 +55,7 @@ from pandas.core.dtypes.common import ( is_bool_dtype, is_object_dtype, is_datetime64_dtype, pandas_dtype, is_extensio...
Trying to clear out my local CLN branches
https://api.github.com/repos/pandas-dev/pandas/pulls/33614
2020-04-17T20:52:26Z
2020-04-17T21:39:09Z
2020-04-17T21:39:08Z
2020-04-17T22:06:38Z
Fixed bug. Added in check for ufunc and evaluates inner expression be…
diff --git a/pandas/core/computation/expr.py b/pandas/core/computation/expr.py index c59952bea8dc0..ec7e4c107edf5 100644 --- a/pandas/core/computation/expr.py +++ b/pandas/core/computation/expr.py @@ -670,19 +670,26 @@ def visit_Call(self, node, side=None, **kwargs): ) return res(*new_ar...
…fore evaluating outer expression - [x] closes #24670 - [x] passes `black pandas`
https://api.github.com/repos/pandas-dev/pandas/pulls/33613
2020-04-17T20:43:11Z
2020-08-07T22:56:51Z
null
2020-08-07T22:56:51Z
DOC: Remove extra backtick in example in documentation.
diff --git a/doc/source/getting_started/intro_tutorials/10_text_data.rst b/doc/source/getting_started/intro_tutorials/10_text_data.rst index 4c03a276090d7..a7f3bdc9abcc6 100644 --- a/doc/source/getting_started/intro_tutorials/10_text_data.rst +++ b/doc/source/getting_started/intro_tutorials/10_text_data.rst @@ -199,7 +...
:meth:`~Series.idxmax`` --> :meth:`~Series.idxmax` - [x] 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/33612
2020-04-17T17:16:41Z
2020-04-17T17:55:09Z
2020-04-17T17:55:09Z
2020-04-25T17:06:31Z
BUG: set_levels set wrong order levels for MutiIndex
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 4e2d07ddf9225..a046d60e79ed0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -741,7 +741,14 @@ def _set_levels( self._tuples = None self._reset_cache() - def set_levels(self, levels, lev...
- [ ] closes #33420 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added parameter that allows user to reset codes
https://api.github.com/repos/pandas-dev/pandas/pulls/33611
2020-04-17T16:13:30Z
2020-05-25T22:43:57Z
null
2020-05-25T22:43:58Z
TYP: type NDFrame.(_get_axis|_get_axis_name|_get_axis_number)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2f4e961ff433f..dabe589f86ee9 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -137,7 +137,9 @@ Other API changes Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - :meth:`DataFra...
Gives return types to ``NDFrame._get_axis`` etc.
https://api.github.com/repos/pandas-dev/pandas/pulls/33610
2020-04-17T15:31:35Z
2020-04-18T19:07:45Z
2020-04-18T19:07:45Z
2020-04-18T19:07:49Z
TST: make expected DTI/TDI results more specific
diff --git a/pandas/tests/indexes/datetimes/test_misc.py b/pandas/tests/indexes/datetimes/test_misc.py index bb228eadccc6c..42a72125ba411 100644 --- a/pandas/tests/indexes/datetimes/test_misc.py +++ b/pandas/tests/indexes/datetimes/test_misc.py @@ -25,7 +25,8 @@ def test_range_edges(self): "1970-01-01 ...
assert_index_equal doesnt check for matching freq. I've got a branch that changes that, but the diff is massive, so i am first going through the tests and updating the `expected`s so that they will pass once that check is in place. Also in this sequence: xref #33604
https://api.github.com/repos/pandas-dev/pandas/pulls/33609
2020-04-17T15:22:30Z
2020-04-17T21:46:25Z
2020-04-17T21:46:25Z
2020-04-17T22:00:29Z
DOC/CLN: Clean/Fix documentation for Window module
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c8d08277e9a26..4f85a89faf24c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -322,8 +322,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04,...
- xref #31661 - xref #28792 - Added '.' before dataframe/series reference to fix missing link problem. Don't know if it's the best approach. - Changed base template that is used by some functions to return better See Also section. Hope it's ok. - Also question about Window class. It doesn't has its counterpar...
https://api.github.com/repos/pandas-dev/pandas/pulls/33608
2020-04-17T12:58:55Z
2020-05-07T03:29:09Z
2020-05-07T03:29:09Z
2020-05-07T07:59:10Z
ENH: general concat with ExtensionArrays through find_common_type
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 7ad7e8f5a27b0..e4ef752a33635 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -241,6 +241,9 @@ Backwards incompatible API changes - :meth:`DataFrame.at` and :meth:`Series.at` will raise a ``TypeError``...
Exploring what is being discussed in https://github.com/pandas-dev/pandas/issues/22994. @TomAugspurger your idea seems to be working nicely! (it almost removes as much code than it adds (apart from tests/docs), ànd fixes the EA concat bugs ;)) Few notes compared to proposal in #22994: - Since we already have a `f...
https://api.github.com/repos/pandas-dev/pandas/pulls/33607
2020-04-17T10:05:51Z
2020-05-02T16:29:44Z
2020-05-02T16:29:44Z
2020-05-02T17:26:21Z
BUG: support count function for custom BaseIndexer rolling windows
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2a641a37b46d8..50d97284b9023 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -174,8 +174,8 @@ Other API changes - Added :meth:`DataFrame.value_counts` (:issue:`5377`) - :meth:`Groupby.groups` now ret...
- [X] xref #32865 - [X] 1 tests added / 1 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ## Scope of PR This PR makes sure that when we call `count` with a `BaseIndexer` subclass, custom `start` and `end` arrays get calculated, and t...
https://api.github.com/repos/pandas-dev/pandas/pulls/33605
2020-04-17T07:28:21Z
2020-04-17T21:33:07Z
2020-04-17T21:33:07Z
2020-04-18T05:45:10Z
BUG: DatetimeIndex.intersection losing freq and tz
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0682e179a7640..8c65a7268aa92 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -458,6 +458,7 @@ Datetimelike - Bug in :class:`Timestamp` arithmetic when adding or subtracting a ``np.ndarray`` with ``tim...
- [ ] 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/33604
2020-04-17T02:37:56Z
2020-04-17T21:24:56Z
2020-04-17T21:24:56Z
2020-04-17T22:07:16Z
.format changed to f string
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 607a1b75dcfcd..e3f4a80ecce7c 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -1727,20 +1727,19 @@ def flip(xs) -> np.ndarray: tolerance = self.tolerance # we require sortedness and non-null...
.format changed to f string https://github.com/pandas-dev/pandas/issues/29547 - [ ] closes #xxxx - [x] 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/33602
2020-04-17T00:59:56Z
2020-04-17T02:58:37Z
2020-04-17T02:58:36Z
2020-04-17T02:58:45Z
PERF: op(frame, series) when series is not EA
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 2745db58e83e3..8aa29468559b2 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -67,7 +67,7 @@ def time_series_op_with_fill_value_no_nas(self): self.ser.add(self.ser, fill_value=4...
We have the same optimization in place for the flex ops. ipython results for the asv this adds: ``` In [3]: arr = np.arange(10 ** 6).reshape(100, -1) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33600
2020-04-17T00:39:34Z
2020-04-25T21:40:30Z
2020-04-25T21:40:30Z
2020-04-25T21:46:55Z
CLN: remove BlockManager._get_counts, get_dtype_counts
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index a3aff45afa116..44f71b392c0eb 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -564,7 +564,7 @@ def setup(self): def time_frame_get_dtype_counts(self): with wa...
https://api.github.com/repos/pandas-dev/pandas/pulls/33599
2020-04-16T21:01:28Z
2020-04-17T02:34:54Z
2020-04-17T02:34:54Z
2020-04-17T03:00:30Z
CLN: trim unreachable branches in _compare_or_regex_search
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 12e553cbd7ca4..bb0e9a27b376b 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1739,7 +1739,7 @@ def form_blocks(arrays, names: Index, axes) -> List[Block]: return blocks -def _simp...
https://api.github.com/repos/pandas-dev/pandas/pulls/33598
2020-04-16T20:57:40Z
2020-04-17T02:36:03Z
2020-04-17T02:36:03Z
2020-04-17T02:58:54Z
PERF: always slice when indexing on columns
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index 1791cbb85c355..5da32409c317f 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -52,6 +52,7 @@ class BlockPlacement: def delete(self, loc) -> BlockPlacement: ... def append(self, others: list[BlockPlacement]) -...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Touched on in #32779, this makes all\* DataFrame indexing-on-columns do slicing instead of taking, so doesn't make copies. \* Actually there is a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33597
2020-04-16T20:35:08Z
2021-11-28T21:05:35Z
null
2021-12-06T00:53:36Z
Update _core.py with missing parameters
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index e466a215091ea..efa69c9b7d854 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -606,8 +606,21 @@ class PlotAccessor(PandasObject): - 'pie' : pie plot - 'scatter' : scatter plot - 'hexbin' : hexbin plo...
added missing parameters: - ax - subplots - sharex - sharey - secondary_y - sort_columns - stacked - [ ] 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/33596
2020-04-16T20:15:12Z
2020-05-06T21:22:15Z
2020-05-06T21:22:15Z
2020-05-07T11:19:22Z
DEPR: Deprecate week, weekofyear in Series.dt,DatetimeIndex
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 898d18af56f0e..c33cd505d0948 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -590,6 +590,9 @@ Deprecations - :func:`pandas.api.types.is_categorical` is deprecated and will be removed in a future ver...
Closes https://github.com/pandas-dev/pandas/issues/33503 This PR is a followup to #33220 and implements what was discussed there. A few comments: - `DatetimeIndex.isocalendar` does not set the index on the returned dataframe, leading to some cumbersome syntax. This may be worth changing, please let me k...
https://api.github.com/repos/pandas-dev/pandas/pulls/33595
2020-04-16T20:02:13Z
2020-05-26T03:22:04Z
2020-05-26T03:22:03Z
2020-05-26T06:36:11Z
Added a check for standard documentation
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 45b7db74fa409..13e232610c929 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -237,6 +237,14 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" * RET=$(($RET + $?)) ; ech...
- [ ] closes #33213 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I created a check to see which files contain Pandas or *pandas* which will be of use for individuals aiming to resolve issue #32316. When the codec...
https://api.github.com/repos/pandas-dev/pandas/pulls/33592
2020-04-16T15:41:44Z
2020-07-17T11:16:19Z
null
2023-05-11T01:19:36Z
TST: added test for GH28597
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index da8327f64e26f..b2545e0e1b4d2 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1392,3 +1392,48 @@ def test_read_only_category_no_sort(): expected = DataFrame...
Added test to ensure that categories stay ordered when grouping with missing values. - [ ] closes #28597 - [X] 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/33588
2020-04-16T11:05:18Z
2020-04-17T22:08:52Z
2020-04-17T22:08:51Z
2020-04-17T22:09:13Z
BUG: Raise a TypeError when record_path doesn't point to an array
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 82c43811c0444..5762c60a0d10a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -529,6 +529,7 @@ I/O - Bug in :meth:`DataFrame.to_sql` where an ``AttributeError`` was raised when saving an out of bounds ...
When `record_path` points to something that is Iterable but is not a sequence in JSON world we will receive odd results. ``` >>> json_normalize([{'key': 'value'}], record_path='key') 0 0 v 1 a 2 l 3 u 4 e ``` Based on RFC 8259 (https://tools.ietf.org/html/rfc8259) a JSON value MUST be object, array...
https://api.github.com/repos/pandas-dev/pandas/pulls/33585
2020-04-16T08:19:35Z
2020-04-16T23:38:21Z
2020-04-16T23:38:21Z
2020-04-17T05:04:34Z
TST: add message check to pytest.raises (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 df4c218cbf9bf..9a8d03dc47529 100644 --- a/pandas/tests/arrays/boolean/test_arithmetic.py +++ b/pandas/tests/arrays/boolean/test_arithmetic.py @@ -23,20 +23,25 @@ def test_error(self, data, all_arithmetic_o...
- [ ] xref #30999 - [ ] 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/33584
2020-04-16T06:35:01Z
2020-04-16T14:08:59Z
null
2020-04-16T14:08:59Z
Issue 33428 fix
diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 30c5ba0ed94b6..65af0b50178bb 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -359,8 +359,7 @@ def parallel_coordinates( Examples -------- >>> from matplotlib import pyplot as plt - >>> df = pd.read_csv('http...
- [ ] closes #33428 - [ ] 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/33583
2020-04-16T06:34:31Z
2020-04-22T04:00:45Z
null
2020-04-22T04:17:57Z
fixup some f-strings
diff --git a/pandas/tests/util/test_assert_frame_equal.py b/pandas/tests/util/test_assert_frame_equal.py index fe3e1ff906919..9b4bb151c04ec 100644 --- a/pandas/tests/util/test_assert_frame_equal.py +++ b/pandas/tests/util/test_assert_frame_equal.py @@ -219,7 +219,7 @@ def test_frame_equal_unicode(df1, df2, msg, by_bloc...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #29547
https://api.github.com/repos/pandas-dev/pandas/pulls/33582
2020-04-16T06:34:21Z
2020-04-18T19:44:17Z
null
2020-04-19T00:12:02Z
Issue 30999 fix
diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py index df4c218cbf9bf..9a8d03dc47529 100644 --- a/pandas/tests/arrays/boolean/test_arithmetic.py +++ b/pandas/tests/arrays/boolean/test_arithmetic.py @@ -23,20 +23,25 @@ def test_error(self, data, all_arithmetic_o...
- [ ] 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/33581
2020-04-16T06:34:05Z
2020-05-22T10:39:09Z
null
2020-05-22T10:39:09Z
Update pytables version
diff --git a/ci/deps/azure-36-minimum_versions.yaml b/ci/deps/azure-36-minimum_versions.yaml index e553330b962a2..ae8fffa59fd50 100644 --- a/ci/deps/azure-36-minimum_versions.yaml +++ b/ci/deps/azure-36-minimum_versions.yaml @@ -21,7 +21,7 @@ dependencies: - numexpr=2.6.2 - numpy=1.13.3 - openpyxl=2.5.7 - - p...
Based on https://github.com/pandas-dev/pandas/pull/32700#pullrequestreview-391684059 I update pytables minimal required version to 3.4.3 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/33580
2020-04-16T06:10:51Z
2020-04-16T19:45:00Z
2020-04-16T19:45:00Z
2020-04-16T19:45:01Z
solve bug #32580
diff --git a/pandas/core/base.py b/pandas/core/base.py index 5945d8a4b432d..dab2e8a217dd5 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -438,7 +438,19 @@ def is_any_frame() -> bool: # we have a dict of DataFrames # return a MI DataFrame - return concat(...
…ns is specified. - [ ] closes #32580 - [ ] 0 tests added / 0 passed - [ ] passes `black pandas`
https://api.github.com/repos/pandas-dev/pandas/pulls/33579
2020-04-16T04:12:36Z
2020-04-16T15:13:16Z
null
2020-04-16T15:13:16Z
DOC: Added check for standard
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 45b7db74fa409..838cf88300db5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -377,5 +377,14 @@ if [[ -z "$CHECK" || "$CHECK" == "typing" ]]; then RET=$(($RET + $?)) ; echo $MSG "DONE" fi +### Checking for standardized documentation ### +echo "Ch...
- [ ] xref #32316 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is my first time contributing, if I made any errors please tell me! I tried to continue what @joybhallaa was working on. I made a check to see w...
https://api.github.com/repos/pandas-dev/pandas/pulls/33578
2020-04-16T00:32:03Z
2020-04-16T15:18:59Z
null
2020-04-16T15:18:59Z
TST: Added test case for DataFrame.at
diff --git a/pandas/tests/frame/indexing/test_at.py b/pandas/tests/frame/indexing/test_at.py new file mode 100644 index 0000000000000..9c2d88f1589c2 --- /dev/null +++ b/pandas/tests/frame/indexing/test_at.py @@ -0,0 +1,14 @@ +from datetime import datetime, timezone + +import pandas as pd +import pandas._testing as tm +...
- [x] closes #33544 - [x] tests added - [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/33577
2020-04-15T23:31:59Z
2020-04-21T13:25:22Z
2020-04-21T13:25:22Z
2020-04-21T14:53:36Z
ENH: Add index to output of assert_series_equal on category and datetime values
diff --git a/pandas/_testing.py b/pandas/_testing.py index 1f6b645c821c8..d2b48b54e8ab0 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -999,7 +999,12 @@ def _raise(left, right, err_msg): def assert_extension_array_equal( - left, right, check_dtype=True, check_less_precise=False, check_exact=False +...
- [ ] closes #xxxx - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is really an extension of #31435, which added index output to the messages produced when series (and DataFrames) are compared. I failed to noti...
https://api.github.com/repos/pandas-dev/pandas/pulls/33575
2020-04-15T22:19:44Z
2020-04-26T20:22:51Z
2020-04-26T20:22:51Z
2020-04-26T20:22:54Z
BUG: DatetimeIndex.insert on empty can preserve freq
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 82c43811c0444..f892dcdd364b9 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -479,6 +479,7 @@ Indexing - Bug in :meth:`DataFrame.copy` _item_cache not invalidated after copy causes post-copy value upd...
- [ ] 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/33573
2020-04-15T21:21:47Z
2020-04-16T20:53:03Z
2020-04-16T20:53:03Z
2020-04-16T20:59:42Z
BUG: set_levels set wrong order levels for MutiIndex
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 4e2d07ddf9225..a046d60e79ed0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -741,7 +741,14 @@ def _set_levels( self._tuples = None self._reset_cache() - def set_levels(self, levels, lev...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added parameter that allows user to reset codes
https://api.github.com/repos/pandas-dev/pandas/pulls/33572
2020-04-15T20:21:14Z
2020-04-17T16:07:47Z
null
2020-04-17T16:07:47Z
BUG: Debug grouped quantile with NA values
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2a641a37b46d8..65cc8df30cdce 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -598,6 +598,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.agg` with dictionary input losing ``ExtensionArr...
- [x] closes #33569 - [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/33571
2020-04-15T20:10:13Z
2020-05-04T12:48:43Z
null
2020-05-04T12:48:47Z
Reverted cython pin
diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml index 17c3d318ce54d..29ebfe2639e32 100644 --- a/ci/deps/azure-37-numpydev.yaml +++ b/ci/deps/azure-37-numpydev.yaml @@ -14,8 +14,7 @@ dependencies: - pytz - pip - pip: - - cython==0.29.16 - # GH#33507 cython 3.0a1 is causing Typ...
reverts #33534 and closes #33507
https://api.github.com/repos/pandas-dev/pandas/pulls/33570
2020-04-15T19:37:17Z
2020-04-22T04:17:18Z
null
2020-06-11T15:40:31Z
DOC: Fix heading capitalization in doc/source/whatsnew - part5 (#32550)
diff --git a/doc/source/whatsnew/v0.18.0.rst b/doc/source/whatsnew/v0.18.0.rst index e371f1d9fe69a..fbe24675ddfe2 100644 --- a/doc/source/whatsnew/v0.18.0.rst +++ b/doc/source/whatsnew/v0.18.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_0180: -v0.18.0 (March 13, 2016) ------------------------- +Version 0.18.0 (March 13, 2016) ...
-Quite a lot of complicated issues here, need reviewing. Such as 'Groupby' transformed to 'GroupBy', 'I/O' to 'IO', and some others. - [ ] Modify files v0.18.0.rst, v0.18.1.rst, v0.19.0.rst, v0.19.1.rst, v0.19.2.rst, v0.20.0.rst, v0.20.2.rst, v0.20.3.rst, v0.21.0.rst, v0.21.1.rst -File v0.20.0.rst has bad file n...
https://api.github.com/repos/pandas-dev/pandas/pulls/33568
2020-04-15T15:53:50Z
2020-05-06T21:14:50Z
2020-05-06T21:14:49Z
2020-05-06T21:14:57Z
CI: Fix jedi deprecation warning for 0.17.0 on IPython
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 4149485be181d..ec8613faaa663 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -529,7 +529,18 @@ async def test_tab_complete_warning(self, ip): code = "import pandas as pd; df = pd.DataFrame()...
- [ ] closes #33567 - [ ] 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/33566
2020-04-15T15:09:09Z
2020-04-15T18:09:32Z
2020-04-15T18:09:32Z
2020-05-26T09:40:37Z
REF: simplify broadcasting code
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index e693341d10a55..04089e81db331 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -390,11 +390,7 @@ def apply(self: T, f, align_keys=None, **kwargs) -> T: if f == "where": ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33565
2020-04-15T14:58:54Z
2020-04-15T19:23:25Z
2020-04-15T19:23:25Z
2020-04-15T19:29:48Z
CI: Fix Deprecation warning from jedi
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 4149485be181d..eeb2c409e00d3 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -529,7 +529,18 @@ async def test_tab_complete_warning(self, ip): code = "import pandas as pd; df = pd.DataFrame()...
- [ ] 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/33563
2020-04-15T11:58:31Z
2020-04-15T12:24:55Z
null
2020-04-15T12:24:59Z
PERF: operate on arrays instead of Series in DataFrame/DataFrame ops
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 856a1823353d5..15af453e7b5f8 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -262,15 +262,11 @@ def dispatch_to_series(left, right, func, axis=None): ------- DataFrame """ - # Note: we use iloc t...
xref https://github.com/pandas-dev/pandas/pull/32779
https://api.github.com/repos/pandas-dev/pandas/pulls/33561
2020-04-15T08:53:22Z
2020-05-25T14:57:13Z
2020-05-25T14:57:12Z
2020-05-25T14:57:16Z
fstring updates. Changing from .format to fstring
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 17815c437249b..b7bdbde5bac5e 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -237,15 +237,13 @@ def _format_argument_list(allow_args: Union[List[str], int]): elif allow_args == 1: return " except for the...
Please accept my updates by converting .format to fstrings. https://github.com/pandas-dev/pandas/issues/29547
https://api.github.com/repos/pandas-dev/pandas/pulls/33557
2020-04-15T00:58:53Z
2020-04-15T19:40:39Z
2020-04-15T19:40:39Z
2020-04-15T19:40:48Z
fix
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 17815c437249b..b7bdbde5bac5e 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -237,15 +237,13 @@ def _format_argument_list(allow_args: Union[List[str], int]): elif allow_args == 1: return " except for the...
- [x] 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/33556
2020-04-15T00:36:34Z
2020-04-15T14:38:49Z
null
2020-04-15T14:38:49Z
CLN: x-array test warnings
diff --git a/pandas/tests/generic/test_to_xarray.py b/pandas/tests/generic/test_to_xarray.py index b6abdf09a7f62..2fde96a1c8f89 100644 --- a/pandas/tests/generic/test_to_xarray.py +++ b/pandas/tests/generic/test_to_xarray.py @@ -99,7 +99,7 @@ def test_to_xarray_index_types(self, indices): from xarray import ...
Remove these warnings: ``` pandas/tests/generic/test_to_xarray.py:102 /home/travis/build/pandas-dev/pandas/pandas/tests/generic/test_to_xarray.py:102: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warni...
https://api.github.com/repos/pandas-dev/pandas/pulls/33555
2020-04-14T23:49:57Z
2020-04-15T00:33:14Z
2020-04-15T00:33:14Z
2020-04-15T00:33:23Z
BUG: tz_localize needs to invalidate freq
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d0e3e5c96dc3a..b2a87ea5fefe6 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -412,7 +412,7 @@ Datetimelike - Bug where :meth:`PeriodIndex` raised when passed a :class:`Series` of strings (:issue:`2610...
- [x] closes #30511 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Identified when trying to add `freq` check to `assert_index_equal` for DatetimeIndex and TimedeltaIndex.
https://api.github.com/repos/pandas-dev/pandas/pulls/33553
2020-04-14T22:39:20Z
2020-04-16T21:27:52Z
2020-04-16T21:27:52Z
2020-04-16T21:45:51Z
BUG: Setting DTI/TDI freq affecting other indexes viewing the same data
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index cf653a6875a9c..a1967c939092f 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -1,7 +1,7 @@ """ Base and utility classes for tseries type pandas objects. """ -from datetime import ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The issue this addresses is related to #31218.
https://api.github.com/repos/pandas-dev/pandas/pulls/33552
2020-04-14T22:32:33Z
2020-04-25T20:45:15Z
2020-04-25T20:45:15Z
2020-04-26T02:11:00Z
BUG: Fix behavior of isocalendar with timezones
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index f5cc0817e8bd7..dd553011c6a6d 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1277,7 +1277,11 @@ def isocalendar(self): """ from pandas import DataFrame - sarray = fields...
- If timezone is not UTC, then convert to UTC - This bug was found while deprecating 'week' and 'weekofyear'
https://api.github.com/repos/pandas-dev/pandas/pulls/33551
2020-04-14T21:25:14Z
2020-04-15T01:24:38Z
2020-04-15T01:24:38Z
2020-05-27T08:23:27Z
DOC: Fix some typos
diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst index 4167166a3f34a..31f434758876f 100644 --- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst +++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst @@ ...
Closes #33547, also Titanic should be capitalized
https://api.github.com/repos/pandas-dev/pandas/pulls/33550
2020-04-14T21:03:16Z
2020-04-14T22:05:53Z
2020-04-14T22:05:53Z
2020-04-14T22:14:07Z
[WIP] Add remote file io using fsspec.
diff --git a/pandas/io/common.py b/pandas/io/common.py index ff527de79c387..98f584c60a964 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -158,6 +158,23 @@ def urlopen(*args, **kwargs): return urllib.request.urlopen(*args, **kwargs) +def is_fsspec_url(url) -> bool: + """ + Returns true if f...
- [x] closes #33452 - [ ] 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/33549
2020-04-14T20:42:38Z
2020-05-19T20:10:05Z
null
2020-05-19T20:10:05Z
TST: rename checknull_old -> test_checknull_old
diff --git a/pandas/tests/dtypes/test_missing.py b/pandas/tests/dtypes/test_missing.py index cad46d0a23967..f9a854c5778a2 100644 --- a/pandas/tests/dtypes/test_missing.py +++ b/pandas/tests/dtypes/test_missing.py @@ -564,7 +564,7 @@ def test_checknull(self): for value in never_na_vals: assert not ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33546
2020-04-14T16:41:32Z
2020-04-14T17:21:42Z
2020-04-14T17:21:42Z
2020-04-14T19:32:42Z
Preserving boolean dtype in Series.any/all function with level keyword #33449
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2adfd2bb9a7b3..db880368fffed 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9974,11 +9974,15 @@ def _agg_by_level(self, name, axis=0, level=0, skipna=True, **kwargs): raise ValueError("Must specify 'axis' when aggregat...
https://api.github.com/repos/pandas-dev/pandas/pulls/33543
2020-04-14T08:53:45Z
2021-04-20T05:06:19Z
null
2021-04-20T05:06:20Z
PERF: Fix performance regression #33365
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 635bf32639075..ba1a9a4e08fa0 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -25,6 +25,7 @@ from pandas.core.algorithms import take_1d from pandas.core.arrays.categorical import Categorical, cont...
Fix performance regression in Series.is_monotonic_increasing for categorical by avoiding Categorical construction for categorical series - [x] closes #33365 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry: perf regr...
https://api.github.com/repos/pandas-dev/pandas/pulls/33540
2020-04-14T03:28:12Z
2020-04-15T17:41:38Z
2020-04-15T17:41:38Z
2020-04-16T05:28:55Z
BUG: Series[listlike_of_ints] incorrect on MultiIndex
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 07849702c646d..9a1f8d00225aa 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -323,6 +323,36 @@ key and type of :class:`Index`. These now consistently raise ``KeyError`` (:iss ... KeyError: T...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is one of the cases that @jorisvandenbossche identified in #33355.
https://api.github.com/repos/pandas-dev/pandas/pulls/33539
2020-04-14T02:51:16Z
2020-04-25T21:02:28Z
2020-04-25T21:02:28Z
2020-04-25T21:22:00Z
ENH: Implement IntegerArray.sum
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cd1cb0b64f74a..726c9b8bde91d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -660,6 +660,7 @@ Other - Bug in :meth:`Series.map` not raising on invalid ``na_action`` (:issue:`32815`) - Bug in :meth:`D...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I think this is mostly interesting in that it allows normalize=True for value_counts on an IntegerArray backed Series, which currently doesn't work: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33538
2020-04-14T02:46:14Z
2020-04-25T08:05:18Z
2020-04-25T08:05:18Z
2020-04-25T13:38:58Z