title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
ENH: implement EA.size
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index b5da6d4c11616..6aa303dd04703 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -407,6 +407,13 @@ def shape(self) -> Tuple[int, ...]: """ return (len(self),) + @property + def size(self) -> int:...
I was surprised this didnt already exist.
https://api.github.com/repos/pandas-dev/pandas/pulls/32644
2020-03-11T23:59:44Z
2020-03-14T03:17:18Z
2020-03-14T03:17:18Z
2020-03-14T17:00:56Z
CLN: trim unnecessary checks
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 894e1d95a17bc..7889829516f7f 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -22,7 +22,6 @@ is_list_like, is_period_dtype, is_scalar, - needs_i8_conversion, ) fr...
https://api.github.com/repos/pandas-dev/pandas/pulls/32643
2020-03-11T23:57:12Z
2020-03-12T02:38:18Z
2020-03-12T02:38:18Z
2020-03-12T02:41:44Z
fix infer_freq raises section
diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py index 4af516af8a28e..2477ff29fbfd5 100644 --- a/pandas/tseries/frequencies.py +++ b/pandas/tseries/frequencies.py @@ -249,9 +249,14 @@ def infer_freq(index, warn: bool = True) -> Optional[str]: Returns ------- str or None - ...
Fixes the raises section of the `infer_freq` doc string. Seems small enough to skip a whats new entry. - [ ] 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/32642
2020-03-11T23:39:42Z
2020-03-12T23:19:23Z
2020-03-12T23:19:23Z
2020-03-13T09:43:43Z
DEPR: Index.ravel behavior
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 83064fe22eaff..e130a6c6cb1b7 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -623,6 +623,12 @@ def ravel(self, order="C"): -------- numpy.ndarray.ravel """ + warnings.warn( + ...
The future behavior should match Series.ravel. - [x] closes #19956 - [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/32641
2020-03-11T23:33:09Z
2020-03-30T16:54:14Z
null
2022-11-28T20:05:10Z
PERF: copy cached attributes on extension index shallow_copy
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index c473500c205d8..52919f966f284 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -89,9 +89,9 @@ Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - :meth:`DataFrame.swaplevels` now ra...
Follow-up to #32568. Copies ``._cache`` also when copying using ``.shallow_copy`` for: * CategoricalIndex * DatetimeIndex * PeriodIndex * DateTimeIndex * IntervalIndex After this PR, only ``MultiIndex._shallow_copy`` is missing this optimization. ``MultiIndex._shallow_copy`` is a bit special and might requi...
https://api.github.com/repos/pandas-dev/pandas/pulls/32640
2020-03-11T23:29:15Z
2020-03-12T10:29:49Z
2020-03-12T10:29:49Z
2020-03-12T10:29:55Z
DEPR: Categorical.to_dense
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 4e7bd5a2032a7..06e387d0e5073 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -207,6 +207,7 @@ Deprecations - :meth:`DataFrame.mean` and :meth:`DataFrame.median` with ``numeric_only=None`` will include...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Ideally I'd want to keep the method and change the behavior to (an improved variant of) _internal_get_values, but so it goes.
https://api.github.com/repos/pandas-dev/pandas/pulls/32639
2020-03-11T23:23:37Z
2020-03-15T00:36:15Z
2020-03-15T00:36:15Z
2020-03-15T01:27:12Z
Backport PR #32633: TYP: Remove _ensure_type
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 0a1619750de28..d00a418af3ddb 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -28,6 +28,7 @@ Fixed regressions - Fixed regression in the repr of an object-dtype :class:`Index` with bools and missing va...
https://github.com/pandas-dev/pandas/pull/32633
https://api.github.com/repos/pandas-dev/pandas/pulls/32637
2020-03-11T21:56:16Z
2020-03-11T23:25:00Z
2020-03-11T23:25:00Z
2020-03-12T02:33:57Z
TST: tighten check_categorical=False tests
diff --git a/pandas/_testing.py b/pandas/_testing.py index 136dfbd40276d..dff15c66750ac 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -824,10 +824,14 @@ def assert_categorical_equal( left.codes, right.codes, check_dtype=check_dtype, obj=f"{obj}.codes", ) else: + try: + ...
This removes all check_categorical=False usages except for a) those in tests/util and b) a skipped json test test_latin_encoding (cc @WillAyd is that likely to be enabled in the foreseeable future?)
https://api.github.com/repos/pandas-dev/pandas/pulls/32636
2020-03-11T20:20:36Z
2020-03-12T02:42:47Z
2020-03-12T02:42:47Z
2020-03-12T07:11:47Z
Backport PR #32561 on branch 1.0.x (Ensure valid Block mutation in SeriesBinGrouper.)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 768e08519543c..0a1619750de28 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in ``groupby(..).rolling(..).apply()`` (``RollingGroupby``) where the `...
Backport PR #32561: Ensure valid Block mutation in SeriesBinGrouper.
https://api.github.com/repos/pandas-dev/pandas/pulls/32635
2020-03-11T18:35:00Z
2020-03-11T19:32:13Z
2020-03-11T19:32:13Z
2020-03-11T19:32:13Z
TYP: Remove _ensure_type
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 123dfa07f4331..3d5e77b0350e6 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -27,6 +27,7 @@ Fixed regressions - Fixed regression in the repr of an object-dtype :class:`Index` with bools and missing va...
- [ ] closes #31925 - [ ] 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/32633
2020-03-11T17:22:50Z
2020-03-11T21:51:41Z
2020-03-11T21:51:40Z
2020-03-12T11:21:36Z
[WIP] Numpy dev 32bit (do not accept)
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index c9a2e4eefd19d..c1d6e51998d13 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -60,6 +60,51 @@ jobs: PANDAS_TESTING_MODE: "deprecate" EXTRA_APT: "xsel" + py37_np_115_32bit: + ENV_FILE: ci/deps/azure-37-numpy115-...
This will hopefull catch 32bit issues with newer numpy versions Do NOT accept this at this point. Right now I am trying to figure out where a bug is originating and I need the tests to run.
https://api.github.com/repos/pandas-dev/pandas/pulls/32631
2020-03-11T15:38:26Z
2020-03-31T19:08:07Z
null
2020-03-31T19:08:07Z
TST: revert parts of #32571
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 82f8a102f9c64..3964e790c7c12 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -32,6 +32,7 @@ def assert_stat_op_calc( has_skipna=True, check_dtype=True, check_date...
Should fix the broken CI builds.
https://api.github.com/repos/pandas-dev/pandas/pulls/32630
2020-03-11T15:21:48Z
2020-03-11T16:40:50Z
2020-03-11T16:40:50Z
2020-03-11T16:40:59Z
Backport PR #31524 on branch 1.0.x (BUG: non-iterable value in meta raise error in json_normalize)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index d7499bba55c97..768e08519543c 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -78,6 +78,7 @@ Bug fixes **I/O** - Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins...
Backport PR #31524: BUG: non-iterable value in meta raise error in json_normalize
https://api.github.com/repos/pandas-dev/pandas/pulls/32629
2020-03-11T15:03:18Z
2020-03-11T18:11:17Z
2020-03-11T18:11:17Z
2020-03-11T18:11:17Z
Run travis tests on x86 platforms also
diff --git a/.travis.yml b/.travis.yml index 2c8533d02ddc1..7e91db8dd2c40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,10 @@ git: matrix: fast_finish: true + arch: + - amd64 + - x86 + include: - env: - JOB="3.8" ENV_FILE="ci/deps/travis-38.yaml" PATTERN="(not slow and not networ...
Enable x86 tests for pandas under travis.
https://api.github.com/repos/pandas-dev/pandas/pulls/32627
2020-03-11T14:10:05Z
2020-03-11T14:41:05Z
null
2020-03-11T14:41:15Z
DOC: fix formatting / links of API refs in 1.0.2 whatsnew (#32620)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index ca693ff177e3b..d7499bba55c97 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -17,16 +17,17 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:is...
https://github.com/pandas-dev/pandas/pull/32620
https://api.github.com/repos/pandas-dev/pandas/pulls/32626
2020-03-11T13:56:09Z
2020-03-11T14:48:58Z
2020-03-11T14:48:58Z
2020-03-11T14:49:06Z
DOC: fix formatting / links of API refs in 1.0.2 whatsnew
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index d99ce468d402f..10191542b6d41 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -17,16 +17,17 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:is...
cc @TomAugspurger (did a few other clean-ups directly as well)
https://api.github.com/repos/pandas-dev/pandas/pulls/32620
2020-03-11T12:36:46Z
2020-03-11T13:45:30Z
2020-03-11T13:45:30Z
2020-03-11T14:00:18Z
DOC: Clarify pivot_table fill_value description
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 30abcafb56ffb..e0887c870279b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5903,7 +5903,8 @@ def pivot(self, index=None, columns=None, values=None) -> "DataFrame": If dict is passed, the key is column to aggregate and value ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- Clarify that `fill_value` gets used after performing the aggregation (i.e. it fills values in the resulting pivot table). (Depending on the a...
https://api.github.com/repos/pandas-dev/pandas/pulls/32618
2020-03-11T10:14:22Z
2020-03-11T23:25:48Z
2020-03-11T23:25:48Z
2020-03-11T23:25:54Z
DOC: Validating that the word pandas is correctly capitalized
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5401cc81785ab..ce1ab29ef0746 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -237,6 +237,11 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" * RET=$(($RET + $?)) ; ech...
- [x] closes #32316 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry As suggested by @datapythonista , I've added checks in `ci/code_checks.sh` to look if the `pandas` is being referenced in a standardized way i.e `p...
https://api.github.com/repos/pandas-dev/pandas/pulls/32613
2020-03-11T04:48:02Z
2020-04-01T15:36:21Z
null
2020-04-01T15:36:21Z
CLN: remove Block.array_dtype, SingleBlockManager.array_dtype
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 024d3b205df77..bb5b543538220 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -11,7 +11,6 @@ import pandas._libs.internals as libinternals from pandas._libs.tslibs import Timedelta, conversion fr...
We can get a more accurately-dtyped empty array instead.
https://api.github.com/repos/pandas-dev/pandas/pulls/32612
2020-03-11T04:35:40Z
2020-03-14T03:30:13Z
2020-03-14T03:30:13Z
2020-03-14T16:27:26Z
REF: implement _get_engine_target
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a5f133fb10d10..929fcafff36af 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -567,10 +567,10 @@ def _cleanup(self): def _engine(self): # property, for now, slow to look up - # to avoid a ref...
Follow-up to #32467.
https://api.github.com/repos/pandas-dev/pandas/pulls/32611
2020-03-11T03:01:59Z
2020-03-12T04:30:03Z
2020-03-12T04:30:03Z
2020-03-12T15:30:46Z
CLN: Clean frame/test_constructors.py
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 071d2409f1be2..4407f204e0a0c 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -47,15 +47,15 @@ class TestDataFrameConstructors: def test_series_with_name_not_ma...
I think these classes are all imported directly so don't need to reference the pandas namespace
https://api.github.com/repos/pandas-dev/pandas/pulls/32610
2020-03-11T02:41:46Z
2020-03-14T19:41:00Z
2020-03-14T19:41:00Z
2020-03-14T19:44:07Z
Backport PR #32577 on branch 1.0.x (REG: Restore read_csv function for some file-likes)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 9841df0507138..8db47000480ed 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -25,6 +25,7 @@ Fixed regressions - Fixed regression in :meth:`pandas.core.groupby.GroupBy.agg` calling a user-provided func...
Backport PR #32577: REG: Restore read_csv function for some file-likes
https://api.github.com/repos/pandas-dev/pandas/pulls/32609
2020-03-11T02:22:12Z
2020-03-11T04:08:25Z
2020-03-11T04:08:25Z
2020-03-11T04:08:25Z
TST: fixturize skipna in test_nanops
diff --git a/pandas/tests/test_nanops.py b/pandas/tests/test_nanops.py index f7e652eb78e2d..852e1ce489893 100644 --- a/pandas/tests/test_nanops.py +++ b/pandas/tests/test_nanops.py @@ -19,6 +19,14 @@ has_c16 = hasattr(np, "complex128") +@pytest.fixture(params=[True, False]) +def skipna(request): + """ + Fixt...
https://api.github.com/repos/pandas-dev/pandas/pulls/32607
2020-03-11T01:56:21Z
2020-03-11T02:55:24Z
2020-03-11T02:55:24Z
2020-03-11T03:09:37Z
Backport PR #32386 on branch 1.0.x (BUG: Fix rolling functions with variable windows on decreasing index)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 9841df0507138..3e4dfd4e75a66 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -89,6 +89,10 @@ Bug fixes - Using ``pd.NA`` with :meth:`Series.str.repeat` now correctly outputs a null value instead of ...
Backport PR #32386: BUG: Fix rolling functions with variable windows on decreasing index
https://api.github.com/repos/pandas-dev/pandas/pulls/32606
2020-03-11T01:53:52Z
2020-03-11T02:57:58Z
2020-03-11T02:57:58Z
2020-03-11T02:57:58Z
Backport PR #32499 on branch 1.0.x (Better error message for OOB result)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 9841df0507138..88ee732ded071 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -65,6 +65,7 @@ Bug fixes - Bug in :meth:`DataFrame.reindex` and :meth:`Series.reindex` when reindexing with a tz-aware in...
Backport PR #32499: Better error message for OOB result
https://api.github.com/repos/pandas-dev/pandas/pulls/32605
2020-03-11T01:46:05Z
2020-03-11T02:33:53Z
2020-03-11T02:33:53Z
2020-03-11T02:33:53Z
Avoid bare pytest.raises in dtypes/test_dtypes.py
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 181f0c8906853..d29102cbd4604 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -558,7 +558,7 @@ def validate_categories(categories, fastpath: bool = False): if not fastpath: if categories...
* [x] ref #30999 * [x] tests added / passed * [x] passes `black pandas` * [x] passes `git diff origin/master -u -- "*.py" | flake8 --diff` Please be aware that I changed dtypes.py as there was a typo in the exception message.
https://api.github.com/repos/pandas-dev/pandas/pulls/32604
2020-03-11T01:17:22Z
2020-03-11T02:48:21Z
null
2020-03-11T02:48:21Z
Avoid bare pytest.raises in dtypes/cast/test_upcast.py
diff --git a/pandas/tests/dtypes/cast/test_upcast.py b/pandas/tests/dtypes/cast/test_upcast.py index bb7a7d059c7ee..f9227a4e78a79 100644 --- a/pandas/tests/dtypes/cast/test_upcast.py +++ b/pandas/tests/dtypes/cast/test_upcast.py @@ -12,7 +12,7 @@ def test_upcast_error(result): # GH23823 require result arg to be nd...
* [x] ref #30999 * [x] tests added / passed * [x] passes `black pandas` * [x] passes `git diff origin/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32603
2020-03-11T00:49:57Z
2020-03-11T01:50:43Z
2020-03-11T01:50:43Z
2020-03-21T00:41:45Z
DOC: Fix link to monthly meeting calendar
diff --git a/doc/source/development/meeting.rst b/doc/source/development/meeting.rst index 1d19408692cda..803f1b7002de0 100644 --- a/doc/source/development/meeting.rst +++ b/doc/source/development/meeting.rst @@ -25,7 +25,7 @@ This calendar shows all the developer meetings. You can subscribe to this calendar with the ...
The link we currently have for Google calendar is to embed, and let you see the calendar, but not subscribe to it. Fixing it here.
https://api.github.com/repos/pandas-dev/pandas/pulls/32602
2020-03-10T23:20:13Z
2020-03-11T03:10:38Z
2020-03-11T03:10:38Z
2020-03-11T03:10:38Z
TST: assert monotonic is True
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 071d2409f1be2..7ff97c0abbc5f 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1314,7 +1314,7 @@ def test_constructor_mixed_dict_and_Series(self): data["B"] ...
Makes tests for monoticity stricter. Follow-up to #23256.
https://api.github.com/repos/pandas-dev/pandas/pulls/32601
2020-03-10T22:52:20Z
2020-03-10T22:59:20Z
null
2020-08-08T08:31:25Z
BUG: Fix file descriptor leak
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 4e7bd5a2032a7..31010c98712ad 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -337,6 +337,7 @@ I/O - Bug in :meth:`read_csv` was raising `TypeError` when `sep=None` was used in combination with `commen...
- [x] closes #31488 - [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/32598
2020-03-10T21:47:38Z
2020-03-15T00:37:42Z
2020-03-15T00:37:42Z
2020-03-15T07:14:03Z
REF: implement nanops.na_accum_func
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f53135174741e..427b1bfc28ba5 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -30,7 +30,7 @@ from pandas._config import config -from pandas._libs import Timestamp, iNaT, lib +from pandas._libs import Timestamp, lib from pandas._...
this is a follow-up that was requested a few months ago
https://api.github.com/repos/pandas-dev/pandas/pulls/32597
2020-03-10T21:41:06Z
2020-03-14T03:32:24Z
2020-03-14T03:32:24Z
2020-03-14T17:03:00Z
Backport PR #32592 on branch 1.0.x (DOC: cleanup 1.0.2 whatsnew)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 462f243f14494..9841df0507138 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -1,7 +1,7 @@ .. _whatsnew_102: -What's new in 1.0.2 (February ??, 2020) ---------------------------------------- +What's ...
Backport PR #32592: DOC: cleanup 1.0.2 whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/32596
2020-03-10T20:46:56Z
2020-03-10T21:52:46Z
2020-03-10T21:52:46Z
2020-03-10T21:52:46Z
BUG: Don't multiply sets during construction
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 48eff0543ad4d..e9e87ec202ef5 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -241,7 +241,7 @@ Conversion ^^^^^^^^^^ - Bug in :class:`Series` construction from NumPy array with big-endian ``datetime64...
- [x] closes #32582 - [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/32594
2020-03-10T19:25:56Z
2020-03-15T00:41:34Z
2020-03-15T00:41:34Z
2020-03-15T00:42:47Z
DOC: cleanup 1.0.2 whatsnew
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 462f243f14494..9841df0507138 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -1,7 +1,7 @@ .. _whatsnew_102: -What's new in 1.0.2 (February ??, 2020) ---------------------------------------- +What's ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32592
2020-03-10T19:17:48Z
2020-03-10T20:46:43Z
2020-03-10T20:46:43Z
2020-03-11T12:20:39Z
REG: dt64 shift with integer fill_value
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index ee4b265ce3ed9..e6d65b1f828cb 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -29,6 +29,7 @@ Fixed regressions - Fixed regression in :meth:`read_csv` in which the ``encoding`` option was not recognized...
- [x] closes #31971 - [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/32591
2020-03-10T18:59:28Z
2020-03-12T02:26:13Z
2020-03-12T02:26:13Z
2020-03-12T17:02:55Z
CLN: remove unreachable code in pandas/core/groupby/generic.py::DataFrameGroupBy::_transform_general
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 4102b8527b6aa..a7cee5106af30 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1202,158 +1202,147 @@ def first_not_none(values): # GH9684. If all values are None, then this will throw an er...
Is this part of the code ``` else: # Handle cases like BinGrouper return self._concat_objects(keys, values, not_indexed_same=not_indexed_same) ``` necessary? The condition before it is ``` elif self.grouper.groupings is not None ``` . However, even in the case of `BinGrouper`, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32583
2020-03-10T16:09:32Z
2020-04-11T13:04:18Z
null
2020-10-10T14:14:54Z
Backport PR #31684 on branch 1.0.x (BUG: string methods with NA)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 808e6ae709ce9..35358d8303175 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -84,6 +84,10 @@ Bug fixes - Fixed bug where :meth:`GroupBy.first` and :meth:`GroupBy.last` would raise a ``TypeError`` when...
Backport PR #31684: BUG: string methods with NA
https://api.github.com/repos/pandas-dev/pandas/pulls/32578
2020-03-10T14:09:22Z
2020-03-10T16:21:21Z
2020-03-10T16:21:21Z
2020-03-10T16:21:21Z
REG: Restore read_csv function for some file-likes
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 9841df0507138..8db47000480ed 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -25,6 +25,7 @@ Fixed regressions - Fixed regression in :meth:`pandas.core.groupby.GroupBy.agg` calling a user-provided func...
Restore `read_csv` function for some file-likes Restores behavior down to the fact that the Python engine cannot handle NamedTemporaryFile. Closes https://github.com/pandas-dev/pandas/issues/31819 Credit to @sasanquaneuf for [originating idea](https://github.com/pandas-dev/pandas/issues/31819#issue...
https://api.github.com/repos/pandas-dev/pandas/pulls/32577
2020-03-10T10:22:21Z
2020-03-11T02:22:02Z
2020-03-11T02:22:02Z
2020-03-11T02:22:06Z
TST: Add tests for duplicated and drop_duplicates
diff --git a/pandas/tests/indexes/categorical/test_category.py b/pandas/tests/indexes/categorical/test_category.py index 543edc6b66ff2..83fe21fd20bfe 100644 --- a/pandas/tests/indexes/categorical/test_category.py +++ b/pandas/tests/indexes/categorical/test_category.py @@ -292,16 +292,81 @@ def test_is_monotonic(self, d...
- [x] refers to #15752 - [x] tests added / passed - [x] tests duplicated and drop_duplicates for period, categorical, datetimes, timedelta
https://api.github.com/repos/pandas-dev/pandas/pulls/32575
2020-03-10T09:35:01Z
2020-04-06T23:23:00Z
2020-04-06T23:23:00Z
2020-04-16T17:15:04Z
Backport PR #31875 on branch 1.0.x (DOC: add redirects from Rolling to rolling.Rolling)
diff --git a/doc/redirects.csv b/doc/redirects.csv index ef93955c14fe6..3669ff4b7cc0b 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -49,7 +49,25 @@ internals,development/internals # api moved function reference/api/pandas.io.json.json_normalize,pandas.json_normalize -# api rename +# rename due to refact...
Backport PR #31875: DOC: add redirects from Rolling to rolling.Rolling
https://api.github.com/repos/pandas-dev/pandas/pulls/32574
2020-03-10T08:35:58Z
2020-03-10T10:15:57Z
2020-03-10T10:15:57Z
2020-03-10T10:15:57Z
Backport PR #32564 on branch 1.0.x (DOC: Add missing question mark icon)
diff --git a/doc/source/_static/question_mark_noback.svg b/doc/source/_static/question_mark_noback.svg new file mode 100644 index 0000000000000..3abb4b806d20a --- /dev/null +++ b/doc/source/_static/question_mark_noback.svg @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inksc...
Backport PR #32564: DOC: Add missing question mark icon
https://api.github.com/repos/pandas-dev/pandas/pulls/32573
2020-03-10T07:19:02Z
2020-03-10T07:54:41Z
2020-03-10T07:54:41Z
2020-03-10T07:54:42Z
TST: stricter tests, avoid check_categorical=False, check_less_precise
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 07e30d41c216d..f4a10abea9757 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -32,7 +32,6 @@ def assert_stat_op_calc( has_skipna=True, check_dtype=True, check_date...
Won't be too surprised if 32bit builds need some troubleshooting.
https://api.github.com/repos/pandas-dev/pandas/pulls/32571
2020-03-10T02:30:06Z
2020-03-11T02:27:15Z
2020-03-11T02:27:15Z
2020-03-11T02:30:00Z
CLN: avoid _internal_get_values in pandas._testing
diff --git a/pandas/_testing.py b/pandas/_testing.py index 5e94ac3b3d108..1048e0d8b6dc6 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -1038,7 +1038,8 @@ def assert_extension_array_equal( if hasattr(left, "asi8") and type(right) == type(left): # Avoid slow object-dtype comparisons - ...
7 more usages left after this
https://api.github.com/repos/pandas-dev/pandas/pulls/32570
2020-03-10T02:26:43Z
2020-03-11T02:19:30Z
2020-03-11T02:19:30Z
2020-03-13T17:28:11Z
PERF: copy cached attributes on index shallow_copy
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e745bf3f5feed..f20c3df027fba 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -187,7 +187,9 @@ Performance improvements - Performance improvement in :class:`Timedelta` constructor (:issue:`30543`) - P...
- [x] closes #28584 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The performance of the example in #28584 is: ```python >>> idx = pd.Index(np.arange(100_000)) >>> %timeit idx.get_loc(99_999) 1.17 µs ± 80.6 n...
https://api.github.com/repos/pandas-dev/pandas/pulls/32568
2020-03-09T22:33:40Z
2020-03-11T03:06:03Z
2020-03-11T03:06:03Z
2020-03-11T09:02:49Z
TST: add test.indexes.common.Base.create_index and annotate .create_index
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index 69451501fd7bd..e5af0d9c03979 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -35,6 +35,9 @@ class Base: _holder: Optional[Type[Index]] = None _compat_props = ["shape", "ndim", "size", "nbytes...
Makes ``test.indexes.common.Base`` and ``create_index`` a bit easier to work with.
https://api.github.com/repos/pandas-dev/pandas/pulls/32567
2020-03-09T22:26:59Z
2020-03-10T11:09:21Z
2020-03-10T11:09:20Z
2020-03-10T11:09:31Z
BUG: Fix segfault in csv tokenizer
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 21e59805fa143..36cfb4a904139 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -340,6 +340,7 @@ I/O - Bug in :class:`HDFStore` that caused it to set to ``int64`` the dtype of a ``datetime64`` column whe...
- [x] closes #28071 - [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/32566
2020-03-09T22:07:06Z
2020-03-16T02:21:30Z
2020-03-16T02:21:29Z
2020-03-16T20:08:32Z
TST: Fix bare pytest raises in generic/test_frame.py
diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py index dca65152e82db..8fe49b2ec2299 100644 --- a/pandas/tests/generic/test_frame.py +++ b/pandas/tests/generic/test_frame.py @@ -72,9 +72,10 @@ def test_nonzero_single_element(self): assert not df.bool() df = DataFra...
- [x] refers https://github.com/pandas-dev/pandas/issues/30999 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Adds match arguments to pytest.raises calls in pandas/tests/generic/test_frame.py
https://api.github.com/repos/pandas-dev/pandas/pulls/32565
2020-03-09T20:34:14Z
2020-03-10T10:37:29Z
2020-03-10T10:37:29Z
2020-03-10T10:37:41Z
DOC: Add missing question mark icon
diff --git a/doc/source/_static/question_mark_noback.svg b/doc/source/_static/question_mark_noback.svg new file mode 100644 index 0000000000000..3abb4b806d20a --- /dev/null +++ b/doc/source/_static/question_mark_noback.svg @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inksc...
- [x] closes #32469 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I added the question mark to the `_static` folder. When rebuilding the documentation pages locally using the latest version of the `pydata-bootstrap...
https://api.github.com/repos/pandas-dev/pandas/pulls/32564
2020-03-09T20:29:51Z
2020-03-10T07:18:29Z
2020-03-10T07:18:29Z
2020-03-10T07:18:29Z
Fix warning in io/excel/test_openpyxl
diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py index 10ed192062d9c..60c943d95e510 100644 --- a/pandas/tests/io/excel/test_openpyxl.py +++ b/pandas/tests/io/excel/test_openpyxl.py @@ -114,7 +114,7 @@ def test_to_excel_with_openpyxl_engine(ext, tmpdir): df2 = DataFrame({...
as requested in PR #32544
https://api.github.com/repos/pandas-dev/pandas/pulls/32563
2020-03-09T20:28:59Z
2020-03-10T11:17:12Z
2020-03-10T11:17:12Z
2020-03-11T15:47:52Z
Ensure valid Block mutation in SeriesBinGrouper.
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 123dfa07f4331..bc234bbd31662 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in ``groupby(..).rolling(..).apply()`` (``RollingGroupby``) where the `...
Closes https://github.com/pandas-dev/pandas/issues/31802 ~This "fixes" #31802 by expanding the number of cases where we swallow an exception in libreduction. Currently, we're creating an invalid Series in SeriesBinGrouper where the `.mgr_locs` doesn't match the values. See https://github.com/pandas-dev/pandas/iss...
https://api.github.com/repos/pandas-dev/pandas/pulls/32561
2020-03-09T19:16:11Z
2020-03-11T18:34:48Z
2020-03-11T18:34:48Z
2020-03-11T18:34:49Z
TST: Add extra test for pandas.to_numeric() for issue #32394
diff --git a/pandas/tests/tools/test_to_numeric.py b/pandas/tests/tools/test_to_numeric.py index 19385e797467c..e0dfeac4ab475 100644 --- a/pandas/tests/tools/test_to_numeric.py +++ b/pandas/tests/tools/test_to_numeric.py @@ -627,3 +627,13 @@ def test_non_coerce_uint64_conflict(errors, exp): else: result =...
- [x] closes #32394 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (covered by PR #32541)
https://api.github.com/repos/pandas-dev/pandas/pulls/32560
2020-03-09T19:01:15Z
2020-03-15T00:38:58Z
2020-03-15T00:38:58Z
2020-03-15T07:16:17Z
BUG: pivot_table losing tz
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 85fe33b7c83e8..fe9715313f0db 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -367,6 +367,7 @@ Reshaping - :meth:`Series.append` will now raise a ``TypeError`` when passed a DataFrame or a sequence con...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This gets rid of the last values_from_object usage (pending other PRs) `_tile_compat` likely makes more sense as an Index method. I kept it here ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32558
2020-03-09T18:46:52Z
2020-03-14T23:28:54Z
2020-03-14T23:28:54Z
2020-03-14T23:31:12Z
CLN: values_from_object in computation.pytables
diff --git a/pandas/core/computation/pytables.py b/pandas/core/computation/pytables.py index 653d014775386..15d9987310f18 100644 --- a/pandas/core/computation/pytables.py +++ b/pandas/core/computation/pytables.py @@ -17,6 +17,7 @@ from pandas.core.computation.common import _ensure_decoded from pandas.core.computation...
By my count there is just one more `values_from_object` call to go.
https://api.github.com/repos/pandas-dev/pandas/pulls/32557
2020-03-09T18:30:47Z
2020-03-11T02:33:14Z
2020-03-11T02:33:14Z
2020-03-11T02:34:56Z
CLN: avoid _internal_get_values in Categorical.__iter__
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 40a169d03f39c..7846941ce79d4 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -31,6 +31,7 @@ is_integer_dtype, is_iterator, is_list_like, + is_numeric_dtype, is_object...
https://api.github.com/repos/pandas-dev/pandas/pulls/32555
2020-03-09T17:23:13Z
2020-03-11T23:45:21Z
null
2020-03-11T23:45:34Z
CLN: remove Categorical.put
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 92859479ec73f..ba4c2e168e0c4 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1409,12 +1409,6 @@ def notna(self): notnull = notna - def put(self, *args, **kwargs): - """ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32554
2020-03-09T17:16:17Z
2020-03-09T21:27:57Z
2020-03-09T21:27:57Z
2020-03-09T21:28:30Z
Backport PR #32242 on branch 1.0.x (BUG: Fixed bug, where pandas._libs.lib.maybe_convert_objects function improperly handled arrays with bools and NaNs)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 808e6ae709ce9..eec471f989037 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` arithmetic operations with mis-matched columns (:...
Backport PR #32242: BUG: Fixed bug, where pandas._libs.lib.maybe_convert_objects function improperly handled arrays with bools and NaNs
https://api.github.com/repos/pandas-dev/pandas/pulls/32552
2020-03-09T15:42:45Z
2020-03-10T16:22:32Z
2020-03-10T16:22:31Z
2020-03-10T16:22:32Z
DOC: Fix EX01 in pandas.DataFrame.idxmax
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index cd5d81bc70dd9..60fc69e8222d6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8029,6 +8029,35 @@ def idxmax(self, axis=0, skipna=True) -> Series: Notes ----- This method is the DataFrame version of ``ndarray.argmax...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. ``` ################################################################################ ################################## Vali...
https://api.github.com/repos/pandas-dev/pandas/pulls/32551
2020-03-09T05:53:51Z
2020-03-11T01:35:50Z
2020-03-11T01:35:50Z
2020-03-11T01:35:56Z
DOC: Added docstring for Series.name and corrected docstring guide
diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst index 1c99b341f6c5a..18c2769d7ca4b 100644 --- a/doc/source/development/contributing_docstring.rst +++ b/doc/source/development/contributing_docstring.rst @@ -17,7 +17,7 @@ Also, it is a common practice to ...
The main contribution is to add a docstring with examples for the "name" property of the Series object. Also corrected some typos and grammatical points in the "pandas docstring guide". The type hint gives the type as "Label" and I could not find any other reference to a custom type defined in pandas._typing which ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32549
2020-03-08T21:54:37Z
2020-03-17T00:07:36Z
2020-03-17T00:07:36Z
2020-03-17T00:07:43Z
BUG: Add extra check for failing UTF-8 conversion
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d644a995a4876..5d962ff04464e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -302,6 +302,7 @@ I/O timestamps with ``version="2.0"`` (:issue:`31652`). - Bug in :meth:`read_csv` was raising `TypeErro...
- [x] closes #23809 - [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/32548
2020-03-08T21:35:41Z
2020-03-12T00:54:07Z
2020-03-12T00:54:07Z
2020-03-12T21:36:19Z
CLN: remove unnecessary values_from_objects in groupby.ops
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 7259268ac3f2b..577c874c9cbbe 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -217,7 +217,7 @@ def indices(self): return self.groupings[0].indices else: codes_list = [ping.codes for p...
2 values_from_object calls left to go...
https://api.github.com/repos/pandas-dev/pandas/pulls/32547
2020-03-08T21:19:39Z
2020-03-11T02:32:41Z
2020-03-11T02:32:41Z
2020-03-11T02:49:54Z
BUG: Dataframe.groupby aggregations with categorical columns lead to incorrect results.
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 92f7c0f6b59a3..0aa5538c92482 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -976,6 +976,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.apply` raises ``ValueError`` when the ``by`` axis is no...
- [x] closes #32494 - [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/32546
2020-03-08T19:51:00Z
2020-06-14T15:02:05Z
2020-06-14T15:02:05Z
2020-06-14T16:31:04Z
CLN: to_dense->np.asarray
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 40a169d03f39c..92859479ec73f 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1728,7 +1728,8 @@ def fillna(self, value=None, method=None, limit=None): # pad / bfill if met...
This is the only non-test use of Categorical.to_dense, which is slightly different from _internal_get_values (for SparseArray the two methods are identical), and so liable to cause confusion.
https://api.github.com/repos/pandas-dev/pandas/pulls/32545
2020-03-08T19:41:28Z
2020-03-09T13:47:45Z
2020-03-09T13:47:45Z
2020-03-09T16:38:51Z
BUG: pd.ExcelFile closes stream on destruction
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index e6d65b1f828cb..052de47b570da 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -28,6 +28,7 @@ Fixed regressions - Fixed regression in the repr of an object-dtype :class:`Index` with bools and missing va...
- [x] closes #31467 - [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/32544
2020-03-08T19:14:23Z
2020-03-12T12:18:21Z
2020-03-12T12:18:21Z
2020-03-12T21:35:56Z
ENH: Add `replace` method to `Index`
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 24ba9be4383eb..276b015450212 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -61,6 +61,7 @@ Other - Bumped minimum pymysql version to 0.8.1 to avoid test failures (:issue:`38344`) - Fixed build failu...
- [X] closes #19495 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry - [x] docstring for the new Index.replace() method - [X] won't do: type hints - [ ] merge with `ENH:` commit message Added a replace method to In...
https://api.github.com/repos/pandas-dev/pandas/pulls/32542
2020-03-08T14:03:02Z
2021-04-11T00:29:52Z
null
2021-04-11T00:29:52Z
Fix failure to convert string "uint64" to NaN
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d644a995a4876..e745bf3f5feed 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -231,7 +231,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`DataFrame.floordiv` with ``axis=0`` not treating division-by-z...
Including regression test - [x] closes #32394 - [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/32541
2020-03-08T13:44:42Z
2020-03-09T03:29:30Z
2020-03-09T03:29:29Z
2020-03-11T15:48:23Z
DOC: Remove absolute urls from the docs
diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst index 6a03c06de3699..e3c8f8f5ccbcd 100644 --- a/doc/source/getting_started/comparison/comparison_with_sql.rst +++ b/doc/source/getting_started/comparison/comparison_with_sql.rst @@ ...
- [x] closes #32529 - [ ] 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/32539
2020-03-08T05:37:10Z
2020-03-12T07:15:30Z
2020-03-12T07:15:30Z
2020-03-12T08:03:38Z
ENH: IntegerArray.astype(dt64)
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index b78b623bfa187..94e757624c136 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -14,7 +14,7 @@ PyDateTime_IMPORT cimport numpy as cnp -from numpy cimport float64_t, int64_t, ndarray +from numpy cimport float64_t, int64_t, ndarray, ...
- [x] closes #32435 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Let's us de-kludge to_datetime code, getting rid of another _ndarray_values usage.
https://api.github.com/repos/pandas-dev/pandas/pulls/32538
2020-03-08T03:09:38Z
2020-03-14T03:37:22Z
2020-03-14T03:37:22Z
2020-04-05T17:46:02Z
CLN: avoid values_from_object in reshape.merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index e75dced21f488..aeec2a43f39bf 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -45,6 +45,7 @@ import pandas.core.algorithms as algos from pandas.core.arrays.categorical import _recode_for_categories import pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/32537
2020-03-08T03:03:41Z
2020-03-12T04:44:25Z
2020-03-12T04:44:24Z
2020-03-12T15:23:44Z
TST: separate out pd.crosstab tests from test_pivot
diff --git a/pandas/tests/reshape/test_crosstab.py b/pandas/tests/reshape/test_crosstab.py new file mode 100644 index 0000000000000..8795af2e11122 --- /dev/null +++ b/pandas/tests/reshape/test_crosstab.py @@ -0,0 +1,700 @@ +import numpy as np +import pytest + +from pandas import CategoricalIndex, DataFrame, Index, Mult...
https://api.github.com/repos/pandas-dev/pandas/pulls/32536
2020-03-08T02:57:28Z
2020-03-09T20:17:16Z
2020-03-09T20:17:15Z
2020-03-09T20:18:35Z
BUG: retain tz in to_records
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 48eff0543ad4d..77da6fe035248 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -356,6 +356,7 @@ Other instead of ``TypeError: Can only append a Series if ignore_index=True or if the Series has a name`...
plus the initial motivation: get rid of two of our `_internal_get_values` calls (of which i count 16 left in master)
https://api.github.com/repos/pandas-dev/pandas/pulls/32535
2020-03-08T02:13:42Z
2020-03-14T21:29:22Z
2020-03-14T21:29:22Z
2020-03-14T21:29:43Z
CLN: remove unused in pd._testing
diff --git a/pandas/_testing.py b/pandas/_testing.py index 33ec4e4886aa6..dcddb21cd1604 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -32,7 +32,6 @@ is_datetime64tz_dtype, is_extension_array_dtype, is_interval_dtype, - is_list_like, is_number, is_period_dtype, is_sequence,...
https://api.github.com/repos/pandas-dev/pandas/pulls/32534
2020-03-07T23:52:18Z
2020-03-10T11:24:34Z
2020-03-10T11:24:34Z
2020-03-10T15:03:19Z
CLN: remove unnecessary to_dense call
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 2a528781f8c93..c879eaeda64e0 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1352,8 +1352,6 @@ def format_values_with(float_format): values = self.values is_complex = is_complex_dtype(va...
This call is not reached in the tests, and if it were the following line would make it superfluous anyway. I'm pretty sure the comment there is wrong too.
https://api.github.com/repos/pandas-dev/pandas/pulls/32533
2020-03-07T23:40:04Z
2020-03-10T13:31:26Z
2020-03-10T13:31:26Z
2020-03-10T14:54:35Z
TYP: Add type hint for DataFrame.T and certain array types
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index ba4c2e168e0c4..da9eef995f193 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1317,7 +1317,7 @@ def __setstate__(self, state): setattr(self, k, v) @property - def T(s...
While updating a large pandas codebase with type coverage to 1.0, I noticed that `DataFrame.transpose()` is annotated to return `DataFrame` while `DataFrame.T` has no such hint. This PR also adds hints in a few places other places where they're trivial. The definition of `pandas.core.base.IndexOpsMixIn.transpose` (a...
https://api.github.com/repos/pandas-dev/pandas/pulls/32532
2020-03-07T23:31:02Z
2020-03-11T03:19:11Z
2020-03-11T03:19:11Z
2020-03-11T03:19:15Z
DOC: Update pandas.core.groupby.GroupBy.pipe docstring
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 48c00140461b5..b30e5e3569c03 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -190,14 +190,14 @@ class providing the base-class of operations. ) _pipe_template = """ -Apply a function `func` with ar...
- [x] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/2 - [ ] 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/32531
2020-03-07T22:09:02Z
2020-03-31T17:41:31Z
null
2020-03-31T17:41:32Z
CI: Update web and docs to OVH with the right structure
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a337ccbc98650..025b6f1813df7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,68 +125,32 @@ jobs: - name: Check ipython directive errors run: "! grep -B1 \"^<<<-------------------------------------------------...
- [X] closes #32303 I'm uploading all the docs from the NumFOCUS server to the OVH (manually). And I'm changing the CI in this PR to upload the website and the dev docs to the server automatically. I'll have a look and see if we can upload a new version of the docs automatically to OVH when a new GitHub release i...
https://api.github.com/repos/pandas-dev/pandas/pulls/32530
2020-03-07T21:53:36Z
2020-03-11T12:58:03Z
2020-03-11T12:58:03Z
2020-03-20T16:36:14Z
TST: make tests stricter
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index d4baf2f374cdf..202e30287881f 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -913,13 +913,13 @@ def test_frame_operators(self, float_frame): # TODO: taken fro...
I expect to see some platform-specific failures, will be nice to document those where possible.
https://api.github.com/repos/pandas-dev/pandas/pulls/32527
2020-03-07T19:52:24Z
2020-03-14T03:41:07Z
2020-03-14T03:41:06Z
2020-03-14T16:09:26Z
TST: remove unused kwargs in assert_sp_array_equal
diff --git a/pandas/_testing.py b/pandas/_testing.py index 33ec4e4886aa6..c30810f724245 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -1491,14 +1491,7 @@ def to_array(obj): # Sparse -def assert_sp_array_equal( - left, - right, - check_dtype=True, - check_kind=True, - check_fill_value=T...
https://api.github.com/repos/pandas-dev/pandas/pulls/32525
2020-03-07T19:02:03Z
2020-03-10T11:43:37Z
2020-03-10T11:43:37Z
2020-03-10T15:01:32Z
CLN: avoid Block.get_values in io.sql
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 9a53e7cd241e1..560e7e4781cbb 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -705,8 +705,16 @@ def insert_data(self): else: # convert to microsecond resolution for datetime.datetime d = b.values.ast...
This particular usage is especially non-transparent, since it is effectively `blk.get_values().astype(object)` which is apparently _not_ equivalent to `blk.get_values(object)`
https://api.github.com/repos/pandas-dev/pandas/pulls/32524
2020-03-07T18:27:24Z
2020-03-11T02:52:55Z
2020-03-11T02:52:55Z
2020-03-11T03:07:37Z
CLN: simplify get_values usage in groupby
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index ac522fc7863b2..b7ac3048631c5 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -49,7 +49,7 @@ is_scalar, needs_i8_conversion, ) -from pandas.core.dtypes.missing import _isna_ndarraylike, isna,...
This will avoid an object-casting for e.g. IntervalArray-backed ExtensionBlock.
https://api.github.com/repos/pandas-dev/pandas/pulls/32523
2020-03-07T18:17:49Z
2020-03-11T02:52:01Z
2020-03-11T02:52:00Z
2020-03-11T03:10:49Z
CLN: remove SingleBlockManager.get_values
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 98afc5ac3a0e3..b21b3d1b475d9 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1596,10 +1596,6 @@ def internal_values(self): """The array that Series._values returns""" ret...
It is only used in one place, and its behavior doesn't match `self.blocks[0].get_values()`, which is counter-intuitive.
https://api.github.com/repos/pandas-dev/pandas/pulls/32522
2020-03-07T18:14:02Z
2020-03-11T02:20:33Z
2020-03-11T02:20:33Z
2020-03-11T14:42:41Z
CLN: rename get_block_values, simplify
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 8cfc20ffd2c1c..1d17cce0bc3a9 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -237,9 +237,9 @@ static PyObject *get_values(PyObject *obj) { } } ...
cc @WillAyd name more explicit, implementation more transparent.
https://api.github.com/repos/pandas-dev/pandas/pulls/32521
2020-03-07T17:23:11Z
2020-03-11T02:22:42Z
2020-03-11T02:22:42Z
2020-03-11T02:27:23Z
BUG: Multiindexed series .at fix
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 3b60085e9fa66..f98bd53b6cdf8 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -731,6 +731,7 @@ Indexing - Bug in :meth:`Series.__getitem__` allowing missing labels with ``np.ndarray``, :class:`Index`, ...
- [x] closes #26989 - [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/32520
2020-03-07T17:00:57Z
2020-05-25T22:07:51Z
2020-05-25T22:07:50Z
2020-07-11T16:02:07Z
TST: fix test creating invalid CategoricalBlock
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f07fa99fe57d6..83980e9028e9a 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1739,6 +1739,10 @@ def __init__(self, values, placement, ndim=None): values = self._maybe_coerce_values(values...
The incorrect tests here turned up when trying to replace Block.get_values calls with simpler alternatives.
https://api.github.com/repos/pandas-dev/pandas/pulls/32519
2020-03-07T16:24:17Z
2020-03-14T15:50:17Z
2020-03-14T15:50:16Z
2020-03-14T15:50:59Z
CLN: removed unused import
diff --git a/pandas/_libs/tslibs/np_datetime.pyx b/pandas/_libs/tslibs/np_datetime.pyx index b59a1101e0bf7..9a8a8fdae6d2f 100644 --- a/pandas/_libs/tslibs/np_datetime.pyx +++ b/pandas/_libs/tslibs/np_datetime.pyx @@ -1,12 +1,15 @@ from cpython.object cimport Py_EQ, Py_NE, Py_GE, Py_GT, Py_LT, Py_LE -from cpython.dat...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- Not 100% sure about this, can close anytime if not a good PR
https://api.github.com/repos/pandas-dev/pandas/pulls/32518
2020-03-07T13:43:01Z
2020-03-12T17:24:36Z
2020-03-12T17:24:35Z
2020-03-14T14:06:31Z
CLN: Suppres compile warnings of pandas/io/sas/sas.pyx
diff --git a/pandas/io/sas/sas.pyx b/pandas/io/sas/sas.pyx index 40fea0aaf0d07..11171af1e0c82 100644 --- a/pandas/io/sas/sas.pyx +++ b/pandas/io/sas/sas.pyx @@ -120,7 +120,7 @@ cdef const uint8_t[:] rdc_decompress(int result_length, const uint8_t[:] inbuff) cdef: uint8_t cmd - uint16_t ctrl_bits,...
- [x] ref #32163 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- This is the warning that get removed: ``` pandas/io/sas/sas.c: In function ‘__pyx_f_6pandas_2io_3sas_4_sas_rdc_decompress’: pandas/io/sas/s...
https://api.github.com/repos/pandas-dev/pandas/pulls/32517
2020-03-07T13:15:03Z
2020-03-12T04:46:18Z
2020-03-12T04:46:18Z
2020-03-13T16:59:08Z
Deprecate Aliases as orient Argument in DataFrame.to_dict
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 48eff0543ad4d..3a7c7e798ed88 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -175,7 +175,7 @@ Deprecations - Lookups on a :class:`Series` with a single-item list containing a slice (e.g. ``ser[[slice(...
- [ x] closes #32515 - [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/32516
2020-03-07T12:53:26Z
2020-03-14T21:33:06Z
2020-03-14T21:33:06Z
2020-06-01T14:52:06Z
CLN: remove check_series_type
diff --git a/pandas/_testing.py b/pandas/_testing.py index 33ec4e4886aa6..5e94ac3b3d108 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -34,6 +34,7 @@ is_interval_dtype, is_list_like, is_number, + is_numeric_dtype, is_period_dtype, is_sequence, is_timedelta64_dtype, @@ -1064...
Trying to clean up assert_series_equal and avoid usage of _internal_get_values; I'm finding that these functions are _weird_, and in particular categorical dtype handling is opaque
https://api.github.com/repos/pandas-dev/pandas/pulls/32513
2020-03-07T04:52:54Z
2020-03-08T16:13:46Z
2020-03-08T16:13:46Z
2020-03-09T21:13:50Z
[BUG] add consistency to_numeric on empty list
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 21e59805fa143..a48278d1ce81a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -268,6 +268,7 @@ Numeric ^^^^^^^ - Bug in :meth:`DataFrame.floordiv` with ``axis=0`` not treating division-by-zero like :m...
to_numeric should work similarly on empty lists for downcast=unsigned/float/integer Addresses: GH32493 - [x] closes #32493 - [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/32512
2020-03-07T04:52:51Z
2020-03-16T02:30:10Z
2020-03-16T02:30:10Z
2020-03-20T02:04:17Z
[BUG] Add int-array-like into random state
diff --git a/pandas/_testing.py b/pandas/_testing.py index 33ec4e4886aa6..1b6a350e814f4 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -2125,7 +2125,7 @@ def makeMissingCustomDataframe( Density : float, optional Float in (0, 1) that gives the percentage of non-missing numbers in the ...
- [x] closes #32503 - [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/32511
2020-03-07T04:12:27Z
2020-03-11T00:36:34Z
null
2020-03-11T00:36:34Z
[BUG] Loosen random_state input restriction
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 21e59805fa143..6bd5723c5efcf 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -69,6 +69,7 @@ Other enhancements - `OptionError` is now exposed in `pandas.errors` (:issue:`27553`) - :func:`timedelta_ra...
Alllow for array-like as well as BitGenerator inputs Addresses: GH32503 - [x] closes #32503 - [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/32510
2020-03-07T02:57:25Z
2020-03-17T02:38:05Z
2020-03-17T02:38:04Z
2020-03-17T02:38:05Z
CLN: unused code in reshape.merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index c301d6e7c7155..08c04cb49f125 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -92,9 +92,7 @@ def merge( merge.__doc__ = _merge_doc % "\nleft : DataFrame" -def _groupby_and_merge( - by, on, left, rig...
check_duplicates is always passed as False, so we can trim some code
https://api.github.com/repos/pandas-dev/pandas/pulls/32509
2020-03-07T01:56:29Z
2020-03-10T11:48:33Z
2020-03-10T11:48:33Z
2020-03-10T15:01:00Z
CLN: avoid values_from_object in nanops
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 4398a1569ac56..f0883528db69f 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -32,6 +32,8 @@ ) from pandas.core.dtypes.missing import isna, na_value_for_dtype, notna +from pandas.core.construction import extract_array + bn = import_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/32508
2020-03-06T23:40:32Z
2020-03-08T16:09:09Z
2020-03-08T16:09:09Z
2020-03-16T15:03:06Z
CLN: Avoid bare pytest.raises in computation/test_eval.py
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index a240e6cef5930..08d8d5ca342b7 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -375,7 +375,8 @@ def check_pow(self, lhs, arith1, rhs): and is_scalar(rhs) ...
* [x] ref #30999 * [x] tests added / passed * [x] passes `black pandas` * [x] passes `git diff origin/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32507
2020-03-06T23:31:35Z
2020-03-10T23:07:48Z
2020-03-10T23:07:48Z
2020-03-11T09:09:06Z
(wip) BUG: groupby with sort=False create buggy multiindex
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index ac522fc7863b2..0cb43e3d5d1e5 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1185,8 +1185,6 @@ def _wrap_applied_output(self, keys, values, not_indexed_same=False): if len(keys) == 0: ...
- [ ] closes #32259 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Still messy, just running this through the test suite as my laptop's not great (but please let me know if such behaviour is unwelcome and I won't d...
https://api.github.com/repos/pandas-dev/pandas/pulls/32506
2020-03-06T22:11:55Z
2020-04-22T16:14:06Z
null
2020-10-10T14:14:56Z
CLN: avoid values_from_object in Index.equals
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3eab757311ccb..d912dbbfd1d1d 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4104,7 +4104,6 @@ def __getitem__(self, key): if com.is_bool_indexer(key): key = np.asarray(key, dtype=bool) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32505
2020-03-06T21:26:37Z
2020-03-11T02:39:19Z
2020-03-11T02:39:19Z
2020-03-11T02:43:30Z
CLN: avoid values_from_object in construction
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 57ed2555761be..ab363e10eb098 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -36,7 +36,7 @@ from pandas.core import algorithms, common as com from pandas.core.arrays imp...
https://api.github.com/repos/pandas-dev/pandas/pulls/32504
2020-03-06T21:10:41Z
2020-03-08T16:14:49Z
2020-03-08T16:14:49Z
2020-03-08T16:18:52Z
Disallow lossy SparseArray conversion
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 549606795f528..bcd54698689de 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -27,6 +27,7 @@ is_array_like, is_bool_dtype, is_datetime64_any_dtype, + is_datetime64tz_dt...
cc @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/32501
2020-03-06T18:58:19Z
2020-03-14T16:33:20Z
2020-03-14T16:33:20Z
2020-03-14T16:47:12Z
Better error message for OOB result
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index eec471f989037..8a8b77fbbb426 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -65,6 +65,7 @@ Bug fixes - Bug in :meth:`DataFrame.reindex` and :meth:`Series.reindex` when reindexing with a tz-aware in...
Closes #31774
https://api.github.com/repos/pandas-dev/pandas/pulls/32499
2020-03-06T17:10:53Z
2020-03-11T01:45:54Z
2020-03-11T01:45:54Z
2020-03-12T12:22:19Z
BUG: Fix bug, where BooleanDtype columns are converted to Int64
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 462f243f14494..7a25f7b58c2e7 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -64,6 +64,7 @@ Bug fixes **Datetimelike** - Bug in :meth:`DataFrame.reindex` and :meth:`Series.reindex` when reindexing ...
- [x] closes #32287 - [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/32490
2020-03-06T12:34:41Z
2020-03-11T01:48:35Z
2020-03-11T01:48:34Z
2020-03-26T14:28:41Z
CLN: trying isort-dev
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 61d6a660a0357..58d1ec9b310c9 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2,29 +2,29 @@ from collections import abc from decimal import Decimal from fractions import Fraction from numbers import Number - import sys import cython ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- Trying ```isort``` 5.0.0 which is still under development.
https://api.github.com/repos/pandas-dev/pandas/pulls/32489
2020-03-06T11:44:45Z
2020-03-24T13:39:53Z
null
2020-03-24T13:41:18Z