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: timezone warning for DST beyond 2038-01-18
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 6ba58310000cb..a88cb22bd0767 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -2265,6 +2265,24 @@ you can use the ``tz_convert`` method. Instead, the datetime needs to be lo...
Add warning to time_series user guide that after 2038-01-18 DST will not be respected in tz aware dates - [x ] closes #33061 - [ ] 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/33863
2020-04-29T10:38:36Z
2020-05-10T14:41:07Z
2020-05-10T14:41:06Z
2020-05-10T18:09:58Z
TYP/CLN: remove #type: ignore from pandas\tests\test_strings.py
diff --git a/pandas/conftest.py b/pandas/conftest.py index 16b6d40645547..11bb16fc0a3a9 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -297,6 +297,10 @@ def index_or_series(request): return request.param +# Generate cartesian product of index_or_series fixture: +index_or_series2 = index_or_series ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33862
2020-04-29T08:46:22Z
2020-04-29T22:47:24Z
2020-04-29T22:47:24Z
2020-04-30T08:48:54Z
DOC: Fix typo in inferred_freq docstring
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index c325ec0d0bf7c..9d3ec284a2569 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1066,7 +1066,7 @@ def freqstr(self): @property # NB: override with cache_readonly in immutable subcla...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/33861
2020-04-29T07:52:45Z
2020-04-29T09:32:08Z
2020-04-29T09:32:08Z
2020-04-29T09:32:18Z
DOC: Fix groupby.agg/transform rst reference and numba references
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 921eb737aef07..ca444dac9d77d 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -36,8 +36,10 @@ Function application GroupBy.apply GroupBy.agg - GroupBy.aggregate - GroupBy.transform...
- [x] xref https://github.com/pandas-dev/pandas/pull/33388#issuecomment-618808443 - [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/33860
2020-04-29T04:03:04Z
2020-05-01T05:41:08Z
2020-05-01T05:41:08Z
2020-05-01T05:41:13Z
TST: stop skipping Categorical take tests
diff --git a/pandas/tests/extension/test_categorical.py b/pandas/tests/extension/test_categorical.py index 059d3453995bd..390c7a2afc641 100644 --- a/pandas/tests/extension/test_categorical.py +++ b/pandas/tests/extension/test_categorical.py @@ -97,8 +97,6 @@ class TestReshaping(base.BaseReshapingTests): class Test...
https://api.github.com/repos/pandas-dev/pandas/pulls/33859
2020-04-29T03:41:36Z
2020-04-29T07:18:31Z
2020-04-29T07:18:31Z
2020-04-29T14:43:00Z
CLN: address FIXME/TODO/XXX comments
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index ae39b0dda5d09..16bbd7693da37 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -128,7 +128,7 @@ conda list pandas echo "[Build extensions]" python setup.py build_ext -q -i -j2 -# XXX: Some of our environments end up with old versions of pip (10.x) +# TODO: So...
- changed XXX comments to TODO (much more grep-friendly, since we sometimes use XXX for a `name` attribute. - Removed some now-fixed FIXME/TODO comments - tests.arithmetic.test_datetime64, tests.arithmetic.test_period, test_conversion, tests.indexes.common, test_date_range, test_css, scalar.timedelta.test_arithmeti...
https://api.github.com/repos/pandas-dev/pandas/pulls/33858
2020-04-29T03:37:23Z
2020-04-29T19:11:50Z
2020-04-29T19:11:50Z
2020-04-29T19:14:11Z
ENH: Add na_value argument to DataFrame.to_numpy
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9f0aaecacd383..34f6e2359a054 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -224,6 +224,7 @@ Other enhancements such as ``dict`` and ``list``, mirroring the behavior of :meth:`DataFrame.update` (:i...
- [x] closes #33820 - [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/33857
2020-04-29T01:28:37Z
2020-05-13T15:51:29Z
2020-05-13T15:51:29Z
2020-05-13T15:57:03Z
Requested Follow-Ups
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 597a0c5386cf0..823bfc75e4304 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -544,6 +544,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.tz_localize` incorrectly retaining ``freq`` in some cases where...
https://api.github.com/repos/pandas-dev/pandas/pulls/33856
2020-04-28T23:43:51Z
2020-04-30T13:08:59Z
2020-04-30T13:08:59Z
2020-04-30T14:43:51Z
TST: fix xfailed arithmetic tests
diff --git a/pandas/core/ops/dispatch.py b/pandas/core/ops/dispatch.py index 637f0fa1d52e9..a7dcdd4f9d585 100644 --- a/pandas/core/ops/dispatch.py +++ b/pandas/core/ops/dispatch.py @@ -65,8 +65,12 @@ def should_series_dispatch(left, right, op): ldtype = left.dtypes.iloc[0] rdtype = right.dtypes.iloc[0] - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33855
2020-04-28T23:27:31Z
2020-04-29T20:53:31Z
2020-04-29T20:53:31Z
2020-04-29T20:56:07Z
TST: de-xfail, remove strict=False
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index 8c937064c0493..6e116f56d1494 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -529,9 +529,9 @@ def test_dti_cmp_nat_behaves_like_float_cmp_nan(self): ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33854
2020-04-28T20:45:13Z
2020-04-29T19:38:11Z
2020-04-29T19:38:11Z
2020-04-29T19:52:22Z
CI: Skip permissions test when running as sudo
diff --git a/pandas/tests/io/parser/test_common.py b/pandas/tests/io/parser/test_common.py index 5bf9587a6ca22..55256499c6bb2 100644 --- a/pandas/tests/io/parser/test_common.py +++ b/pandas/tests/io/parser/test_common.py @@ -974,6 +974,15 @@ def test_no_permission(all_parsers): msg = r"\[Errno 13\]" with tm.e...
Closes https://github.com/pandas-dev/pandas/issues/33210
https://api.github.com/repos/pandas-dev/pandas/pulls/33847
2020-04-28T13:28:18Z
2020-04-28T22:54:21Z
2020-04-28T22:54:21Z
2020-05-04T17:40:39Z
BUG: Series construction with EA dtype and index but no data fails
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 55a53ba135275..47f67e9c2a4b3 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -752,7 +752,8 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ -- Fixed bug where :meth:`Serires.value_counts` would raise on emp...
- [ ] closes #26469 - [ ] closes #33559 - [ ] 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/33846
2020-04-28T13:25:19Z
2020-05-02T17:49:04Z
2020-05-02T17:49:04Z
2020-05-02T18:01:13Z
Roll quantile support multiple quantiles as per #12093: rough sketch for discussion
diff --git a/TEMP_NOTES.md b/TEMP_NOTES.md new file mode 100644 index 0000000000000..ef1ee3f1614f1 --- /dev/null +++ b/TEMP_NOTES.md @@ -0,0 +1,37 @@ +In [20]: s = pd.Series(np.random.randn(100000)) + +In [21]: n = 10 + +In [22]: q = np.linspace(1./n, 1 - 1./n, n - 1) + +In [23]: r = s.rolling(window=100) + +In [24]: %...
- [ ] closes #12093 Putting this in a PR for discussion. It definitely needs more work on kicking the arguments through properly in the python interface but someone who has strong opinions about that can hopefully step in and then will refactor and test etc. The "content" is really just the cython change.
https://api.github.com/repos/pandas-dev/pandas/pulls/33843
2020-04-28T09:34:20Z
2020-11-26T01:25:19Z
null
2020-11-26T01:25:19Z
DOC: Fix groupby.agg/transform API reference and add numba arguments to documentation
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 921eb737aef07..201e33c2fd0ee 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -35,9 +35,12 @@ Function application :toctree: api/ GroupBy.apply - GroupBy.agg - GroupBy.aggregate - ...
- xref https://github.com/pandas-dev/pandas/pull/33388#issuecomment-618808443 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` <img width="927" alt="Screen Shot 2020-04-27 at 11 19 16 PM" src="https://user-images.githubusercontent.com/10647082/80453833-e20eeb80-88dd-...
https://api.github.com/repos/pandas-dev/pandas/pulls/33840
2020-04-28T06:22:51Z
2020-04-29T03:42:04Z
null
2020-04-29T03:42:13Z
CLN: freq inference in DTI/TDI set ops
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index decb17cdf6672..fe48f05820a4a 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -2,7 +2,7 @@ Base and utility classes for tseries type pandas objects. """ from datetime import datet...
These ops are a PITA for getting the freq check into assert_index_equal. I'm leaning towards ripping out the freq="infer" behavior in all the cases where we can't fast-infer it.
https://api.github.com/repos/pandas-dev/pandas/pulls/33839
2020-04-28T03:46:04Z
2020-04-29T20:10:26Z
2020-04-29T20:10:26Z
2020-04-29T20:52:51Z
teaching someone this
diff --git a/web/pandas_web.py b/web/pandas_web.py index e62deaa8cdc7f..58efd950bfe25 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -9,6 +9,7 @@ The file should contain: ``` +fuck pandas main: template_path: <path_to_the_jinja2_templates_directory> base_template: <template_file_all_other_files_wi...
sorry guys, i was teaching my friend... Dont ban me please.
https://api.github.com/repos/pandas-dev/pandas/pulls/33837
2020-04-28T01:23:36Z
2020-04-28T01:24:24Z
null
2020-04-28T01:24:41Z
BUG: preserve freq in DTI/TDI factorize
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index eca1733b61a52..7ac9cef0d2412 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -184,8 +184,16 @@ def _reconstruct_data(values, dtype, original): ------- Index for extension types, otherwise ndarray casted to dtype...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #33830
https://api.github.com/repos/pandas-dev/pandas/pulls/33836
2020-04-28T00:58:46Z
2020-06-11T17:27:06Z
null
2020-06-11T17:27:14Z
REF/CLN: Parametrize _isna
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 92e1b17c41694..87ff9a78909dd 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -1,6 +1,8 @@ """ missing types & inference """ +from functools import partial + import numpy as np from pandas._config im...
Replaces two nearly identical isna functions with one by parametrizing over the difference
https://api.github.com/repos/pandas-dev/pandas/pulls/33835
2020-04-27T23:59:50Z
2020-04-29T12:09:20Z
2020-04-29T12:09:20Z
2020-04-29T12:38:28Z
BUG: TimedeltaIndex[:] losing freq
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 8295ca13c33b1..decb17cdf6672 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 ...
Reverts the freq-override I implemented a few days ago. That was made unnecessary by the more-recent change to _with_freq that ensures that self.freq and self._data.freq stay in sync.
https://api.github.com/repos/pandas-dev/pandas/pulls/33834
2020-04-27T22:08:46Z
2020-04-27T23:43:49Z
2020-04-27T23:43:49Z
2020-04-27T23:46:56Z
DOC/CLN: Fix whatsnew typo
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 20dff048cc6d5..6b641746b95ff 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -730,7 +730,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ -- Fixed bug where :meth:`Serires.value_counts` would raise on emp...
Should something like this cause a CI failure?
https://api.github.com/repos/pandas-dev/pandas/pulls/33833
2020-04-27T21:49:32Z
2020-04-27T23:48:43Z
2020-04-27T23:48:43Z
2020-04-27T23:51:43Z
DEPR: Timestamp.freq
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 597a0c5386cf0..a2a2a87bbdc56 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -486,6 +486,7 @@ Deprecations arguments (:issue:`27573`). - :func:`pandas.api.types.is_categorical` is deprecated and ...
- [x] closes #15146 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The motivation here is that I've concluded that DatetimeArray.freq _must_ be removed, so for internal consistency Timestamp.freq should be removed t...
https://api.github.com/repos/pandas-dev/pandas/pulls/33832
2020-04-27T21:48:45Z
2020-05-22T20:33:02Z
null
2020-05-22T20:33:06Z
DOC/CLN: remove outdated warnings in enhancingperf.rst
diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 1d84d05fda079..2056fe2f754f8 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -396,7 +396,7 @@ Consider the following toy example of doubling each observation: 10...
xref #16732 and SyntaxError
https://api.github.com/repos/pandas-dev/pandas/pulls/33831
2020-04-27T21:41:58Z
2020-04-27T23:48:10Z
2020-04-27T23:48:10Z
2020-04-28T08:58:20Z
TST: ensure groupby get by index value #33439
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index e860ea1a3d052..d4b061594c364 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -940,3 +940,11 @@ def test_agg_multiple_lambda(self)...
- [x] closes #33439 - [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/33829
2020-04-27T19:47:14Z
2020-05-01T00:26:36Z
2020-05-01T00:26:36Z
2020-05-01T00:26:49Z
BUG: DataFrame[object] + Series[dt64], test parametrization
diff --git a/pandas/core/ops/dispatch.py b/pandas/core/ops/dispatch.py index 2463a1f58a447..637f0fa1d52e9 100644 --- a/pandas/core/ops/dispatch.py +++ b/pandas/core/ops/dispatch.py @@ -71,8 +71,10 @@ def should_series_dispatch(left, right, op): # numpy integer dtypes as timedelta64 dtypes in this scenario ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In the course of parametrizing tests, found a failing case. The edit in ops.dispatch fixes it.
https://api.github.com/repos/pandas-dev/pandas/pulls/33824
2020-04-27T17:09:45Z
2020-04-27T20:24:43Z
2020-04-27T20:24:43Z
2020-04-27T21:33:04Z
REF: collect set_index tests
diff --git a/pandas/tests/frame/methods/test_set_index.py b/pandas/tests/frame/methods/test_set_index.py new file mode 100644 index 0000000000000..5f62697cc3e43 --- /dev/null +++ b/pandas/tests/frame/methods/test_set_index.py @@ -0,0 +1,532 @@ +from datetime import datetime, timedelta + +import numpy as np +import pyte...
https://api.github.com/repos/pandas-dev/pandas/pulls/33822
2020-04-27T15:31:46Z
2020-04-27T18:57:12Z
2020-04-27T18:57:12Z
2020-04-27T19:35:36Z
BUG: repair 'style' kwd handling in DataFrame.plot (#21003)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8b28a4439e1da..39e53daf516c4 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -299,7 +299,7 @@ I/O Plotting ^^^^^^^^ -- +- Bug in :meth:`DataFrame.plot` where a marker letter in the ``style`` keywor...
- [x] closes #21003 - [x] tests added / passed - [x] passes `black pandas` => `command not found` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` => `command not found` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/33821
2020-04-27T14:16:13Z
2020-09-05T14:49:10Z
2020-09-05T14:49:09Z
2020-09-22T05:26:04Z
CLN/TYP: update setup.cfg
diff --git a/setup.cfg b/setup.cfg index 79fe68b7e2dfe..d0216a05a2268 100644 --- a/setup.cfg +++ b/setup.cfg @@ -141,9 +141,6 @@ ignore_errors=True [mypy-pandas.tests.tools.test_to_datetime] ignore_errors=True -[mypy-pandas.tests.scalar.period.test_period] -ignore_errors=True - [mypy-pandas._testing] check_untype...
``` @pytest.mark.xfail( StrictVersion(dateutil.__version__.split(".dev")[0]) < StrictVersion("2.7.0"), reason="Bug in dateutil < 2.7.0 when parsing old dates: Period('0001-01-07', 'D')", strict=False, ) ``` removed in #33680
https://api.github.com/repos/pandas-dev/pandas/pulls/33818
2020-04-27T10:11:09Z
2020-04-27T12:57:39Z
2020-04-27T12:57:39Z
2020-04-28T10:52:47Z
TST: Separate expanding_apply and rolling_apply out of consistency
diff --git a/pandas/tests/window/moments/test_moments_expanding.py b/pandas/tests/window/moments/test_moments_expanding.py index 01940d83a4fa9..a358f0e7057f3 100644 --- a/pandas/tests/window/moments/test_moments_expanding.py +++ b/pandas/tests/window/moments/test_moments_expanding.py @@ -368,6 +368,14 @@ def test_expan...
xref #30577 #30486 This is the second step for breaking up giant consistency test, this PR separates consistency tests about `expanding_apply` and `rolling_apply` out from their big `expanding_consistency` and `rolling_consistency` tests. The followup after this would be removing `self.data` initiation from `ini...
https://api.github.com/repos/pandas-dev/pandas/pulls/33817
2020-04-27T08:40:49Z
2020-04-27T20:55:56Z
2020-04-27T20:55:56Z
2020-04-27T20:56:39Z
ERR: Add NumbaUtilError
diff --git a/doc/source/reference/general_utility_functions.rst b/doc/source/reference/general_utility_functions.rst index 575b82b4b06de..6d43ceb74ab7c 100644 --- a/doc/source/reference/general_utility_functions.rst +++ b/doc/source/reference/general_utility_functions.rst @@ -35,9 +35,12 @@ Exceptions and warnings .. ...
- xref https://github.com/pandas-dev/pandas/pull/33388#discussion_r415172278 - [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/33816
2020-04-27T05:18:54Z
2020-04-27T20:17:45Z
2020-04-27T20:17:44Z
2020-04-27T20:46:12Z
TST: check freq on series.index in assert_series_equal
diff --git a/pandas/_testing.py b/pandas/_testing.py index 18b5677e7864d..eb4eb86c78b2d 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -1171,6 +1171,10 @@ def assert_series_equal( check_categorical=check_categorical, obj=f"{obj}.index", ) + if isinstance(left.index, (pd.DatetimeIn...
Before long we'll roll that check into assert_index_equal
https://api.github.com/repos/pandas-dev/pandas/pulls/33815
2020-04-27T02:14:35Z
2020-04-27T13:00:18Z
2020-04-27T13:00:18Z
2020-05-06T20:08:13Z
TST: Clean moments consistency
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index 6aeada3152dbb..d1d0fb519aa31 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -252,43 +252,15 @@ def _test_moments_consistency_var_debiasing_factors( var_debiasing_factors_x = var_debiasing...
As discussed in https://github.com/pandas-dev/pandas/pull/30577#issuecomment-570014613 This PR is the first step to achieve it, it basically does one thing: break up the giant consistency test in `common` into four tests based on test contents: `var`, `std`, `cov`, and `series data`. cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/33813
2020-04-26T20:28:20Z
2020-04-26T21:23:58Z
2020-04-26T21:23:58Z
2020-05-03T00:38:59Z
TST: check freq in assert_equal
diff --git a/pandas/_testing.py b/pandas/_testing.py index 21e74dafcc944..7ca14546fd46b 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -1429,6 +1429,8 @@ def assert_equal(left, right, **kwargs): if isinstance(left, pd.Index): assert_index_equal(left, right, **kwargs) + if isinstance(...
Before long we'll move this check into assert_index_equal, for now just want to get validation in place where feasible.
https://api.github.com/repos/pandas-dev/pandas/pulls/33812
2020-04-26T20:07:40Z
2020-04-26T20:53:29Z
2020-04-26T20:53:29Z
2020-04-26T20:55:14Z
BUG: pickle after _with_freq
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 407daf15d5cce..b13a682ef3985 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -410,7 +410,7 @@ def ceil(self, freq, ambiguous="raise", nonexistent="raise"): def _with_freq(self, f...
introduced in #33552
https://api.github.com/repos/pandas-dev/pandas/pulls/33811
2020-04-26T19:51:44Z
2020-04-26T20:52:37Z
2020-04-26T20:52:37Z
2020-04-26T20:55:29Z
BUG: Don't raise in DataFrame.corr with pd.NA
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 08d20af314110..b2d3c588c3bb8 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -569,7 +569,7 @@ Numeric - Bug in :meth:`DataFrame.mean` with ``numeric_only=False`` and either ``datetime64`` dtype or ``P...
- [x] closes #33803 - [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/33809
2020-04-26T19:00:04Z
2020-04-27T23:53:59Z
2020-04-27T23:53:59Z
2020-09-27T03:27:52Z
CLN: use unpack_zerodim_and_defer in timedeltas
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 7cffe6a5a16a9..a460d07e1f6f2 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -27,12 +27,7 @@ pandas_dtype, ) from pandas.core.dtypes.dtypes import DatetimeTZDtype -from pandas.core.dtype...
https://api.github.com/repos/pandas-dev/pandas/pulls/33808
2020-04-26T17:00:34Z
2020-04-26T19:24:46Z
2020-04-26T19:24:46Z
2020-04-26T19:33:14Z
TST: Added message to bare pytest.raises in test_join_multi_levels (#…
diff --git a/pandas/tests/reshape/merge/test_multi.py b/pandas/tests/reshape/merge/test_multi.py index 1f78c1900d237..61fdafa0c6db2 100644 --- a/pandas/tests/reshape/merge/test_multi.py +++ b/pandas/tests/reshape/merge/test_multi.py @@ -582,13 +582,15 @@ def test_join_multi_levels(self): # invalid cases ...
…30999) Updated tests in test_join_multi_levels to include messages for pytest.raises. - [ ] 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/33806
2020-04-26T16:01:09Z
2020-04-26T19:50:19Z
2020-04-26T19:50:18Z
2020-04-26T20:31:07Z
BUG: can't concatenate DataFrame with Series with duplicate keys
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 7ad7e8f5a27b0..23a772ae6c405 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -723,6 +723,7 @@ Reshaping - Bug in :meth:`concat` where when passing a non-dict mapping as ``objs`` would raise a ``TypeEr...
- [x] closes #33654 - [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/33805
2020-04-26T10:01:32Z
2020-05-01T16:50:31Z
2020-05-01T16:50:30Z
2020-05-01T17:23:29Z
BUG: support corr and cov functions for custom BaseIndexer rolling windows
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 845f7773c263c..0e87b319add6b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -175,8 +175,7 @@ Other API changes - Added :meth:`DataFrame.value_counts` (:issue:`5377`) - :meth:`Groupby.groups` now ret...
- [X] closes #32865 - [X] reverts #33057 - [X] 2 tests added / 2 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ## Scope of PR This is the final PR needed to solve #32865. It fixes `cov` and `corr` by passing the correct argument to ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33804
2020-04-26T08:51:23Z
2020-04-27T18:59:44Z
2020-04-27T18:59:43Z
2020-07-09T15:12:53Z
BUG: incorrect freq in PeriodIndex-Period
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 4ddac12ae8155..f41044db2b49c 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -88,7 +88,7 @@ def wrapped(self, other): if result is NotImplemented: return NotIm...
introduced in #33552
https://api.github.com/repos/pandas-dev/pandas/pulls/33801
2020-04-26T02:11:24Z
2020-04-26T19:23:57Z
2020-04-26T19:23:57Z
2020-04-26T19:34:01Z
IO: Fix feather s3 and http paths
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cd1cb0b64f74a..188dfd893d66b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -586,6 +586,7 @@ I/O unsupported HDF file (:issue:`9539`) - Bug in :meth:`~DataFrame.to_parquet` was not raising ``Permi...
- [x] closes #29055 - [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/33798
2020-04-26T01:01:29Z
2020-04-26T19:31:34Z
2020-04-26T19:31:34Z
2020-04-27T23:47:23Z
REF: mix NDArrayBackedExtensionArray into PandasArray
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 0ed9de804c55e..d1f8957859337 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -1,10 +1,11 @@ -from typing import Any, Sequence, TypeVar +from typing import Any, Sequence, Tuple, TypeVar import numpy as n...
Share several more methods in NDArrayBackedExtensionArray.
https://api.github.com/repos/pandas-dev/pandas/pulls/33797
2020-04-25T22:12:02Z
2020-04-25T23:56:02Z
2020-04-25T23:56:02Z
2020-04-26T14:09:12Z
CLN: remove unused PeriodEngine methods
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index d8e0d9c6bd7ab..871360672c6f0 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -21,14 +21,13 @@ cnp.import_array() cimport pandas._libs.util as util -from pandas._libs.tslibs import Period +from pandas._libs.tslibs import Period, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33796
2020-04-25T21:00:30Z
2020-04-25T21:39:32Z
2020-04-25T21:39:32Z
2020-04-25T21:40:33Z
DOC: Fix typos and improve parts of docs
diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index 412a5f9e7485f..12fa2a1e094d6 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -23,...
- [ ] 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/33793
2020-04-25T18:28:13Z
2020-05-11T00:32:33Z
2020-05-11T00:32:33Z
2020-05-12T07:59:38Z
REF: remove need to override get_indexer_non_unique in DatetimeIndexOpsMixin
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index d8e0d9c6bd7ab..5f04c2c7cd14e 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -441,6 +441,10 @@ cdef class DatetimeEngine(Int64Engine): except KeyError: raise KeyError(val) + def get_indexer_non_unique(self,...
https://api.github.com/repos/pandas-dev/pandas/pulls/33792
2020-04-25T17:05:31Z
2020-04-25T20:51:26Z
2020-04-25T20:51:26Z
2020-04-25T21:03:17Z
DOC: Link to table schema and remove reference to internal API
diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 6061af72901a5..50686594a7576 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -211,7 +211,9 @@ def build_table_schema(data, index=True, primary_key=None, version=True): Notes ----- - ...
- [x] closes #33130 - [ ] tests added / passed (Not needed) - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (Markdown link which will not be shown) - [ ] whatsnew entry (Not needed)
https://api.github.com/repos/pandas-dev/pandas/pulls/33791
2020-04-25T14:59:44Z
2020-04-29T22:49:08Z
2020-04-29T22:49:08Z
2020-04-29T22:49:11Z
CLN: Pass numpy args as kwargs
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index 30768f9bf2b06..d7a14c28cc9ca 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -251,11 +251,16 @@ def validate_cum_func_with_skipna(skipna, args, kwargs, name): STAT_FUNC_DEFAULTS["dtype"] = None S...
This is already done in some places for PandasArray, e.g., min / max, and seems cleaner with less boilerplate
https://api.github.com/repos/pandas-dev/pandas/pulls/33789
2020-04-25T14:35:04Z
2020-04-25T21:47:28Z
2020-04-25T21:47:28Z
2020-04-25T22:00:36Z
DOC: Remove ambiguity in fill_value documentation
diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py index 449a477646c02..4ace873f029ae 100644 --- a/pandas/core/ops/docstrings.py +++ b/pandas/core/ops/docstrings.py @@ -399,7 +399,7 @@ def _make_flex_doc(op_name, typ): Return {desc} of series and other, element-wise (binary operator `{op_name}`...
- [x] closes #33380 - [ ] tests added / passed (Not needed) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry (Not needed)
https://api.github.com/repos/pandas-dev/pandas/pulls/33788
2020-04-25T14:30:52Z
2020-04-25T21:48:50Z
2020-04-25T21:48:50Z
2020-04-26T08:00:14Z
BUG, TST, DOC: fix core.missing._akima_interpolate will raise AttributeError
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e8fdaf0ae5d49..478956666e625 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -538,6 +538,7 @@ Missing - Calling :meth:`fillna` on an empty Series now correctly returns a shallow copied object. The beh...
- [x] closes #33426 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Wasn't sure if this warranted a whatsnew entry since its mostly code cleanup
https://api.github.com/repos/pandas-dev/pandas/pulls/33784
2020-04-25T04:54:33Z
2020-04-26T19:57:38Z
2020-04-26T19:57:38Z
2020-04-26T19:57:42Z
DOC: fix doc for crosstab with Categorical data input
diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst index 7e890962d8da1..c476e33b8ddde 100644 --- a/doc/source/user_guide/reshaping.rst +++ b/doc/source/user_guide/reshaping.rst @@ -471,9 +471,8 @@ If ``crosstab`` receives only two Series, it will provide a frequency table. pd....
Crosstab function should set dropna=False to keep the categories which not appear in the data, but in the DOC, it seems to be inconsistent with the description. Two examples for comparison may be better for users to get this point. https://pandas.pydata.org/docs/dev/user_guide/reshaping.html#cross-tabulations
https://api.github.com/repos/pandas-dev/pandas/pulls/33783
2020-04-25T03:10:39Z
2020-04-27T02:16:26Z
2020-04-27T02:16:26Z
2020-04-27T02:17:12Z
BUG: Add warning if rows have more columns than expected
diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py index 80af2cff41769..e9776ff2c641e 100644 --- a/asv_bench/benchmarks/io/excel.py +++ b/asv_bench/benchmarks/io/excel.py @@ -11,7 +11,7 @@ def _generate_dataframe(): - N = 2000 + N = 20000 C = 5 df = DataFrame( ...
- [x] closes #33037 - [x] tests added and passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] warning when read rows have more columns than expected
https://api.github.com/repos/pandas-dev/pandas/pulls/33782
2020-04-25T02:08:16Z
2021-01-01T21:54:02Z
null
2021-01-01T21:54:02Z
TST: more specific freq attrs
diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py index 3e31c1acbe09d..9be741274c15a 100644 --- a/pandas/tests/arrays/categorical/test_constructors.py +++ b/pandas/tests/arrays/categorical/test_constructors.py @@ -331,6 +331,7 @@ def test_constructo...
Getting ready to check matching freq in assert_index_equal
https://api.github.com/repos/pandas-dev/pandas/pulls/33781
2020-04-25T01:15:24Z
2020-04-26T19:23:05Z
2020-04-26T19:23:05Z
2020-04-26T19:27:20Z
BUG: freq not retained on apply_index
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cd1cb0b64f74a..e8fdaf0ae5d49 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -462,6 +462,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.to_period` not infering the frequency when called with no argum...
- [ ] 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/33779
2020-04-24T20:41:39Z
2020-04-24T23:23:26Z
2020-04-24T23:23:26Z
2020-04-24T23:28:13Z
CLN: avoid getattr(obj, "values", obj)
diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in index 6e5509a5570e8..c63f368dfae43 100644 --- a/pandas/_libs/hashtable_func_helper.pxi.in +++ b/pandas/_libs/hashtable_func_helper.pxi.in @@ -125,7 +125,7 @@ cpdef value_count_{{dtype}}({{c_type}}[:] values, bint dropna):...
xref #27167 @mroeschke can you pls double-check me on the change in window.rolling
https://api.github.com/repos/pandas-dev/pandas/pulls/33776
2020-04-24T18:45:06Z
2020-04-25T20:48:05Z
2020-04-25T20:48:05Z
2020-04-25T21:03:58Z
BUG: Changing way of applying numpy functions on Series
diff --git a/pandas/core/series.py b/pandas/core/series.py index 74dcdaee327da..ce2fa6ceb6f50 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3872,7 +3872,7 @@ def transform(self, func, axis=0, *args, **kwargs): self._get_axis_number(axis) return super().transform(func, *args, **kwa...
- [x] closes #33492 - [x] tests added and passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] numpy functions on Series are called like other functions
https://api.github.com/repos/pandas-dev/pandas/pulls/33775
2020-04-24T18:41:29Z
2020-06-09T22:49:54Z
null
2020-06-09T22:49:54Z
REF: misplaced sort_index tests
diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py index 2c25e1f3740a3..b8eb3494353a9 100644 --- a/pandas/tests/frame/methods/test_sort_index.py +++ b/pandas/tests/frame/methods/test_sort_index.py @@ -2,11 +2,156 @@ import pytest import pandas as pd -from pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/33774
2020-04-24T18:18:03Z
2020-04-24T21:33:30Z
2020-04-24T21:33:30Z
2020-04-24T22:19:20Z
TST: more accurate freq attr in `expected`s
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index a8e9ad9ff7cc9..79fcb5e9478c3 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -2052,6 +2052,7 @@ def test_dti_add_tdi(self, tz_naive_fixture): dt...
preparing to add a freq check to assert_index_equal
https://api.github.com/repos/pandas-dev/pandas/pulls/33773
2020-04-24T17:58:25Z
2020-04-24T22:00:42Z
2020-04-24T22:00:42Z
2020-04-24T22:17:44Z
BUG: DataFrame.truncate() handles decreasing order(#33756)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 495dcc5700241..e67ec02737f57 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9196,7 +9196,14 @@ def truncate( raise ValueError(f"Truncate: {after} must be after {before}") slicer = [slice(None, None)] * s...
- [x] closes #33756 - [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/33772
2020-04-24T17:29:02Z
2020-04-24T17:31:59Z
null
2020-04-24T17:31:59Z
[#33770] bug fix to prevent ExtensionArrays from crashing Series.__repr__()
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 823bfc75e4304..7b5f1fb03dd48 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -733,8 +733,8 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ -- Fixed bug where :meth:`Series.value_counts` would raise on empt...
- [X] closes #33770 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry This pull request fixes a bug in `GenericArrayFormatter` that caused a crash when rendering arrays of arrays. This problem causes `Series.__repr__()...
https://api.github.com/repos/pandas-dev/pandas/pulls/33771
2020-04-24T17:23:45Z
2020-05-01T20:36:04Z
2020-05-01T20:36:03Z
2020-05-01T20:36:04Z
BUG: Adjust truncate for decreasing index
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index f1a219ad232de..e90030a6cffb1 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -565,6 +565,7 @@ Indexing - Bug in :meth:`DatetimeIndex.insert` and :meth:`TimedeltaIndex.insert` causing index ``freq`` to...
- [x] closes #33756 - [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/33769
2020-04-24T17:08:07Z
2020-04-26T21:04:16Z
2020-04-26T21:04:16Z
2020-04-26T21:47:37Z
DOC: data_columns can take bool
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 495dcc5700241..ef058fd0aa074 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2359,7 +2359,7 @@ def to_hdf( min_itemsize: Optional[Union[int, Dict[str, int]]] = None, nan_rep=None, dropna: Optional[bool_t] ...
The ``data_columns`` argument of ``df.to_hdf`` can take ``True`` as an argument, meaning "all columns", yet the type hint is ``Optional[List[str]]``, triggering warnings in e.g. pyCharm. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" |...
https://api.github.com/repos/pandas-dev/pandas/pulls/33768
2020-04-24T16:37:52Z
2020-04-24T18:08:24Z
2020-04-24T18:08:24Z
2022-04-30T19:47:45Z
BUG: Fix missing tick labels on twinned axes
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 18940b574b517..9a597c134a10a 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -331,6 +331,7 @@ Plotting - Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-...
## Background: Multi-row and/or multi-column subplots can utilize shared axes. An external share happens at axis creation when a sharex or sharey parameter is specified. An internal share, or twinning, occurs when an overlayed axis is created by the Axes.twinx() or Axes.twiny() calls. The two types of sha...
https://api.github.com/repos/pandas-dev/pandas/pulls/33767
2020-04-24T16:20:26Z
2020-09-30T00:11:53Z
2020-09-30T00:11:52Z
2020-09-30T07:30:48Z
REF: simplify _try_cast
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index d1b07585943ea..2f71f4f4ccc19 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -27,7 +27,6 @@ maybe_upcast, ) from pandas.core.dtypes.common import ( - is_categorical_dtype, is_datetime64_ns_dtype, ...
Part of a sequence of PRs aimed at sharing code between Series/Index/array
https://api.github.com/repos/pandas-dev/pandas/pulls/33764
2020-04-24T14:48:10Z
2020-04-24T21:34:25Z
2020-04-24T21:34:25Z
2020-04-24T22:21:12Z
TYP/CLN: rogue type comment not caught by code checks
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index ccc970fb453c2..260cc69187d38 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -157,7 +157,7 @@ def validate_argsort_with_ascending(ascending, args, kwargs): return ascending -CLIP_DEFAULTS ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33763
2020-04-24T14:38:53Z
2020-04-24T15:26:48Z
2020-04-24T15:26:48Z
2020-04-24T15:38:30Z
Stratified sampling
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index b5ac96752536e..b381dae3579c8 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.0 .. toctree:: :maxdepth: 2 + v1.0.4 v1.0.3 v1.0.2 v1.0.1 diff --git a/doc/source/...
- [ ] Added new method stratified_sample - [ ] 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/33762
2020-04-24T13:24:32Z
2020-04-25T17:55:34Z
null
2020-04-25T17:55:35Z
REGR: fix DataFrame reduction with EA columns and numeric_only=True
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 7ad7e8f5a27b0..f8199524abbaf 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -571,6 +571,7 @@ Numeric - Bug in :meth:`DataFrame.mean` with ``numeric_only=False`` and either ``datetime64`` dtype or ``P...
Closes #33256 For the block-wise path in `DataFrame._reduce`, we ensure to use the EA reduction for blocks holding EAs, instead of passing the EA to the `op` function (which is typically the `nanops` nan function). This needs https://github.com/pandas-dev/pandas/pull/33758 to be merged, since that PR fixes the te...
https://api.github.com/repos/pandas-dev/pandas/pulls/33761
2020-04-24T09:39:35Z
2020-05-01T18:19:12Z
2020-05-01T18:19:11Z
2020-05-26T09:36:02Z
REGR: disallow mean of period column again
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2d2f7bbf7092f..0eda80a78ee4f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -100,7 +100,6 @@ is_list_like, is_named_tuple, is_object_dtype, - is_period_dtype, is_scalar, is_sequence, needs_i8_conversion, @@ ...
This reverts parts of https://github.com/pandas-dev/pandas/pull/32426 and https://github.com/pandas-dev/pandas/pull/29941 (those are only on master, not yet released), to disallow taking the mean on a Period dtype column again. The mean for period is not supported on PeriodArray itself or for a Series of period dtype (...
https://api.github.com/repos/pandas-dev/pandas/pulls/33758
2020-04-24T09:20:59Z
2020-04-24T21:35:45Z
2020-04-24T21:35:45Z
2020-04-25T11:46:15Z
BUG: MonthOffset.name
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 495dcc5700241..3adae989af58a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -104,6 +104,7 @@ from pandas.io.formats.format import DataFrameFormatter, format_percentiles from pandas.io.formats.printing import pprint_thing from pan...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `is_anchored` is being accessed indirectly (its not a property). As a result we never go down the other path, which would raise AttributeError since...
https://api.github.com/repos/pandas-dev/pandas/pulls/33757
2020-04-24T02:38:17Z
2020-04-25T00:30:01Z
2020-04-25T00:30:01Z
2020-04-25T00:39:36Z
CI: Revert Cython Pin (take 2)
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...
- [x] closes #33507 reverts #33534 New Cython pre release available today - https://pypi.org/project/Cython/3.0a2/ cc @WillAyd Update: 3.0a2 (no such luck - seems there is a regression which is being looked at) https://mail.python.org/pipermail/cython-devel/2020-April/005340.html https://github.com/...
https://api.github.com/repos/pandas-dev/pandas/pulls/33755
2020-04-23T22:49:55Z
2020-04-27T23:10:34Z
2020-04-27T23:10:34Z
2020-04-27T23:47:08Z
CLN: Parametrize dtype inference tests
diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py index 8c0580b7cf047..8b20f9ada8ff7 100644 --- a/pandas/tests/dtypes/test_inference.py +++ b/pandas/tests/dtypes/test_inference.py @@ -354,71 +354,69 @@ def test_is_recompilable_fails(ll): class TestInference: - def test_i...
https://api.github.com/repos/pandas-dev/pandas/pulls/33753
2020-04-23T21:11:22Z
2020-04-23T22:38:15Z
2020-04-23T22:38:15Z
2020-04-23T22:39:28Z
TST: pd.NA TypeError in drop_duplicates with object dtype
diff --git a/pandas/conftest.py b/pandas/conftest.py index 70be6b5d9fcbc..0adbaf6a112cf 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -256,7 +256,9 @@ def nselect_method(request): # ---------------------------------------------------------------- # Missing values & co. # -------------------------------...
- [ ] closes #32992 - [ ] 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/33751
2020-04-23T19:49:07Z
2020-04-24T22:25:24Z
2020-04-24T22:25:23Z
2020-04-25T09:14:57Z
CLN: Remove is_null_period
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index bbb4d562b8971..a312fdc6cda22 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -67,7 +67,11 @@ cimport pandas._libs.util as util from pandas._libs.util cimport is_nan, UINT64_MAX, INT64_MAX, INT64_MIN from pandas._libs.tslib import array_t...
is_null_period seems only to be an alias for checknull_with_nat so I think it can be removed?
https://api.github.com/repos/pandas-dev/pandas/pulls/33750
2020-04-23T17:18:22Z
2020-04-23T18:56:18Z
2020-04-23T18:56:18Z
2020-04-23T18:58:56Z
BUG: Fix mixed datetime dtype inference
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 88bf0e005a221..16426e11c5a24 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -759,6 +759,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.to_period` not infering the frequency when called with no argum...
- [x] closes #33741 - [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/33749
2020-04-23T17:16:03Z
2020-06-01T00:28:41Z
2020-06-01T00:28:41Z
2020-06-01T00:29:55Z
BUG: support skew function for custom BaseIndexer rolling windows
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index d7d025981f2f4..f9c07df956341 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -318,8 +318,8 @@ We provide a number of common statistical functions: :meth:`~Rolling.kurt`...
- [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 does a couple things to fix the performance of `skew`, and this also fixes the behavior of all the functions that have `r...
https://api.github.com/repos/pandas-dev/pandas/pulls/33745
2020-04-23T09:53:20Z
2020-04-25T22:03:14Z
2020-04-25T22:03:14Z
2020-04-26T06:01:34Z
PERF: fix #32976 slow group by for categorical columns
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 5ffda03fad80f..7c127b90c181c 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -6,6 +6,7 @@ from pandas import ( Categorical, + CategoricalDtype, DataFrame, MultiIndex, Seri...
Aggregate categorical codes with fast cython aggregation for select `how` operations. Added new ASV benchmark copied from 32976 indicating > 99% improvement in performance for this case. - [x] closes #32976 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33739
2020-04-23T04:05:52Z
2020-11-06T01:53:02Z
null
2020-11-06T01:53:02Z
TST: fix tests for asserting matching freq
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index fd23e95106ab0..c0e1eeb8f4eec 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -393,6 +393,9 @@ def test_numpy_repeat(self): @pytest.mark.parametrize("klass", [list, tuple, np.array, Series]) d...
xref #33711, #33712
https://api.github.com/repos/pandas-dev/pandas/pulls/33737
2020-04-23T02:59:52Z
2020-04-23T18:55:56Z
2020-04-23T18:55:56Z
2020-04-23T18:56:34Z
REF: use _wrap_joined_index in PeriodIndex.join
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 3a721d8c8c320..cf653a6875a9c 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -2,7 +2,7 @@ Base and utility classes for tseries type pandas objects. """ from datetime import datet...
PeriodIndex defines _apply_meta, but that is made unnecessary by implementing _wrap_joined_index correctly.
https://api.github.com/repos/pandas-dev/pandas/pulls/33736
2020-04-23T02:51:33Z
2020-04-23T17:13:46Z
2020-04-23T17:13:46Z
2020-04-23T17:54:22Z
REF: implement test_astype
diff --git a/pandas/tests/frame/methods/test_astype.py b/pandas/tests/frame/methods/test_astype.py new file mode 100644 index 0000000000000..dc779562b662d --- /dev/null +++ b/pandas/tests/frame/methods/test_astype.py @@ -0,0 +1,562 @@ +import re + +import numpy as np +import pytest + +from pandas import ( + Categori...
Split/parametrized in some places.
https://api.github.com/repos/pandas-dev/pandas/pulls/33734
2020-04-23T00:50:13Z
2020-04-25T21:00:43Z
2020-04-25T21:00:43Z
2020-04-25T21:02:48Z
CLN: Remove unused assignment
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 04ebaf26fc11c..8228edb12b29a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8325,7 +8325,6 @@ def blk_func(values): result = result.iloc[0].rename(None) return result - data = self if...
https://api.github.com/repos/pandas-dev/pandas/pulls/33733
2020-04-22T22:03:23Z
2020-04-23T01:00:43Z
2020-04-23T01:00:43Z
2020-04-23T02:51:20Z
BLD: bump numpy min version to 1.15.4
diff --git a/ci/deps/azure-36-minimum_versions.yaml b/ci/deps/azure-36-minimum_versions.yaml index ae8fffa59fd50..f5af7bcf36189 100644 --- a/ci/deps/azure-36-minimum_versions.yaml +++ b/ci/deps/azure-36-minimum_versions.yaml @@ -1,6 +1,5 @@ name: pandas-dev channels: - - defaults - conda-forge dependencies: -...
- [x] closes #33718 - [ ] 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/33729
2020-04-22T20:31:06Z
2020-05-01T19:38:39Z
2020-05-01T19:38:38Z
2020-06-09T14:44:08Z
TST: pd.concat on two (or more) series produces all-NaN dataframe
diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py index bccae2c4c2772..c4025640bb49f 100644 --- a/pandas/tests/reshape/test_concat.py +++ b/pandas/tests/reshape/test_concat.py @@ -2768,3 +2768,37 @@ def test_concat_copy_index(test_series, axis): comb = concat([df, df], axis...
- [ ] closes #11058 - [ ] 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/33728
2020-04-22T19:25:46Z
2020-04-22T21:26:00Z
2020-04-22T21:26:00Z
2020-04-23T07:01:36Z
REF: avoid passing SingleBlockManager to Series
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6c3523f830e97..5defb8916c73f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3649,7 +3649,9 @@ def reindexer(value): @property def _series(self): return { - item: Series(self._mgr.iget(idx), index=self.index, n...
cc @jorisvandenbossche IIRC you didnt want to disallow SingleBlockManager because geopandas passes it. In those cases, does it also pass `fastpath=True`? If so, we can consider deprecating allowing SingleBlockManager in the non-fastpath case
https://api.github.com/repos/pandas-dev/pandas/pulls/33727
2020-04-22T18:14:00Z
2020-04-23T17:59:29Z
2020-04-23T17:59:29Z
2020-04-23T18:02:57Z
TYP: construction
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index cdd0717849e96..8a405d6ee0a00 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -330,7 +330,7 @@ def __init__( values = _convert_to_list_like(values) # By c...
https://api.github.com/repos/pandas-dev/pandas/pulls/33725
2020-04-22T14:47:13Z
2020-04-24T12:05:47Z
2020-04-24T12:05:47Z
2020-04-24T14:27:24Z
CLN: misc cleanups from LGTM.com
diff --git a/pandas/_testing.py b/pandas/_testing.py index 4f957b7a55e3a..21e74dafcc944 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -279,16 +279,10 @@ def write_to_compressed(compression, path, data, dest="test"): ValueError : An invalid compression value was passed in. """ if compression...
https://api.github.com/repos/pandas-dev/pandas/pulls/33724
2020-04-22T13:55:34Z
2020-04-23T03:09:11Z
2020-04-23T03:09:11Z
2020-04-23T07:03:00Z
BUG: Propagate Python exceptions from c_is_list_like (#33721)
diff --git a/pandas/_libs/lib.pxd b/pandas/_libs/lib.pxd index 12aca9dabe2e7..b3c72c30a74de 100644 --- a/pandas/_libs/lib.pxd +++ b/pandas/_libs/lib.pxd @@ -1 +1 @@ -cdef bint c_is_list_like(object, bint) +cdef bint c_is_list_like(object, bint) except -1 diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 52...
- [x] closes #33721 - [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/33723
2020-04-22T13:45:47Z
2020-04-27T18:58:07Z
2020-04-27T18:58:07Z
2020-04-27T18:58:11Z
TYP: add types to DataFrame._get_agg_axis
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6c3523f830e97..04ebaf26fc11c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8548,7 +8548,7 @@ def idxmax(self, axis=0, skipna=True) -> Series: result = [index[i] if i >= 0 else np.nan for i in indices] return Series(resul...
Minor followup to #33610.
https://api.github.com/repos/pandas-dev/pandas/pulls/33722
2020-04-22T13:43:03Z
2020-04-22T18:31:51Z
2020-04-22T18:31:51Z
2020-04-22T18:31:58Z
BUG: DTA/TDA/PA setitem incorrectly allowing i8
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 9bc0dd7cc02e6..e902c4f7eb14f 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -773,7 +773,7 @@ def _validate_fill_value(self, fill_value): return fill_value def _validate...
- [ ] 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/33717
2020-04-21T23:26:39Z
2020-04-30T13:44:37Z
2020-04-30T13:44:37Z
2020-05-04T20:03:22Z
REF: implement _validate_comparison_value
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 27b2ed822a49f..63932e64d3b05 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -60,29 +60,24 @@ def _datetimelike_array_cmp(cls, op): opname = f"__{op.__name__}__" nat_result = ...
Trying to match the patterns we use for all the other DTA/TDA/PA methods that have an `other`-like arg. No logic should be changed here, just moved around.
https://api.github.com/repos/pandas-dev/pandas/pulls/33716
2020-04-21T23:15:51Z
2020-04-23T17:58:38Z
2020-04-23T17:58:38Z
2020-04-23T18:03:37Z
BUG: DTI/TDI/PI.where accepting incorrectly-typed NaTs
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index af5834f01c24c..3fd0a7f4467a8 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -869,27 +869,33 @@ def _validate_insert_value(self, value): def _validate_where_value(self, other): ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In addition to the bug in the title, this makes DTI accept datetime/dt64, TDI accept timedelta/td64, and PI accept Period. This brings these into cl...
https://api.github.com/repos/pandas-dev/pandas/pulls/33715
2020-04-21T23:08:10Z
2020-04-25T22:22:42Z
2020-04-25T22:22:42Z
2020-04-25T22:26:43Z
CLN: simplify DTA.__getitem__
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 27b2ed822a49f..5237bc6226169 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -527,21 +527,6 @@ def __getitem__(self, key): This getitem defers to the underlying array, which by...
https://api.github.com/repos/pandas-dev/pandas/pulls/33714
2020-04-21T22:48:35Z
2020-04-24T21:41:43Z
2020-04-24T21:41:43Z
2020-04-24T22:20:20Z
CLN: .values -> ._values
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 235b3113a2ae7..89e1c0fea2b32 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -299,7 +299,7 @@ def __init__( self.name = grouper.name if isinstance(grouper, MultiIndex): - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33713
2020-04-21T22:46:48Z
2020-04-22T02:24:07Z
2020-04-22T02:24:07Z
2020-04-22T02:49:53Z
TST: more accurate expecteds for DTI/TDI
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index a8e9ad9ff7cc9..ac3864bea5309 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -2052,6 +2052,7 @@ def test_dti_add_tdi(self, tz_naive_fixture): dt...
xref #33711
https://api.github.com/repos/pandas-dev/pandas/pulls/33712
2020-04-21T21:27:56Z
2020-04-23T23:10:24Z
null
2020-04-23T23:11:01Z
TST: prepare for freq-checking in tests.io
diff --git a/pandas/tests/io/excel/test_writers.py b/pandas/tests/io/excel/test_writers.py index 0811f2f822198..1692e1a8a0dd3 100644 --- a/pandas/tests/io/excel/test_writers.py +++ b/pandas/tests/io/excel/test_writers.py @@ -407,6 +407,10 @@ def test_mixed(self, frame, path): def test_ts_frame(self, tsframe, path)...
Working on making assert_index_equal check that `freq` attrs match. This ports the necessary test changes from tests.io.
https://api.github.com/repos/pandas-dev/pandas/pulls/33711
2020-04-21T21:17:35Z
2020-04-24T23:22:24Z
2020-04-24T23:22:24Z
2020-04-24T23:24:31Z
DOC: Improve to_parquet documentation
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1bff17b40433d..10382364621c0 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2225,6 +2225,16 @@ def to_parquet( col1 col2 0 1 3 1 2 4 + + If you want to get a buffer to the parquet conte...
fixes #29476 - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry / NA
https://api.github.com/repos/pandas-dev/pandas/pulls/33709
2020-04-21T20:03:37Z
2020-05-30T16:32:53Z
2020-05-30T16:32:52Z
2020-06-01T20:05:15Z
TYP: remove #type: ignore for pd.array constructor
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index bf14ed44e3a1c..48f62fe888b9a 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -463,7 +463,7 @@ def astype(self, dtype: Dtype, copy: bool = True) -> ArrayLike: return self ...
pandas\core\arrays\categorical.py:481: error: Argument 1 to "array" has incompatible type "Categorical"; expected "Sequence[object]"
https://api.github.com/repos/pandas-dev/pandas/pulls/33706
2020-04-21T19:13:24Z
2020-04-26T21:25:51Z
2020-04-26T21:25:51Z
2020-04-27T07:29:24Z
TYP: remove #type:ignore from core.arrays.datetimelike
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 27b2ed822a49f..3440df4b09c06 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1532,7 +1532,7 @@ def __rsub__(self, other): return -(self - other) - def __iadd__(self, ot...
pandas\core\arrays\datetimelike.py:1535: error: Signatures of "__iadd__" and "__add__" are incompatible pandas\core\arrays\datetimelike.py:1544: error: Signatures of "__isub__" and "__sub__" are incompatible
https://api.github.com/repos/pandas-dev/pandas/pulls/33705
2020-04-21T19:08:34Z
2020-04-22T03:31:11Z
2020-04-22T03:31:11Z
2020-04-22T11:27:32Z
BUG: DTI/TDI.insert doing invalid casting
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index af5834f01c24c..b32e1516cbbfb 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -857,10 +857,13 @@ def _validate_setitem_value(self, value): def _validate_insert_value(self, value): ...
- [ ] 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/33703
2020-04-21T15:28:51Z
2020-04-25T23:54:30Z
2020-04-25T23:54:30Z
2020-04-26T00:32:44Z
fix bug of overflow validaion in 'reshape'
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index 882e3e0a649cc..2594f6d5ba7ef 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -113,9 +113,10 @@ def __init__( num_columns = self.removed_level.size # GH20601: This forces an overflow...
- [x] closes #26314 - [ ] 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/33697
2020-04-21T12:05:23Z
2020-05-22T11:03:07Z
null
2020-05-22T11:03:07Z
BUG: Fix memory issues in rolling.min/max
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index f85dc83ab8605..e3c9c7ccdc51c 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -150,19 +150,18 @@ def time_quantile(self, constructor, window, dtype, percentile, interpolation): self.roll.qu...
This fixes at least the reproducible part of #30726. I am not totally sure what is going on here (is this a true memory leak?), and whether this fixes all issues, but it does strongly reduce memory usage as measured by `psutil`. My tests have shown that there are two solutions that avoid growing memory usage: -...
https://api.github.com/repos/pandas-dev/pandas/pulls/33693
2020-04-21T07:52:23Z
2020-04-28T14:48:42Z
2020-04-28T14:48:41Z
2020-05-26T09:32:45Z
CLN: remove shallow_copy_with_infer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 530aaee24c7fb..62842e7286539 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -270,10 +270,6 @@ def _outer_indexer(self, left, right): # would we like our indexing holder to defer to us _defer_to_indexing...
https://api.github.com/repos/pandas-dev/pandas/pulls/33691
2020-04-21T01:57:46Z
2020-04-22T02:31:37Z
2020-04-22T02:31:37Z
2020-04-22T02:48:25Z
CLN: Split dtype inference tests
diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py index 3d58df258e8e9..8c0580b7cf047 100644 --- a/pandas/tests/dtypes/test_inference.py +++ b/pandas/tests/dtypes/test_inference.py @@ -782,108 +782,91 @@ def test_datetime(self): index = Index(dates) assert index...
Breaking up some very large tests in dtypes/test_inference.py
https://api.github.com/repos/pandas-dev/pandas/pulls/33690
2020-04-21T00:28:15Z
2020-04-21T12:41:01Z
2020-04-21T12:41:01Z
2020-04-21T12:51:03Z