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
CLN: _consolidate_inplace less
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8aa8f8bb60654..79805bec85af0 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3369,8 +3369,6 @@ class max_speed nv.validate_take(tuple(), kwargs) - self._consolidate_inplace() - new_data = self._mgr.take...
https://api.github.com/repos/pandas-dev/pandas/pulls/34389
2020-05-26T16:07:54Z
2020-05-26T22:47:19Z
2020-05-26T22:47:19Z
2020-05-27T14:10:39Z
REF: is_subperiod, is_superperiod out of libfreqs
diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_libs/tslibs/frequencies.pyx index 0fec4bca96251..13edf3c46152a 100644 --- a/pandas/_libs/tslibs/frequencies.pyx +++ b/pandas/_libs/tslibs/frequencies.pyx @@ -5,9 +5,7 @@ cnp.import_array() from pandas._libs.tslibs.util cimport is_integer_object -from panda...
When we first moved these functions from tseries.frequencies to libfrequencies a couple years ago there was a question of it was really necessary, and the answer is now an unambiguous "no"
https://api.github.com/repos/pandas-dev/pandas/pulls/34387
2020-05-26T14:39:51Z
2020-05-26T21:41:18Z
2020-05-26T21:41:18Z
2020-05-26T22:10:25Z
CLN: de-duplicate dispatch_to_series calls
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 18a3d93bd5c3b..5dd94a8af74ac 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -78,14 +78,7 @@ } -COMPARISON_BINOPS: Set[str] = { - "eq", - "ne", - "lt", - "gt", - "le", - "ge", -} +COMPARISON...
Unwrap td64/dt64 so those operate blockwise.
https://api.github.com/repos/pandas-dev/pandas/pulls/34386
2020-05-26T14:16:03Z
2020-05-26T22:12:46Z
2020-05-26T22:12:46Z
2020-05-26T22:20:34Z
use ensure_clean rather than explicit os.remove #34384
diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py index 5f8d58ea1f105..1349808277d81 100644 --- a/pandas/tests/io/excel/test_openpyxl.py +++ b/pandas/tests/io/excel/test_openpyxl.py @@ -1,5 +1,3 @@ -import os - import numpy as np import pytest @@ -107,17 +105,15 @@ def tes...
closes #34384 I have made a start at this issue #34384. Please let me know if I am along the right lines (beginner contributor). I've left a space in code_checks.sh where I expect to implement the check for instances of 'os.remove' throughout the code.
https://api.github.com/repos/pandas-dev/pandas/pulls/34385
2020-05-26T13:53:08Z
2020-10-12T15:11:12Z
2020-10-12T15:11:11Z
2020-10-13T07:32:40Z
Backport PR #33644 on branch 1.0.x (BUG: Groupby quantiles incorrect bins)
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 132681c00d79c..1f2d4e2dba370 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -41,6 +41,7 @@ Bug fixes - Bug in :meth:`~DataFrame.to_csv` was silently failing when writing to an invalid s3 bucket. (:is...
xref #33644, #33200, #33569 regression in #20405 (0.25.0)
https://api.github.com/repos/pandas-dev/pandas/pulls/34382
2020-05-26T08:26:15Z
2020-05-26T09:14:50Z
2020-05-26T09:14:49Z
2020-05-26T09:14:57Z
BUG/API: to_timedelta unit-argument ignored for string input
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 88bf0e005a221..81795c5d531fe 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -701,6 +701,8 @@ Deprecations instead (:issue:`34191`). - The ``squeeze`` keyword in the ``groupby`` function is depreca...
Supersedes #23025 - [x] closes #12136 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry - [x] merge master
https://api.github.com/repos/pandas-dev/pandas/pulls/34379
2020-05-26T04:15:42Z
2020-06-08T01:56:49Z
null
2020-06-08T01:56:49Z
REF: Week, Semi-Month, FY5253 offsets to liboffsets
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 21b8663d1542f..bb0dae3d5dece 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -381,40 +381,6 @@ Methods CustomBusinessMonthBegin.is_on_offset Custom...
Bigger chunk than usual.
https://api.github.com/repos/pandas-dev/pandas/pulls/34378
2020-05-26T03:22:19Z
2020-05-26T22:17:47Z
2020-05-26T22:17:47Z
2020-05-26T22:20:00Z
BUG: pd.DataFrame.transform recursively loops in some cases #34224
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 6e8cbc34be062..afeee24dfe290 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -960,6 +960,7 @@ Reshaping - Bug in :func:`concat` was not allowing for concatenation of ``DataFrame`` and ``Series`` with ...
- [x] closes #34224 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Error handling within try/except in aggregate function of frame.py file
https://api.github.com/repos/pandas-dev/pandas/pulls/34377
2020-05-26T02:02:16Z
2020-06-03T18:05:38Z
2020-06-03T18:05:38Z
2020-06-03T18:05:44Z
BUG:#29928 Fix to_json output 'table' orient for single level MultiIndex.
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 690e6b8f725ad..ca7c08a7af8be 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -503,6 +503,7 @@ I/O - Bug in :class:`HDFStore` was dropping timezone information when exporting :class:`Series` with ``dat...
`dataframe.to_json()` was writing incorrect index field name, so applying read_json resulted in NaN index values. `dataframe.to_json()` now converts single level MultiIndex into single Index before encoding. - [x] closes #29928 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff ups...
https://api.github.com/repos/pandas-dev/pandas/pulls/34375
2020-05-25T23:23:16Z
2021-02-11T01:41:36Z
null
2021-02-11T01:41:37Z
CLN: remove _combine_series_frame
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 68d08fb476950..0e9077e6d557e 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -223,7 +223,7 @@ def evaluate(op, a, b, use_numexpr: bool = True): use_numexpr : bool, ...
Following this we can consolidate some dispatch_to_series calls, saving that for a separate step for clarity of exposition.
https://api.github.com/repos/pandas-dev/pandas/pulls/34374
2020-05-25T22:50:33Z
2020-05-26T01:17:04Z
2020-05-26T01:17:04Z
2020-05-26T01:21:43Z
CLN: Unify signatures in _libs.groupby
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 4e792da31e1d5..7c57e6ee9dbfd 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -378,8 +378,8 @@ def group_fillna_indexer(ndarray[int64_t] out, ndarray[int64_t] labels, @cython.boundscheck(False) @cython.wraparound(False) def...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/33630#discussion_r428737327 The main goal is to allow _get_cythonized_result to be used with the cy...
https://api.github.com/repos/pandas-dev/pandas/pulls/34372
2020-05-25T22:11:25Z
2020-06-18T22:59:07Z
2020-06-18T22:59:07Z
2020-07-11T16:01:52Z
DOC: GH4607 added clarification to business DateOffset
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 73cbf3bf49686..2c00837eda20c 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1280,7 +1280,22 @@ cdef class YearOffset(SingleConstructorOffset): cdef class BYearEnd(YearOffset): """ - Da...
- [x] closes #4607 Added clarifying details to Business Year, Quarter, and Month, End and Begin docs
https://api.github.com/repos/pandas-dev/pandas/pulls/34371
2020-05-25T21:01:34Z
2020-05-26T13:07:03Z
2020-05-26T13:07:03Z
2020-05-27T01:00:57Z
CLN Replace old string formatting syntax with f-strings #29547: 2 files w…
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 2be2338253937..5bc3694cf8dad 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -584,7 +584,7 @@ cdef inline int64_t parse_iso_format_string(str ts) except? -1: bint have_dot = 0,...
Hello, i'm new to github / opensource. Let me know if I'm doing things correctly pandas/_libs/tslibs/timedeltas.pyx pandas/_libs/tslibs/timestamps.pyx Replace old string formatting syntax with f-strings #29547 - [ x ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --dif...
https://api.github.com/repos/pandas-dev/pandas/pulls/34370
2020-05-25T20:32:04Z
2020-05-26T13:00:16Z
2020-05-26T13:00:16Z
2020-05-28T21:44:46Z
Backport PR #32479 on branch 1.0.x (BUG: Fix issue with datetime[ns, tz] input in Block.setitem)
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index f1e31316f3697..132681c00d79c 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -28,6 +28,7 @@ Fixed regressions - Bug in :meth:`Series.groupby` would raise ``ValueError`` when grouping by :class:`Period...
xref #32479, #32395 regression in 1.0.0
https://api.github.com/repos/pandas-dev/pandas/pulls/34369
2020-05-25T19:29:07Z
2020-05-26T07:40:42Z
2020-05-26T07:40:42Z
2020-05-26T07:41:02Z
BUG: new method for join with multiindex and single index (#34292)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a793fa7f35c4a..713a6596cb222 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -770,6 +770,7 @@ MultiIndex left.intersection(right, sort=False) - Bug when joining 2 Multi-indexes, without spe...
- [x] closes #34292 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Tests still to be added. I replaced the method to join a multiindex & a single index because outer joins didn't include data from the single index....
https://api.github.com/repos/pandas-dev/pandas/pulls/34368
2020-05-25T19:19:58Z
2020-11-29T04:47:14Z
null
2020-11-29T04:47:14Z
DOC - Moving Tips and Trick from wiki to Style Guide - added Reading …
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 6d33537a40175..11d0c35f92ff5 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -159,3 +159,18 @@ For example: # wrong from common import test_base + + +Miscellaneo...
This changes referring to https://github.com/pandas-dev/pandas/issues/30964 is for removing tips and tricks section page from the [wiki](https://github.com/pandas-dev/pandas/wiki/Tips-&-Tricks-for-pandas-dev) to the [Code Style guide](https://pandas.io/docs/development/code_style.html). Since this is my first contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/34366
2020-05-25T16:50:26Z
2020-07-08T15:36:29Z
2020-07-08T15:36:29Z
2020-07-08T16:05:44Z
TST: category isin on frame
diff --git a/pandas/tests/frame/methods/test_isin.py b/pandas/tests/frame/methods/test_isin.py index 6307738021f68..cae5e21ee1125 100644 --- a/pandas/tests/frame/methods/test_isin.py +++ b/pandas/tests/frame/methods/test_isin.py @@ -189,3 +189,18 @@ def test_isin_empty_datetimelike(self): tm.assert_frame_equal...
- [x] closes #34256 - [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/34363
2020-05-25T08:42:07Z
2020-07-10T00:08:27Z
2020-07-10T00:08:27Z
2020-07-10T00:08:31Z
DOC: Fix EX02 and SA01 in DataFrame.select_dtypes
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6532d084aa6fa..9abc6e4245d81 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3421,6 +3421,10 @@ def select_dtypes(self, include=None, exclude=None) -> "DataFrame": * If ``include`` and ``exclude`` have overlapping elements ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. output of `python scripts/validate_docstrings.py pandas.DataFrame.select_dtypes`: ``` ######################################...
https://api.github.com/repos/pandas-dev/pandas/pulls/34362
2020-05-25T08:04:59Z
2020-05-27T04:37:02Z
2020-05-27T04:37:02Z
2020-05-27T04:37:08Z
TST: sparse and dense concat test GH30667
diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py index 8d6d93df6f776..19fd8db5322ed 100644 --- a/pandas/tests/reshape/test_concat.py +++ b/pandas/tests/reshape/test_concat.py @@ -2757,6 +2757,17 @@ def test_concat_sparse(): tm.assert_frame_equal(result, expected) +def test...
- [x] closes #30668 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] Adds testing to ensure concat between dense and sparse
https://api.github.com/repos/pandas-dev/pandas/pulls/34355
2020-05-24T16:49:09Z
2020-05-25T12:41:13Z
2020-05-25T12:41:13Z
2020-05-25T12:41:33Z
34297 sub slow in first call
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 08a11ba2607a5..a9a8a4f3add92 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -469,4 +469,29 @@ def time_apply_index(self, offset): offset.apply_index(self.rng) +class Binar...
- [x] closes #34297 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` @jbrockmendel I added a lenght check as suggested by you. I could not find another method to check the indices (nlevels for example does not work). I'm open to recomm...
https://api.github.com/repos/pandas-dev/pandas/pulls/34354
2020-05-24T14:09:46Z
2020-05-26T22:52:51Z
2020-05-26T22:52:51Z
2020-05-27T16:30:00Z
Use repr of fill_value in SparseDtype repr
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index bfe2dcee40d5e..c4ac2e779cbfc 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -862,6 +862,7 @@ Sparse - Creating a :class:`SparseArray` from timezone-aware dtype will issue a warning before dropping ti...
This proposes changing the StringDtype repr to show the fill_value's repr rather than its string representation: ```python >>> arr = pd.arrays.SparseArray([0, 1]) >>> arr.dtype Sparse[int64, 0] # master & this PR, unchanged >>> arr.astype(str).dtype Sparse[object, 0] # master Sparse[object, '0'] # this PR, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34352
2020-05-24T10:51:24Z
2020-05-25T19:47:13Z
2020-05-25T19:47:13Z
2020-05-26T06:36:09Z
DOC: Fix error in pandas.Index.to_series
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 1cf319a11766d..fb266b4abba51 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1037,13 +1037,48 @@ def to_series(self, index=None, name=None): index : Index, optional Index of resulting Series...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. output of `python scripts/validate_docstrings.py pandas.Index.to_series`: ``` ##############################################...
https://api.github.com/repos/pandas-dev/pandas/pulls/34349
2020-05-24T08:56:13Z
2020-05-25T16:13:44Z
2020-05-25T16:13:44Z
2020-05-25T16:25:46Z
CLN: always pass op to combine_series_frame
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 66b71687f2731..856a1823353d5 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -641,7 +641,6 @@ def _arith_method_FRAME(cls: Type["DataFrame"], op, special: bool): default_axis = _get_frame_op_default_axis(op_n...
https://api.github.com/repos/pandas-dev/pandas/pulls/34347
2020-05-23T20:12:25Z
2020-05-25T07:38:51Z
2020-05-25T07:38:51Z
2020-05-25T17:40:59Z
REF: move Year/Month/Quarter offsets to liboffsets
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index f9ddb6fabc7bb..630b2a965a40b 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -456,11 +456,12 @@ cdef class BaseOffset: equality between two DateOffset objects. """ # NB: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34346
2020-05-23T20:09:57Z
2020-05-25T16:15:35Z
2020-05-25T16:15:35Z
2020-05-25T17:39:07Z
REF: make CustomMixin a cdef class
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index fed23e48e43e9..ee89df3114048 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -59,6 +59,9 @@ Properties BusinessDay.normalize BusinessDay.rule_code ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34345
2020-05-23T18:31:29Z
2020-05-27T23:10:39Z
2020-05-27T23:10:39Z
2020-05-28T15:53:12Z
BUG: don't plot colorbar if c is column containing colors
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 41d519e0765dc..bdd0f1b886350 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -803,7 +803,7 @@ Plotting - Bug in :meth:`DataFrame.boxplot` and :meth:`DataFrame.plot.boxplot` lost color attributes of ``...
- [x] closes #34316 - [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/34344
2020-05-23T17:09:49Z
2020-06-14T14:46:35Z
2020-06-14T14:46:34Z
2020-06-14T16:31:23Z
Added missing import in boxplot_frame_groupby example
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 32cd89383dde9..ad2b664b4c99b 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -547,17 +547,25 @@ def boxplot_frame_groupby( Examples -------- - >>> import itertools - >>> tuples = [t for t in itertools.produc...
- [X] closes #28903 - [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/34343
2020-05-23T16:05:51Z
2020-07-07T11:09:11Z
2020-07-07T11:09:10Z
2020-07-07T11:09:15Z
REF: cdef BusinessHourMixin
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index c8c591e296449..96330fabca3c6 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -93,6 +93,8 @@ Properties BusinessHour.normalize BusinessHour.rule_cod...
https://api.github.com/repos/pandas-dev/pandas/pulls/34342
2020-05-23T15:44:15Z
2020-05-25T16:18:52Z
2020-05-25T16:18:52Z
2020-05-25T17:38:34Z
DOC: Fix reference, old file was separated last year
diff --git a/pandas/tests/io/formats/test_to_excel.py b/pandas/tests/io/formats/test_to_excel.py index 883240b74c32c..8529a0fb33b67 100644 --- a/pandas/tests/io/formats/test_to_excel.py +++ b/pandas/tests/io/formats/test_to_excel.py @@ -1,6 +1,6 @@ """Tests formatting as writer-agnostic ExcelCells -ExcelFormatter is...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The comment referenced a file deleted last year after separating the tests into a few files. I referenced the correct folder again
https://api.github.com/repos/pandas-dev/pandas/pulls/34340
2020-05-23T13:13:23Z
2020-05-26T23:03:19Z
2020-05-26T23:03:19Z
2020-05-27T16:30:04Z
BUG: Fix concat of frames with extension types (no reindexed columns)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index f216418c3a8b0..63053e30ed987 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -292,6 +292,9 @@ Other enhancements - :meth:`DataFrame.to_csv` and :meth:`Series.to_csv` now accept an ``errors`` argument ...
This PR tries to fix the case of concatting dataframes with extension dtypes and non-extension dtypes, like this example (giving object dtype on master, instead of preserving Int64 dtype): ``` In [15]: df1 = pd.DataFrame({"a": pd.array([1, 2, 3], dtype="Int64")}) ...: df2 = pd.DataFrame({"a": np.array([4, 5, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34339
2020-05-23T13:11:22Z
2020-06-19T09:16:11Z
2020-06-19T09:16:11Z
2020-09-07T10:52:48Z
BUG: fix concat of Sparse with non-sparse dtypes
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 3cfd92d778823..9b89ec99e8df6 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -1063,7 +1063,9 @@ def astype(self, dtype=None, copy=True): """ dtype = self.dtype.update_...
Closes #34336 This adds tests with the behaviour as it was on 0.25.3 / 1.0.3, and some changes to get back to that behaviour. (but whether this behaviour is fully "sane", I am not sure ..)
https://api.github.com/repos/pandas-dev/pandas/pulls/34338
2020-05-23T13:02:59Z
2020-05-29T16:03:31Z
2020-05-29T16:03:30Z
2020-06-07T09:37:06Z
don't need len around shape
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 36cd61b6c3adb..65aaa163e0db1 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -4789,7 +4789,7 @@ def _maybe_convert_for_string_atom( # we cannot serialize this data, so report an exception on a column # by column basis...
#Fix #34274 - [x] closes #34274 - [ ] 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/34337
2020-05-23T12:02:59Z
2020-07-24T12:15:42Z
null
2020-07-24T12:15:42Z
BUG: Fix render as column name in to_excel
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 41d519e0765dc..ee7ead19faec9 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -794,6 +794,7 @@ I/O - Bug in :meth:`~DataFrame.read_feather` was raising an `ArrowIOError` when reading an s3 or http file...
- [x] closes #34331 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Should I add a whats new enty? Under which section? https://github.com/phofl/pandas/blob/34331_render_column_name_raises_error_in_to_excel/pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/34335
2020-05-23T11:44:13Z
2020-05-26T22:21:44Z
2020-05-26T22:21:44Z
2020-05-27T16:30:02Z
BUG: xticks unnecessarily rotated
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 89d94dc0cabd6..007b791d0a039 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -304,6 +304,7 @@ I/O Plotting ^^^^^^^^ +- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``,...
- [x] closes #29460 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry On `master`, xticklabels are rotated if ```python not self._use_dynamic_x() and data.index.is_all_dates and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34334
2020-05-23T10:48:10Z
2020-09-13T20:46:09Z
2020-09-13T20:46:09Z
2020-09-14T07:25:10Z
DOC: fix deprecated groupby squeeze example in v0.12.0 whatsnew
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 008f06a2c4999..c8c591e296449 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -878,6 +878,9 @@ Properties FY5253.normalize FY5253.rule_code FY5...
This should fix failing CI, due to https://github.com/pandas-dev/pandas/pull/33218
https://api.github.com/repos/pandas-dev/pandas/pulls/34333
2020-05-23T10:06:22Z
2020-05-23T11:51:56Z
2020-05-23T11:51:55Z
2020-05-23T11:52:01Z
BUG: Fix using dtype with parse_dates in read_csv
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 #34066 - [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/34330
2020-05-23T01:45:15Z
2020-12-29T20:42:50Z
null
2020-12-29T20:42:50Z
Fix MultiIndex melt when col_level is used
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 41d519e0765dc..bab8b5cd99255 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -853,6 +853,7 @@ Reshaping - Bug in :func:`cut` raised an error when non-unique labels (:issue:`33141`) - Bug in :meth:`Da...
- [x] closes #34129 - [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/34329
2020-05-23T01:20:51Z
2020-05-26T23:17:17Z
2020-05-26T23:17:16Z
2020-05-26T23:17:26Z
REF: get str_rep in numexpr code
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index d9cd2c7be0093..68d08fb476950 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -5,7 +5,7 @@ Offer fast expression evaluation through numexpr """ - +import operator im...
https://api.github.com/repos/pandas-dev/pandas/pulls/34325
2020-05-22T22:16:23Z
2020-05-22T23:42:50Z
2020-05-22T23:42:50Z
2020-05-23T00:48:33Z
REF: make MonthOffset a cdef class
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 94ac3eef66077..008f06a2c4999 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -173,40 +173,6 @@ Methods CustomBusinessHour.is_on_offset CustomBusine...
https://api.github.com/repos/pandas-dev/pandas/pulls/34324
2020-05-22T21:41:33Z
2020-05-22T23:43:39Z
2020-05-22T23:43:39Z
2020-05-23T01:10:41Z
REF: make SingleConstructorOffset a cdef class
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 4fd70843d2c42..9eefad19709c6 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -18,6 +18,8 @@ cimport numpy as cnp from numpy cimport int64_t cnp.import_array() +# TODO: formalize having _libs.pr...
Bite the bullet on importing cache_readonly into liboffsets
https://api.github.com/repos/pandas-dev/pandas/pulls/34323
2020-05-22T21:39:36Z
2020-05-22T23:44:11Z
2020-05-22T23:44:11Z
2020-05-23T01:11:15Z
REF: make FY523Mixin a cdef class
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index fc5bd626a712f..63f8352e4922e 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1299,7 +1299,7 @@ cdef class QuarterOffset(SingleConstructorOffset): return type(dtindex)._simple_new(shifted,...
https://api.github.com/repos/pandas-dev/pandas/pulls/34322
2020-05-22T21:37:31Z
2020-05-23T02:16:24Z
2020-05-23T02:16:24Z
2020-05-23T02:19:35Z
CI: Numpy compat
diff --git a/pandas/core/common.py b/pandas/core/common.py index 1ccca5193ab46..4ec9c6f9e3a83 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -14,7 +14,7 @@ from pandas._libs import lib, tslibs from pandas._typing import AnyArrayLike, Scalar, T -from pandas.compat.numpy import _np_version_under1p1...
- [x] closes #34306 Likely related to: https://github.com/pandas-dev/pandas/pull/32510. Seems doc builds have started using: numpy 1.17.5 py38h95a1406_0 conda-forge https://github.com/pandas-dev/pandas/pull/34317/checks?check_run_id=700337761 (Previous pipelines where using ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34321
2020-05-22T21:01:36Z
2020-05-22T23:39:58Z
2020-05-22T23:39:58Z
2020-05-22T23:39:58Z
BUG: GH29461 strftime() with nanoseconds for Timestamp
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index b494dbd8a38fa..aeb465297d774 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -394,33 +394,42 @@ def time_dup_string_tzoffset_dates(self, cache): class DatetimeAccessor: - params...
- [x] closes #29461 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The new method displays %f to the full precision, including trailing zeroes. I could add a check that only displays nanoseconds if they are non-zer...
https://api.github.com/repos/pandas-dev/pandas/pulls/34317
2020-05-22T15:32:58Z
2020-06-09T14:41:34Z
null
2020-06-09T14:41:34Z
REGR: fix op(frame, series) with extension dtypes
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 856a1823353d5..7937821814ab2 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -467,7 +467,7 @@ def _combine_series_frame(left, right, func, axis: int): # We assume that self.align(other, ...) has already been ...
Closes #34311 cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/34312
2020-05-22T13:51:01Z
2020-05-25T17:43:35Z
null
2020-05-25T17:58:47Z
Fix: StringArray non-extensible due to inconsisent assertion
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a49b29d691692..192b465f6b04a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1186,6 +1186,7 @@ ExtensionArray - Fixed bug that caused :meth:`Series.__repr__()` to crash for extension types whose elem...
Fix for #34309 - [X] closes #34309 - [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/34310
2020-05-22T13:12:23Z
2020-12-03T13:34:51Z
null
2020-12-03T13:34:57Z
CLN: consolidate arrow roundtrip tests for nullable dtypes in base masked tests
diff --git a/pandas/tests/arrays/boolean/test_construction.py b/pandas/tests/arrays/boolean/test_construction.py index bf1aba190f3e2..f7354a089df3b 100644 --- a/pandas/tests/arrays/boolean/test_construction.py +++ b/pandas/tests/arrays/boolean/test_construction.py @@ -1,8 +1,6 @@ import numpy as np import pytest -i...
We recently splitted the test_boolean and test_integer in multiple files in each a directory, but I think a next step can be to deduplicate some of the common tests for the different nullable/masked dtypes. Certainly given that we are going to add float tests as well (cfr https://github.com/pandas-dev/pandas/pull/343...
https://api.github.com/repos/pandas-dev/pandas/pulls/34308
2020-05-22T12:33:00Z
2020-05-22T23:45:35Z
2020-05-22T23:45:35Z
2020-05-23T06:48:21Z
ENH: nullable Float32/64 ExtensionArray
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 031c74b1cc367..ca6c38e59597b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -109,6 +109,54 @@ Beginning with this version, the default is now to use the more accurate parser ``floating_precision="leg...
As proposed at https://github.com/pandas-dev/pandas/issues/32265#issuecomment-627004139, this is adding a float extension dtype and array (for now avoiding/ignoring the NaN-discussion), using the masked array approach following our other nullable dtypes. Brief overview: - This PR adds a `FloatingArray` and `Float...
https://api.github.com/repos/pandas-dev/pandas/pulls/34307
2020-05-22T11:18:22Z
2020-09-30T12:31:52Z
2020-09-30T12:31:52Z
2020-11-27T14:18:27Z
TST: GH24798 df.replace() with duplicate columns
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index 444aa45155dbf..3bcc26e85e347 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -1388,3 +1388,18 @@ def test_replace_no_replacement_dtypes(self, dtype, valu...
- [x] xref #24798 - [x] 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/34302
2020-05-21T21:14:44Z
2020-05-25T23:51:51Z
2020-05-25T23:51:50Z
2020-05-26T02:04:34Z
CLN: de-duplicate tzlocal conversion function
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index ae1da0ac18e58..8fd2f6b476e1c 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -42,7 +42,6 @@ from pandas._libs.tslibs.nattype cimport ( from pandas._libs.tslibs.tzconversion import tz_l...
https://api.github.com/repos/pandas-dev/pandas/pulls/34301
2020-05-21T21:01:31Z
2020-05-22T14:12:51Z
2020-05-22T14:12:51Z
2020-05-22T17:28:27Z
DOC:updated pie plot legend overlap issue, closes #34288
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 467bdf7e0745d..0cf1a3e62b075 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -1475,7 +1475,7 @@ def pie(self, **kwargs): .. plot:: :context: close-figs - >>> plot = df.plot.pie(subplots=True...
- [X] closes #34288 - [ ] 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/34296
2020-05-21T15:30:44Z
2020-05-23T04:22:05Z
2020-05-23T04:22:05Z
2020-05-23T04:22:16Z
fix to is_string
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a3499f857d158..19db7dcb4b83e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -341,6 +341,7 @@ Backwards incompatible API changes will now result in a float column instead of an object dtyped column ...
- [X] closes #34295 - [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/34294
2020-05-21T15:26:06Z
2020-05-21T20:53:54Z
2020-05-21T20:53:54Z
2020-05-22T10:00:40Z
ENH: categorical scatter plot
diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index c4ee8677a6b0d..7911c58b9867e 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -552,6 +552,9 @@ These can be specified by the ``x`` and ``y`` keywords. .. ipython:: p...
- [ ] closes #12380 (this idea was mentioned as a comment here). Also, closes #31357 (I hadn't noticed found that issue when I first opened this) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Here's what this would...
https://api.github.com/repos/pandas-dev/pandas/pulls/34293
2020-05-21T15:16:01Z
2021-01-27T15:47:43Z
2021-01-27T15:47:43Z
2021-01-27T16:04:56Z
TYP: Add type hints to pd.read_html
diff --git a/pandas/io/html.py b/pandas/io/html.py index c4ffe332e3020..3193f52d239f1 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -8,7 +8,9 @@ import numbers import os import re +from typing import Dict, List, Optional, Pattern, Sequence, Union +from pandas._typing import FilePathOrBuffer from panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/34291
2020-05-21T13:22:05Z
2020-07-14T17:15:07Z
2020-07-14T17:15:07Z
2020-08-08T08:30:06Z
REF: put cast_from_unit in conversion to de-circularize cimports
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 429848ed5c746..44693d60486a9 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -41,7 +41,6 @@ from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime from pandas._libs.tslibs.parsing import parse_datetime_string -from pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/34287
2020-05-21T04:47:19Z
2020-05-21T15:46:46Z
2020-05-21T15:46:46Z
2020-05-21T16:01:12Z
CLN: always dispatch-to-series
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index fc5bd626a712f..dce6d01e39c5d 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1299,7 +1299,7 @@ cdef class QuarterOffset(SingleConstructorOffset): return type(dtindex)._simple_new(shifted,...
A couple more cleanups follow this.
https://api.github.com/repos/pandas-dev/pandas/pulls/34286
2020-05-21T03:34:04Z
2020-05-23T01:53:53Z
2020-05-23T01:53:53Z
2020-05-23T02:07:42Z
REF: make BusinessMixin a cdef class
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index fc5bd626a712f..e872d1683ae34 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -988,13 +988,17 @@ def delta_to_tick(delta: timedelta) -> Tick: # -----------------------------------------------------...
Getting the pickle working on this one was a PITA, hopefully the worst is behind us.
https://api.github.com/repos/pandas-dev/pandas/pulls/34285
2020-05-21T03:24:30Z
2020-05-23T02:15:06Z
2020-05-23T02:15:06Z
2020-05-23T02:20:55Z
REF: move get_rule_month to libparsing to simplify dep structure
diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd index 09397a02c5ea0..098944c965df0 100644 --- a/pandas/_libs/tslibs/frequencies.pxd +++ b/pandas/_libs/tslibs/frequencies.pxd @@ -1,7 +1,5 @@ cdef dict attrname_to_abbrevs -cpdef str get_rule_month(object source, str default=*) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34284
2020-05-21T01:34:17Z
2020-05-25T16:54:35Z
2020-05-25T16:54:35Z
2020-05-25T17:36:17Z
REF: Make QuarterOffset a cdef class
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 20170459f24fe..94ac3eef66077 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -613,40 +613,6 @@ Methods LastWeekOfMonth.is_on_offset LastWeekOfMonth...
https://api.github.com/repos/pandas-dev/pandas/pulls/34282
2020-05-20T21:40:33Z
2020-05-22T19:46:43Z
2020-05-22T19:46:42Z
2020-05-22T20:30:07Z
REF: make operate_blockwise into a BlockManager method
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index aa21c0f2bca5e..6a7df1c8d88a1 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -47,6 +47,7 @@ get_block_type, make_block, ) +from pandas.core.internals.ops import operate_blockwise...
More appropriate abstraction.
https://api.github.com/repos/pandas-dev/pandas/pulls/34281
2020-05-20T21:14:46Z
2020-05-22T20:18:04Z
2020-05-22T20:18:04Z
2020-05-22T20:27:56Z
REF: Make Period arith mirror PeriodArray arith
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 9bcf162b6d666..bf4e5dce123d7 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -1580,36 +1580,37 @@ cdef class _Period: return PyObject_RichCompareBool(self.ordinal, other.ordinal, op) ...
In follow-ups can use is_any_tdlike_scalar elsewhere
https://api.github.com/repos/pandas-dev/pandas/pulls/34278
2020-05-20T16:33:50Z
2020-05-22T19:47:50Z
2020-05-22T19:47:50Z
2020-05-22T20:30:35Z
BUG: flex op with DataFrame, Series and ea vs ndarray
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 856a1823353d5..b74de3ce0d696 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -54,7 +54,7 @@ ) if TYPE_CHECKING: - from pandas import DataFrame # noqa:F401 + from pandas import DataFrame, Series # noqa:...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry <s>I have a couple ideas in mind that might make the edit in blocks here unnecessary, but want to profile them first, so will do that cleanup in a re...
https://api.github.com/repos/pandas-dev/pandas/pulls/34277
2020-05-20T16:04:18Z
2020-05-25T17:43:07Z
2020-05-25T17:43:07Z
2020-05-25T17:45:16Z
ENH: fix arrow roundtrip for ExtensionDtypes in absence of pandas metadata
diff --git a/pandas/core/arrays/_arrow_utils.py b/pandas/core/arrays/_arrow_utils.py index e0d33bebeb421..4a33e0e841f7f 100644 --- a/pandas/core/arrays/_arrow_utils.py +++ b/pandas/core/arrays/_arrow_utils.py @@ -70,6 +70,11 @@ def __eq__(self, other): def __hash__(self): return hash((str(self), s...
An oversight in our Arrow Extension Types for period and interval to also define the conversion to the equivalent pandas dtype. This ensures that the arrow->pandas conversion also works if there is no "pandas_metadata" in the schema's metadata, eg when this metadata was lost during some operations (up to now, the panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/34275
2020-05-20T13:28:20Z
2020-05-22T14:40:40Z
2020-05-22T14:40:40Z
2020-05-22T14:40:44Z
CLN: Move rolling helper functions to where they are used
diff --git a/pandas/core/window/common.py b/pandas/core/window/common.py index 89ffa3434291e..413fe648903ac 100644 --- a/pandas/core/window/common.py +++ b/pandas/core/window/common.py @@ -5,10 +5,8 @@ import numpy as np -from pandas.core.dtypes.common import is_integer from pandas.core.dtypes.generic import ABCD...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added some docstrings as well
https://api.github.com/repos/pandas-dev/pandas/pulls/34269
2020-05-20T05:39:14Z
2020-05-21T16:09:01Z
2020-05-21T16:09:01Z
2020-05-21T16:26:48Z
TST: GH28813 test .diff() on Sparse dtype
diff --git a/pandas/tests/frame/methods/test_diff.py b/pandas/tests/frame/methods/test_diff.py index 6a9248e1cba1e..e876e40aa2eb1 100644 --- a/pandas/tests/frame/methods/test_diff.py +++ b/pandas/tests/frame/methods/test_diff.py @@ -158,3 +158,14 @@ def test_diff_axis1_mixed_dtypes_negative_periods(self): re...
- [x] closes #28813 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Add a quick test to confirm that .diff() function handles sparse dataframes the same way as regular dataframes. First time making a pandas PR s...
https://api.github.com/repos/pandas-dev/pandas/pulls/34268
2020-05-20T01:46:51Z
2020-05-22T09:58:31Z
2020-05-22T09:58:30Z
2020-05-22T11:59:55Z
Fix .isin Considers "1" and 1 equal
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 6008b4f9f4e33..ff5f890cc41f8 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -944,6 +944,33 @@ def test_different_nans_as_float64(self): expected = np.array([True, True]) tm.assert_numpy_array_equal(...
- [X ] ref #34125 - [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/34267
2020-05-19T23:30:12Z
2020-06-08T23:22:20Z
2020-06-08T23:22:20Z
2020-06-17T18:41:14Z
ENH: add fsspec support
diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index 56da56b45b702..a9b9a5a47ccf5 100644 --- a/ci/deps/azure-36-locale.yaml +++ b/ci/deps/azure-36-locale.yaml @@ -15,7 +15,6 @@ dependencies: # pandas dependencies - beautifulsoup4 - - gcsfs - html5lib - ipython - jinja2 @@ -31...
Supersedes https://github.com/pandas-dev/pandas/pull/33549 closes #33452 - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/34266
2020-05-19T19:59:53Z
2020-06-23T13:43:25Z
2020-06-23T13:43:25Z
2020-06-23T13:57:28Z
REF: Make WeekOfMonthMixin a cdef class
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index c8c591e296449..bf442086fddd5 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -545,6 +545,7 @@ Methods WeekOfMonth.is_anchored WeekOfMonth.is_on_off...
https://api.github.com/repos/pandas-dev/pandas/pulls/34265
2020-05-19T17:44:19Z
2020-05-25T17:20:42Z
2020-05-25T17:20:42Z
2020-05-25T17:35:57Z
REF: make YearOffset a cdef class
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index fb262af1e63f6..eb246c527cd47 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -783,40 +783,6 @@ Methods QuarterBegin.is_on_offset QuarterBegin.__cal...
https://api.github.com/repos/pandas-dev/pandas/pulls/34264
2020-05-19T17:42:39Z
2020-05-20T14:52:38Z
2020-05-20T14:52:38Z
2020-05-20T15:14:41Z
REF: Implement RelativeDeltaOffset
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 73cbf3bf49686..0e4bcaaa7995b 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -112,7 +112,7 @@ cdef to_offset(object obj): return to_offset(obj) -def as_datetime(obj: datetime) -> datetime:...
RelativeDeltaOffset (basically the same as the existing DateOffset class) is a bit of an odd duck _attributes-wise, this is just a move without yet cdef-ing it.
https://api.github.com/repos/pandas-dev/pandas/pulls/34263
2020-05-19T16:44:12Z
2020-05-25T23:00:56Z
2020-05-25T23:00:56Z
2020-05-25T23:45:36Z
REF: FY5253Mixin to share methods
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index fb262af1e63f6..62d17aa5fc12f 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -1015,6 +1015,7 @@ Methods FY5253Quarter.apply FY5253Quarter.copy + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34262
2020-05-19T16:01:33Z
2020-05-20T14:51:10Z
2020-05-20T14:51:09Z
2020-05-20T15:14:16Z
DOC: Clarify ExcelFile's available engine compatibility with file types in...
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index d55bdffe689f2..6cb46d17eb358 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -34,7 +34,7 @@ """ Read an Excel file into a pandas DataFrame. -Supports `xls`, `xlsx`, `xlsm`, `xlsb`, and `odf` file extensions +Supports ...
information about engine compatibility and also reflect the support of the pyxlsb engine. GH34237. DOC: I edited the available ExcelFile's docstring to add information about the recent pyxlsb engine. I also added some compatibility information between the available engines and file types. - [x] closes #34237 -...
https://api.github.com/repos/pandas-dev/pandas/pulls/34261
2020-05-19T15:57:26Z
2020-06-01T01:41:17Z
2020-06-01T01:41:17Z
2020-06-01T01:41:29Z
Allow merge_asof on first column of like-levelled MultiIndexes
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 0c796c8f45a52..6212098c5ee76 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -543,24 +543,60 @@ def merge_asof( 3 2016-05-25 13:30:00.048 GOOG 720.92 100 NaN NaN 4 2016-05-25 13:30:0...
This change essentially allows you to merge_asof on the first level of a MultiIndex, treating the levels after the first as additional 'by' columns. It is possible to do the reset_index/set_index oneself but I think this is a nice syntax and a fairly natural thing to do. Would you be interested in incorporating somethi...
https://api.github.com/repos/pandas-dev/pandas/pulls/34259
2020-05-19T15:31:35Z
2020-06-20T16:02:14Z
null
2023-05-11T01:19:43Z
CI: temporarily disable interval in feather tests (pyarrow 0.17.1 regression)
diff --git a/pandas/tests/io/test_feather.py b/pandas/tests/io/test_feather.py index c29caf13bb629..e59100146249a 100644 --- a/pandas/tests/io/test_feather.py +++ b/pandas/tests/io/test_feather.py @@ -83,7 +83,9 @@ def test_basic(self): if pyarrow_version >= LooseVersion("0.16.1.dev"): df["periods...
xref https://github.com/pandas-dev/pandas/issues/34255 Temporary solution to get green CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/34258
2020-05-19T15:24:38Z
2020-05-19T20:24:38Z
2020-05-19T20:24:38Z
2020-05-19T20:26:17Z
Make option_context a ContextDecorator.
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 4605c14643fa2..4d29bd3a9bede 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -236,6 +236,7 @@ Other enhancements and :class:`~pandas.io.stata.StataWriterUTF8` (:issue:`26599`). - :meth:`HDFStore.pu...
This makes it possible to use option_context as a decorator over an entire function, saving an indent level and making it easy to comment out (or in) the context while keeping correct indentation. - [ ] closes #xxxx (N/A) - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/mas...
https://api.github.com/repos/pandas-dev/pandas/pulls/34253
2020-05-19T12:54:41Z
2020-05-25T17:40:35Z
2020-05-25T17:40:35Z
2020-05-25T18:47:44Z
Backport PR #33968 on branch 1.0.x (CI: Bump numpydev URL)
diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml index a04bdc2448bce..2ff9121e8853a 100644 --- a/ci/deps/azure-37-numpydev.yaml +++ b/ci/deps/azure-37-numpydev.yaml @@ -16,7 +16,7 @@ dependencies: - pip - pip: - "git+git://github.com/dateutil/dateutil.git" - - "-f https://79339...
Backport PR #33968: CI: Bump numpydev URL
https://api.github.com/repos/pandas-dev/pandas/pulls/34250
2020-05-19T09:58:07Z
2020-05-19T11:02:17Z
2020-05-19T11:02:17Z
2020-05-19T11:02:18Z
Backport PR #34049 on branch 1.0.x (Bug in Series.groupby would raise ValueError when grouping by PeriodIndex level)
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 95007f4dd1caf..35fda6dbb8a7c 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -25,6 +25,7 @@ Fixed regressions - Fix to preserve the ability to index with the "nearest" method with xarray's CFTimeIndex...
xref #34049, #34010 regression in 1.0.0
https://api.github.com/repos/pandas-dev/pandas/pulls/34247
2020-05-19T09:10:08Z
2020-05-19T11:39:12Z
2020-05-19T11:39:12Z
2020-05-20T12:14:19Z
Backport PR #34053 on branch 1.0.x (more informative error message with np.min or np.max on unordered Categorical)
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 95007f4dd1caf..4020dfc50150a 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -26,6 +26,7 @@ Fixed regressions - Fix regression in :meth:`DataFrame.describe` raising ``TypeError: unhashable type: 'dict...
xref #34053, #33115 regression in 1.0.0
https://api.github.com/repos/pandas-dev/pandas/pulls/34246
2020-05-19T08:58:42Z
2020-05-19T11:39:44Z
2020-05-19T11:39:44Z
2020-05-20T12:13:39Z
DOC, ENH: Clarify ExcelFile's available engine compatibility with file types in...
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 3b60085e9fa66..83640ba50f9dc 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -236,6 +236,7 @@ Other enhancements and :class:`~pandas.io.stata.StataWriterUTF8` (:issue:`26599`). - :meth:`HDFStore.pu...
the docstring. Add check to the ExcelFile class that verifies it. GH34237. DOC: I edited the available ExcelFile's docstring to add information about the recent pyxlsb engine. I also added some compatibility information between the available engines and file types. ENH: Passing an incompatible filetype-engine com...
https://api.github.com/repos/pandas-dev/pandas/pulls/34245
2020-05-19T07:26:04Z
2020-05-19T08:14:24Z
null
2020-05-19T08:14:24Z
CLN: remove get_base_alias
diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd index c96661aaab443..09397a02c5ea0 100644 --- a/pandas/_libs/tslibs/frequencies.pxd +++ b/pandas/_libs/tslibs/frequencies.pxd @@ -3,6 +3,5 @@ cdef dict attrname_to_abbrevs cpdef str get_rule_month(object source, str default=*) cp...
There are way too many really-similar functions like this. This trims one of them and de-duplicates 4 near-identical usages in the plotting code.
https://api.github.com/repos/pandas-dev/pandas/pulls/34243
2020-05-19T04:10:54Z
2020-05-20T14:55:55Z
2020-05-20T14:55:55Z
2020-05-20T15:12:15Z
BUG: NaT+Period doesnt match Period+NaT
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 246abd0602add..d28585f15e5b5 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -52,7 +52,6 @@ from pandas._libs.tslibs.ccalendar cimport ( from pandas._libs.tslibs.ccalendar cimport c_MONTH_NUMBERS fro...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Most of the edits in `__add__` and `__sub__` are just an un-indent to get rid of an unreachable branch, but found this incorrect case along the way.
https://api.github.com/repos/pandas-dev/pandas/pulls/34242
2020-05-19T03:10:44Z
2020-05-19T12:23:41Z
2020-05-19T12:23:41Z
2020-06-06T16:13:52Z
CLN: Remove util.is_offset_object
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 6b3d1c1ec2c13..2c28a7bbb02d0 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -22,8 +22,9 @@ cnp.import_array() from pandas._libs cimport util from pandas._libs.tslibs.nattype cimport c_NaT as NaT -from pandas._libs.tslibs.base ci...
Do isinstance checks on _Timestamp instead of ABCTimestamp where possible (less mro traversal)
https://api.github.com/repos/pandas-dev/pandas/pulls/34241
2020-05-19T02:59:48Z
2020-05-20T14:53:45Z
2020-05-20T14:53:45Z
2020-05-20T15:12:58Z
BUG: Fix validation script not printing docstring is correct (#34228)
diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index 051bd5b9761ae..7971379ca60c1 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -360,7 +360,7 @@ def header(title, width=80, char="#"): sys.stderr.write("\tExamples do not pass tests\n") ...
- [x] closes #34228 - [ ] 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/34236
2020-05-18T13:25:48Z
2020-05-22T09:41:38Z
2020-05-22T09:41:38Z
2020-05-22T09:41:49Z
CI: Fix lint error on master
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8751cca97c18c..d9828707b6164 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -54,7 +54,6 @@ ABCCategorical, ABCDataFrame, ABCDatetimeIndex, - ABCIntervalIndex, ABCMultiIndex, ABCPandasA...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/34230
2020-05-18T04:48:33Z
2020-05-18T07:00:33Z
2020-05-18T07:00:33Z
2020-05-18T07:05:58Z
DOC: Improve docstring of Series/DataFrame.bool
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1404d225eea97..bb2810ba7857f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1372,16 +1372,36 @@ def __nonzero__(self): def bool(self): """ - Return the bool of a single element PandasObject. + Return t...
Not a big fan of this method, I'd deprecate it, in favor of `bool(df.squeeze())`. But since it's quite tricky, let's at least have the docstring as clear as possible.
https://api.github.com/repos/pandas-dev/pandas/pulls/34229
2020-05-17T22:14:29Z
2020-06-22T06:32:44Z
2020-06-22T06:32:44Z
2020-06-22T06:32:50Z
REF: make Tick entirely a cdef class
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index b25558e8572fe..17ea389611b84 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -5,6 +5,7 @@ from typing import Any import warnings from cpython.datetime cimport (PyDateTime_IMPORT, ...
Sits on top of #34167
https://api.github.com/repos/pandas-dev/pandas/pulls/34227
2020-05-17T18:29:13Z
2020-05-18T22:50:22Z
2020-05-18T22:50:22Z
2020-05-18T23:48:29Z
ENH: Implement xlabel and ylabel options in Series.plot and DataFrame.plot
diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index 6ba5cab71bf14..27826e7cde9e1 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -1108,6 +1108,34 @@ shown by default. plt.close('all') + +Controlling the labels...
- [x] closes #9093 - [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/34223
2020-05-17T11:42:08Z
2020-06-26T00:37:09Z
2020-06-26T00:37:09Z
2020-06-26T00:37:20Z
BUG: repr of Categorical does not distinguish int and str.
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 567b6853bd633..7bce367a4c8a8 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -825,6 +825,7 @@ Categorical - Bug when passing categorical data to :class:`Index` constructor along with ``dtype=object`` ...
- [x] closes #33676 - [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/34222
2020-05-17T10:42:59Z
2020-06-24T22:40:21Z
2020-06-24T22:40:21Z
2020-06-25T07:03:57Z
Header updates
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index fd5e7c552fe0a..6c6a7f42d4b7e 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -30,7 +30,7 @@ substantial projects that you feel should be on this list, please let us know. Data cleaning and validation -----------------------...
Capitalisation changes to headers on line 33, 118, 139, 150, 190, 252, 257, and 387.
https://api.github.com/repos/pandas-dev/pandas/pulls/34221
2020-05-17T09:59:00Z
2020-05-17T22:25:16Z
2020-05-17T22:25:16Z
2020-05-17T22:25:19Z
BUG: Summing a sparse boolean series raises TypeError
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index eaf8c19b9a21b..3b60085e9fa66 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -853,7 +853,7 @@ Sparse ^^^^^^ - Creating a :class:`SparseArray` from timezone-aware dtype will issue a warning before dro...
- [ ] closes #25777 - [ ] 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/34220
2020-05-17T08:59:41Z
2020-05-18T13:03:05Z
2020-05-18T13:03:05Z
2020-05-18T14:05:13Z
CLN: simplify freq/nanos checks
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 5c700a53ceac4..3978161829481 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -746,8 +746,7 @@ def _check_timedeltalike_freq_compat(self, other): IncompatibleFrequency """ assert isin...
https://api.github.com/repos/pandas-dev/pandas/pulls/34219
2020-05-16T23:44:31Z
2020-05-17T21:51:13Z
2020-05-17T21:51:13Z
2020-05-17T22:19:41Z
CLN: remove ABCPeriod
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index b4dcdaa10d0ef..6b3d1c1ec2c13 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -22,7 +22,8 @@ cnp.import_array() from pandas._libs cimport util from pandas._libs.tslibs.nattype cimport c_NaT as NaT -from pandas._libs.tslibs.base ci...
https://api.github.com/repos/pandas-dev/pandas/pulls/34218
2020-05-16T23:40:03Z
2020-05-18T22:50:57Z
2020-05-18T22:50:57Z
2020-05-18T23:20:50Z
CLN: Timestamp unused attrs, annotations
diff --git a/pandas/_libs/tslibs/timestamps.pxd b/pandas/_libs/tslibs/timestamps.pxd index 90f50e3af503c..88d21b19e1e37 100644 --- a/pandas/_libs/tslibs/timestamps.pxd +++ b/pandas/_libs/tslibs/timestamps.pxd @@ -15,7 +15,7 @@ cdef class _Timestamp(ABCTimestamp): cdef readonly: int64_t value, nanosecond ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34216
2020-05-16T20:54:51Z
2020-05-17T22:04:39Z
2020-05-17T22:04:39Z
2021-11-20T23:21:40Z
CLN: remove no-longer-used reverse_ops
diff --git a/pandas/_libs/tslibs/np_datetime.pxd b/pandas/_libs/tslibs/np_datetime.pxd index c936d42b34db5..038632e1575c3 100644 --- a/pandas/_libs/tslibs/np_datetime.pxd +++ b/pandas/_libs/tslibs/np_datetime.pxd @@ -53,8 +53,6 @@ cdef extern from "src/datetime/np_datetime.h": ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34215
2020-05-16T18:49:43Z
2020-05-17T22:05:00Z
2020-05-17T22:05:00Z
2020-05-17T22:20:36Z
PERF: faster indexing for non-fastpath groupby ops
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 597a160995eef..74db87f46c5e2 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -952,7 +952,9 @@ def _chop(self, sdata, slice_obj: slice) -> NDFrame: class SeriesSplitter(DataSplitter): def _chop(self, sdata: Ser...
Per discussions about removing libreduction code, this is part of an effort to make the non-libreduction path more performant. Performance comparisons are done by disabling fast_apply entirely and taking the two most-affected asvs: ``` import numpy as np from pandas import DataFrame N = 10 ** 4 labels = np....
https://api.github.com/repos/pandas-dev/pandas/pulls/34214
2020-05-16T18:29:31Z
2020-05-17T21:27:56Z
2020-05-17T21:27:56Z
2020-05-17T21:35:13Z
BUG: Executing SQL containing non-escaped percent sign fails without parameters
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 17a830788be3f..5ef1f9dea5091 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -872,6 +872,7 @@ I/O - Bug in :meth:`read_parquet` was raising a ``FileNotFoundError`` when passed an s3 directory path. (:...
- [x] closes https://github.com/pandas-dev/pandas/issues/34211 - [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/34212
2020-05-16T16:52:47Z
2020-05-28T02:10:04Z
2020-05-28T02:10:04Z
2020-05-28T02:10:15Z
BUG: DataFrame with Int64 columns casts to float64 with .max()/.min()
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cd2b8a8055e68..20a25c9d4dd79 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1128,6 +1128,7 @@ ExtensionArray - Fixed bug where :meth:`StringArray.memory_usage` was not implemented (:issue:`33963`) ...
- [ ] closes #32651 - [ ] 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/34210
2020-05-16T15:35:35Z
2020-07-10T09:14:27Z
null
2020-07-10T09:14:27Z
Eliminated the skipna / dropna inconsistency in the docs.
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 31015e3095e7d..fc28f8001ac77 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8367,7 +8367,7 @@ def _count_level(self, level, axis=0, numeric_only=False): return result def _reduce( - self, op, name, axis=0, skipna=Tru...
As @bf mentioned in the comments under the issue #34063 , There are errors in the docs for Dataframe.mode, https://pandas.pydata.org/pandasdocs/dev/reference/api/pandas.DataFrame.mode.html (See source : https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L8722-L8807) , where the dropna parameter...
https://api.github.com/repos/pandas-dev/pandas/pulls/34209
2020-05-16T14:34:48Z
2020-05-27T04:42:27Z
null
2020-05-27T04:42:27Z
Restrict Pandas merge suffixes param type to list/tuple to avoid interchange in right and left suffix order
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index 56ff8c1fc7c9b..0639e4a7bb5e4 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -1273,7 +1273,7 @@ columns: .. ipython:: python - result = pd.merge(left, right, on='k', suffixes=['_l', ...
- [x] closes #33740 - [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/34208
2020-05-16T13:38:03Z
2020-06-08T01:36:52Z
2020-06-08T01:36:52Z
2020-06-13T09:33:31Z
TYP: add return types to read_sql|read_sql_query|read_sql_table
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index c2915f6fcfa7a..bf050d10d90f6 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -7,6 +7,7 @@ from datetime import date, datetime, time from functools import partial import re +from typing import Iterator, Optional, Union, overload import warnings import...
Adds return types to read_sql|read_sql_query|read_sql_table. I'd like to take on the other pd.read_* functions in follow-ups.
https://api.github.com/repos/pandas-dev/pandas/pulls/34207
2020-05-16T12:12:04Z
2020-05-21T09:12:07Z
2020-05-21T09:12:07Z
2020-05-21T09:58:06Z
REF: move get_freq_group to libfreqs, de-duplicate with Resolution.get_freq_group
diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd index d6bae78576f50..c96661aaab443 100644 --- a/pandas/_libs/tslibs/frequencies.pxd +++ b/pandas/_libs/tslibs/frequencies.pxd @@ -1,3 +1,5 @@ +cdef dict attrname_to_abbrevs + cpdef str get_rule_month(object source, str default=*) ...
Having both libresolution.get_freq_group and libresolution.Resolution.get_freq_group is confusing, this adds 1 line to the module-level function to make it handle the method, removes the method, and moves the function to libfrequencies, which is a better fit.
https://api.github.com/repos/pandas-dev/pandas/pulls/34203
2020-05-16T00:32:09Z
2020-05-18T12:56:31Z
2020-05-18T12:56:31Z
2020-05-18T14:10:38Z