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 |
|---|---|---|---|---|---|---|---|
BUG: pd.NA.__format__ fails with format_specs | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 92f7c0f6b59a3..2a112a9f141e1 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -908,6 +908,7 @@ Missing
- Clarified documentation on interpolate with method =akima. The ``der`` parameter must be scalar ... | ``pd.NA`` fails if passed to a format string and format parameters are supplied. This is different behaviour than ``np.nan`` and makes converting arrays containing ``pd.NA`` to strings very brittle and annoying.
Examples:
```python
>>> format(pd.NA)
'<NA>' # master and PR, ok
>>> format(pd.NA, ".1f")
TypeErr... | https://api.github.com/repos/pandas-dev/pandas/pulls/34740 | 2020-06-13T08:22:28Z | 2020-06-15T21:36:37Z | 2020-06-15T21:36:37Z | 2020-06-15T22:34:22Z |
DOC: updated files for SS06 errors | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index fc2d4cf4621c4..1121ca58949ec 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -903,8 +903,7 @@ def _set_codes(
def set_codes(self, codes, level=None, inplace=False, verify_integrity=True):
"""
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/34739 | 2020-06-13T02:46:48Z | 2020-07-24T12:38:48Z | null | 2020-07-24T12:38:48Z | |
BUG: pd.NA in format strings with formatting parameters | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 92f7c0f6b59a3..9199739bbfbe9 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -908,6 +908,8 @@ Missing
- Clarified documentation on interpolate with method =akima. The ``der`` parameter must be scalar ... | ``pd.NA`` raises if passed to a format string and format parameters are supplied. This is different behaviour than ``np.nan`` and makes converting arrays containing ``pd.NA`` to strings very brittle and annoying.
Examples:
```python
>>> format(pd.NA)
'<NA>' # master and PR, ok
>>> format(pd.NA, ".1f")
TypeEr... | https://api.github.com/repos/pandas-dev/pandas/pulls/34738 | 2020-06-12T21:44:49Z | 2020-06-12T22:06:31Z | null | 2020-06-12T22:06:31Z |
PERF: avoid copy in replace | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index e2a778f729470..13b98279169fd 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -906,8 +906,7 @@ def putmask(
mask = _extract_bool_array(mask)
assert not isinstance(new, (ABCIndexCla... | Closes #34136.
Hopefully this preserves the right behavior. I could imagine breaking something if a caller was relying on `putmask(., inplace=False)` returning a copy.
```
import pandas as pd
import numpy as np
df = pd.DataFrame({"A": 0, "B": 0}, index=range(4 * 10 ** 7))
# the 1 can be held in self._df.b... | https://api.github.com/repos/pandas-dev/pandas/pulls/34737 | 2020-06-12T21:11:45Z | 2020-06-14T14:34:36Z | 2020-06-14T14:34:35Z | 2020-06-14T14:34:41Z |
BUG: Fixed regression in PeriodIndex loc | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 49cb78340d104..19ebe46fca302 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -508,7 +508,11 @@ def get_loc(self, key, method=None, tolerance=None):
# _get_string_slice will handle cases where ... | Closes https://github.com/pandas-dev/pandas/issues/33964.
This is the smallest change I could get. I'm not sure what a more comprehensive fix would look like.
Regression only on master, so no need for a whatsnew. | https://api.github.com/repos/pandas-dev/pandas/pulls/34736 | 2020-06-12T20:04:21Z | 2020-06-14T16:39:59Z | 2020-06-14T16:39:59Z | 2020-06-14T16:40:03Z |
PERF: Fixed perf regression in TimedeltaIndex.get_loc | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 8af23815b54ef..1fea6ca1b8a3d 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -776,15 +776,19 @@ def _validate_shift_value(self, fill_value):
return self._unbox(fill_value)
... | Closes https://github.com/pandas-dev/pandas/issues/34510
1.0.3
```python
In [10]: index = pd.timedelta_range(start="1985", periods=1000, freq="D")
...: timedelta = index[500]
...:
...: %timeit index.get_loc(timedelta)
3.7 µs ± 275 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
`... | https://api.github.com/repos/pandas-dev/pandas/pulls/34734 | 2020-06-12T16:59:19Z | 2020-06-15T14:38:54Z | 2020-06-15T14:38:54Z | 2020-06-15T14:39:04Z |
BUG: Fixed Series.replace for EA with casting | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index 7dfac54279e6f..fdf08dd381050 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -24,6 +24,8 @@ Note this disables the ability to read Parquet files from directories on S3
again (:issue:`26388`, :issue:`3... | Closes https://github.com/pandas-dev/pandas/issues/34530 | https://api.github.com/repos/pandas-dev/pandas/pulls/34733 | 2020-06-12T16:30:49Z | 2020-06-15T19:21:21Z | 2020-06-15T19:21:20Z | 2020-06-16T09:46:26Z |
Changed the way a few sentences were written | diff --git a/README.md b/README.md
index 7edee8d3feeed..a72e8402e68a0 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
## What is it?
-**pandas** is a Python package providing fast, flexible, and expressive data
+**pandas** is a Python package that provides fast, flexible, and expressive data
structures d... | Added comma before 'and'
- [ ] 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/34729 | 2020-06-12T08:46:42Z | 2020-06-12T20:57:24Z | 2020-06-12T20:57:24Z | 2020-06-12T21:05:20Z |
PERF: interpolate_1d returns function to apply columnwise | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index d8779dae7c384..d2d34ab94e26e 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1207,22 +1207,16 @@ def _interpolate(
)
# process 1-d slices in the axis direction
- ... | This doesn't provide a significant improvement for the existing asv due to the bulk of the time creating python sets which is in the function applied columnwise. see #34727
even without #34727 this could provide perf improvements for other index types ( and for unsorted indexes with creating a column-wise function f... | https://api.github.com/repos/pandas-dev/pandas/pulls/34728 | 2020-06-12T08:32:14Z | 2020-07-07T14:41:52Z | null | 2020-07-07T14:41:52Z |
PERF: remove use of Python sets for interpolate | diff --git a/pandas/core/missing.py b/pandas/core/missing.py
index 7802c5cbdbfb3..f08812cf3d65b 100644
--- a/pandas/core/missing.py
+++ b/pandas/core/missing.py
@@ -2,7 +2,7 @@
Routines for filling missing data.
"""
-from typing import Any, List, Optional, Set, Union
+from typing import Any, Optional
import nump... | have been investigating avoiding internals for interpolation. xref #34628
This PR address the issue of using Python sets, which is responsible for the bulk of the time in our current asv.
There are other improvements (will raise other PRs), but would need new benchmarks to show a benefit such as different index... | https://api.github.com/repos/pandas-dev/pandas/pulls/34727 | 2020-06-12T07:46:31Z | 2020-07-24T16:22:42Z | null | 2020-07-24T16:22:43Z |
DOC: changed 'providing' to 'that provides' | diff --git a/README.md b/README.md
index 7edee8d3feeed..903540626ff6e 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
## What is it?
-**pandas** is a Python package providing fast, flexible, and expressive data
+**pandas** is a Python package that provides fast, flexible, and expressive data
structures d... | Changed this as it sounds more clear.
- [ ] 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/34726 | 2020-06-12T07:01:20Z | 2020-06-12T08:47:26Z | null | 2020-06-12T08:47:26Z |
CLN: remove verbose and private_key reference #34640 | diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py
index 3d0792357297f..afe1234f9fa96 100644
--- a/pandas/io/gbq.py
+++ b/pandas/io/gbq.py
@@ -31,8 +31,6 @@ def read_gbq(
credentials=None,
use_bqstorage_api: Optional[bool] = None,
max_results: Optional[int] = None,
- private_key=None,
- verbose=None,... | - [ ] closes #34640
- [ ] 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/34722 | 2020-06-11T22:59:41Z | 2020-06-12T06:52:13Z | null | 2020-06-12T06:52:13Z |
Debug CI Issue | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index a8f49d91f040e..789a4668b6fee 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -11,6 +11,8 @@
_np_version_under1p16 = _nlv < LooseVersion("1.16")
_np_version_under1p17 = _nlv < LooseVersion("1.17")... | https://api.github.com/repos/pandas-dev/pandas/pulls/34721 | 2020-06-11T22:17:59Z | 2020-06-12T20:54:56Z | 2020-06-12T20:54:56Z | 2020-06-15T09:25:07Z | |
BUG #34621 added nanosecond support to class Period | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 47ebf139ed496..cb0fd7d1aa380 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -2355,6 +2355,7 @@ class Period(_Period):
if freq is not None:
freq = cls._maybe_convert_freq(freq)
... | Closes #34621
Closes #17053
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The class Period do not support nanosecond. I've made a quick and dirty code to support nanoseconds. I have struggled to find an alternative to dateutil.parser, but I didn't found an altern... | https://api.github.com/repos/pandas-dev/pandas/pulls/34720 | 2020-06-11T21:23:01Z | 2020-11-30T05:47:57Z | null | 2021-01-02T08:31:58Z |
Removed __div__ impls from Cython | diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml
index 25ee821afe7bd..31155ac93931a 100644
--- a/ci/deps/azure-37-locale.yaml
+++ b/ci/deps/azure-37-locale.yaml
@@ -5,8 +5,7 @@ dependencies:
- python=3.7.*
# tools
- # Cython pin for https://github.com/pandas-dev/pandas/issues/34704
- -... | Alternate to #34711 which may close #34704 | https://api.github.com/repos/pandas-dev/pandas/pulls/34718 | 2020-06-11T20:32:36Z | 2020-06-14T15:57:50Z | 2020-06-14T15:57:50Z | 2020-06-15T16:20:31Z |
DOC: updated pandas/core/series.py for SS06 errors | diff --git a/pandas/core/series.py b/pandas/core/series.py
index b51c08fa592d5..b32a4c36a8247 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2935,8 +2935,10 @@ def combine_first(self, other) -> "Series":
def update(self, other) -> None:
"""
- Modify Series in place using non-N... | https://api.github.com/repos/pandas-dev/pandas/pulls/34716 | 2020-06-11T19:23:29Z | 2020-06-12T20:58:28Z | 2020-06-12T20:58:28Z | 2020-06-12T20:58:35Z | |
DOC: updated core/groupby/generic.py for SS06 errors | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 3d07f90bf7f94..5894066dd33c8 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1573,8 +1573,10 @@ def _transform_item_by_item(self, obj: DataFrame, wrapper) -> DataFrame:
def filter(self, func, d... | https://api.github.com/repos/pandas-dev/pandas/pulls/34715 | 2020-06-11T18:46:50Z | 2020-06-12T20:59:56Z | 2020-06-12T20:59:56Z | 2020-06-12T20:59:56Z | |
DOC: updated core/indexes/base.py for SS06 errors | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 240882e561bc6..4a99d2dfe339a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -609,9 +609,10 @@ def view(self, cls=None):
def astype(self, dtype, copy=True):
"""
- Create an Index with values... | https://api.github.com/repos/pandas-dev/pandas/pulls/34713 | 2020-06-11T16:54:01Z | 2020-06-12T21:00:56Z | 2020-06-12T21:00:56Z | 2020-06-12T21:51:07Z | |
Make Cython in numpydev config Consistent | diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml
index 5cb58756a6ac1..f2f1f80201d74 100644
--- a/ci/deps/azure-37-numpydev.yaml
+++ b/ci/deps/azure-37-numpydev.yaml
@@ -14,7 +14,7 @@ dependencies:
- pytz
- pip
- pip:
- - cython==0.29.16 # GH#34014
+ - cython>=0.29.16
- "g... | Follow up to #34711 and just matching the other config files. Not sure generally if we should be specifying here and in higher level configs as may be ambiguous as to what Cython version gets installed, but going with the quick patch for now | https://api.github.com/repos/pandas-dev/pandas/pulls/34712 | 2020-06-11T15:42:14Z | 2020-06-11T21:41:45Z | null | 2023-04-12T20:17:01Z |
BLD: Pin cython for 37-locale build | diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml
index 31155ac93931a..25ee821afe7bd 100644
--- a/ci/deps/azure-37-locale.yaml
+++ b/ci/deps/azure-37-locale.yaml
@@ -5,7 +5,8 @@ dependencies:
- python=3.7.*
# tools
- - cython>=0.29.16
+ # Cython pin for https://github.com/pandas-dev/pan... | Seeing if this resolves the build failure.
xref https://github.com/pandas-dev/pandas/issues/34704 | https://api.github.com/repos/pandas-dev/pandas/pulls/34711 | 2020-06-11T13:47:58Z | 2020-06-11T15:26:58Z | 2020-06-11T15:26:58Z | 2020-06-15T16:17:38Z |
BUG: DataFrame.unstack with non-consolidated | diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index 133fba0246497..391313fbb5283 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -41,8 +41,7 @@ class _Unstacker:
Parameters
----------
- index : object
- Pandas ``Index``
+ index ... | - [x] closes #34708
- [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/34709 | 2020-06-11T00:32:04Z | 2020-06-14T14:13:01Z | 2020-06-14T14:13:01Z | 2020-06-14T15:10:18Z |
PERF: is_date_array_normalized | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 152e9a5ad7ddc..40b2d44235d8b 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -445,7 +445,7 @@ cdef _TSObject convert_datetime_to_tsobject(datetime ts, object tz,
cdef _TSObject cre... | Same optimization we made in normalize_i8_timestamps the other day. | https://api.github.com/repos/pandas-dev/pandas/pulls/34707 | 2020-06-10T21:57:37Z | 2020-06-14T14:13:47Z | 2020-06-14T14:13:47Z | 2020-06-14T15:09:14Z |
TST: Add test for rolling window, see GH 34605 | diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py
index f9b0e6856337b..8d72e2cb92ca9 100644
--- a/pandas/tests/window/test_rolling.py
+++ b/pandas/tests/window/test_rolling.py
@@ -663,3 +663,36 @@ def test_iter_rolling_datetime(expected, expected_index, window):
for (expected... | - [X] closes #34605
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Dear maintainers,
I'm opening this PR to address issue #34605.
~I've made the test conditional to Python 3.8 as I'm using the positional only... | https://api.github.com/repos/pandas-dev/pandas/pulls/34705 | 2020-06-10T19:07:27Z | 2020-06-15T12:53:18Z | 2020-06-15T12:53:18Z | 2020-06-15T12:53:22Z |
CLN: disallow tuple in to_offset | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 8db3d7affc5a5..5f8668f85c3b3 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -820,6 +820,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.intersection` and :meth:`TimedeltaIndex.intersection` with resu... | This is technically an API change, but AFAICT this isnt documented behavior anywhere. | https://api.github.com/repos/pandas-dev/pandas/pulls/34703 | 2020-06-10T17:48:15Z | 2020-06-15T00:57:17Z | 2020-06-15T00:57:17Z | 2020-06-15T01:14:28Z |
CLN: remove libfrequencies.get_freq_group | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index bce071d45c12f..f43bc283d98c7 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -1,3 +1,4 @@
+cdef dict attrname_to_abbrevs
cdef enum c_FreqGroup:
# Mirrors FreqGroup in the .pxy file
diff --git a... | The next (hopefully last) step after this is to move Resolution to dtypes.pyx and de-duplicate it with FreqGroup. | https://api.github.com/repos/pandas-dev/pandas/pulls/34701 | 2020-06-10T16:47:53Z | 2020-06-14T14:20:26Z | 2020-06-14T14:20:26Z | 2020-06-14T15:11:04Z |
CLN: remove usages of base_and_stride | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 4069d192d9e88..250ff608308d8 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3491,7 +3491,7 @@ INVALID_FREQ_ERR_MSG = "Invalid frequency: {0}"
_offset_map = {}
-cpdef base_and_stride(str freq... | https://api.github.com/repos/pandas-dev/pandas/pulls/34700 | 2020-06-10T16:19:53Z | 2020-06-14T14:15:12Z | 2020-06-14T14:15:12Z | 2020-06-14T15:12:19Z | |
BUG: GH34677 Roll forward asv benchmark environment to py3.8 | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 7c10a2d17775a..ebb3a0303fd3b 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -26,7 +26,7 @@
// The Pythons you'd like to test against. If not provided, defaults
// to the current version of Python used to run `asv`.
... | Partially closes #34677 | https://api.github.com/repos/pandas-dev/pandas/pulls/34699 | 2020-06-10T16:18:40Z | 2020-07-17T20:14:19Z | null | 2020-07-17T20:14:27Z |
TYP: type annotations for read_sas | diff --git a/pandas/io/sas/sasreader.py b/pandas/io/sas/sasreader.py
index bd8c3be271505..291c9d1ee7f0c 100644
--- a/pandas/io/sas/sasreader.py
+++ b/pandas/io/sas/sasreader.py
@@ -1,11 +1,16 @@
"""
Read SAS sas7bdat or xport files.
"""
-
from abc import ABCMeta, abstractmethod
+from typing import TYPE_CHECKING, Op... | https://api.github.com/repos/pandas-dev/pandas/pulls/34697 | 2020-06-10T15:00:17Z | 2020-06-13T18:01:47Z | 2020-06-13T18:01:47Z | 2020-06-13T18:01:59Z | |
TYP: check_untyped_defs pandas.io.json._table_schema | diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py
index 239ff6241aab0..84146a5d732e1 100644
--- a/pandas/io/json/_table_schema.py
+++ b/pandas/io/json/_table_schema.py
@@ -3,10 +3,11 @@
https://specs.frictionlessdata.io/json-table-schema/
"""
+from typing import TYPE_CHECKING, Any, Dict... | pandas\io\json\_table_schema.py:112: error: Incompatible types in assignment (expression has type "Dict[str, List[Any]]", target has type "str")
pandas\io\json\_table_schema.py:264: error: Incompatible types in assignment (expression has type "str", target has type "List[Any]")
| https://api.github.com/repos/pandas-dev/pandas/pulls/34695 | 2020-06-10T14:39:23Z | 2020-06-14T09:51:40Z | 2020-06-14T09:51:40Z | 2020-06-14T09:51:51Z |
DOC: updated doctorings for SS06 errors | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 71df27119bd96..4892abc5f6f51 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,4 +1,4 @@
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, tzinfo
from pathlib import Path
from typing import (
IO,
@@ -52,6 +52,7... | https://api.github.com/repos/pandas-dev/pandas/pulls/34694 | 2020-06-10T14:37:45Z | 2020-06-11T16:50:02Z | null | 2020-06-11T16:50:02Z | |
TYP: check_untyped_defs pandas.core.resample | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 49cb78340d104..fc29f786a1476 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -64,8 +64,7 @@ def _new_PeriodIndex(cls, **d):
@inherit_names(
- ["strftime", "to_timestamp", "asfreq", "start_time", "e... | pandas\core\resample.py:969: error: Too many arguments for "__init__" of "object"
pandas\core\resample.py:1572: error: "DatetimeIndex" has no attribute "tzinfo"
pandas\core\resample.py:1573: error: "DatetimeIndex" has no attribute "tzinfo"
pandas\core\resample.py:1585: error: "PeriodIndex" has no attribute "asfreq";... | https://api.github.com/repos/pandas-dev/pandas/pulls/34692 | 2020-06-10T14:07:09Z | 2020-06-13T18:25:54Z | 2020-06-13T18:25:54Z | 2020-06-13T18:49:41Z |
DOC: Add note about shallow clones in contributing guide | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 163d345b4f829..b85e9403038ab 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -136,6 +136,10 @@ want to clone your fork to your machine::
This creates the directory ... | - [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I didn't open a new issue for this, let me know if I should, I'll gladly do it (I got the impression that that's not mandatory by reading the contrib... | https://api.github.com/repos/pandas-dev/pandas/pulls/34690 | 2020-06-10T13:48:43Z | 2020-06-10T14:54:15Z | 2020-06-10T14:54:14Z | 2020-06-10T14:54:15Z |
TYP: check_untyped_defs pandas.core.nanops | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 6b8518d8a47a0..e7e5e37bb7817 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -86,7 +86,7 @@ def __init__(self, name=None, **kwargs):
self.name = name
self.kwargs = kwargs
- def __call__(self, alt):
+ def __call_... | pandas\core\nanops.py:565: error: Item "bool" of "Union[bool, Any]" has no attribute "any" | https://api.github.com/repos/pandas-dev/pandas/pulls/34689 | 2020-06-10T13:00:05Z | 2020-06-14T14:56:37Z | 2020-06-14T14:56:37Z | 2020-06-14T15:51:36Z |
TYP: update setup.cfg | diff --git a/setup.cfg b/setup.cfg
index ea3d4c67d9358..e31d6001e065d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -136,9 +136,6 @@ check_untyped_defs=False
[mypy-pandas.conftest]
ignore_errors=True
-[mypy-pandas.tests.arithmetic.test_datetime64]
-ignore_errors=True
-
[mypy-pandas.tests.tools.test_to_datetime]
ignor... | https://api.github.com/repos/pandas-dev/pandas/pulls/34688 | 2020-06-10T12:16:47Z | 2020-06-13T17:57:28Z | 2020-06-13T17:57:28Z | 2020-06-13T17:57:49Z | |
CLN: dont consolidate in reshape.concat | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 2630c07814bb2..59301391a7dad 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -6,7 +6,16 @@
import numpy as np
-from pandas._libs import NaT, algos as libalgos, internals as libinternals, lib, ... | Looks like this consolidation was added here https://github.com/pandas-dev/pandas/commit/3b1c5b74e0ca5a782d4c070aac002b3e6d7e5290 in 2012, no clear reason why it is needed. About to start an asv run. | https://api.github.com/repos/pandas-dev/pandas/pulls/34683 | 2020-06-10T01:52:28Z | 2020-12-17T21:05:28Z | 2020-12-17T21:05:28Z | 2020-12-17T21:48:07Z |
CLN: dont consolidate in groupby | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 9838cff9b34f9..e385a78142ba5 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -497,7 +497,6 @@ def __init__(
self._selection = selection
assert isinstance(obj, NDFrame), type(obj)
- ... | full asv run looks like pure noise
```
before after ratio
[03f5066c] [f2cae354]
<master~3> <cln-consolidate-less-3>
+ 38.4±0.1μs 45.7±6μs 1.19 algorithms.SortIntegerArray.time_argsort(1000)
+ 11.5±0.2ms 13.3±0.4ms 1.16 groupby.Nth.... | https://api.github.com/repos/pandas-dev/pandas/pulls/34680 | 2020-06-09T21:17:54Z | 2020-06-09T22:21:37Z | 2020-06-09T22:21:37Z | 2020-06-10T07:47:26Z |
CLN: dont consolidate in indexing | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 9c8b01003bece..4d5a9e54e7d37 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1676,7 +1676,6 @@ def isetter(loc, v):
ser = v
else:
# set the item, possibly having a dtype... | https://api.github.com/repos/pandas-dev/pandas/pulls/34679 | 2020-06-09T21:14:10Z | 2020-06-26T23:59:12Z | 2020-06-26T23:59:12Z | 2020-06-27T00:21:15Z | |
CLN: dont consolidate in NDFrame._is_numeric_mixed_type | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 7c3e975c889e1..9014e576eeb39 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5331,15 +5331,10 @@ def _is_mixed_type(self) -> bool_t:
f = lambda: self._mgr.is_mixed_type
return self._protect_consolidate(f)
- @p... | https://api.github.com/repos/pandas-dev/pandas/pulls/34678 | 2020-06-09T21:09:45Z | 2020-06-15T17:28:17Z | 2020-06-15T17:28:17Z | 2020-06-15T18:12:24Z | |
CLN: remove get_freq_code | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index 6dbb4ce7bc974..6f173a4542bb0 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -18,7 +18,7 @@
"to_offset",
]
-from . import dtypes # type: ignore
+from . import dtypes
from .conversion impo... | Sits on top of #34587 | https://api.github.com/repos/pandas-dev/pandas/pulls/34674 | 2020-06-09T18:24:02Z | 2020-06-10T01:05:06Z | 2020-06-10T01:05:06Z | 2020-06-10T01:39:11Z |
PERF: normalize_i8_timestamps | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index b0bad119d6a46..152e9a5ad7ddc 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -785,7 +785,6 @@ cpdef ndarray[int64_t] normalize_i8_timestamps(const int64_t[:] stamps, tzinfo t
i... | xref #34507
Based on the asv mentioned in that thread:
```
In [3]: N = 10**5
In [4]: tz = "UTC" ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34672 | 2020-06-09T16:47:38Z | 2020-06-09T17:59:27Z | 2020-06-09T17:59:27Z | 2020-06-09T18:03:23Z |
BUG: GH29461 Strftime | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index b494dbd8a38fa..23d4b05c380ad 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -423,4 +423,23 @@ def time_dt_accessor_year(self, tz):
self.series.dt.year
+class DateTimeAcces... | - [x] closes #29461
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Closed the other PR while I sorted some things out. | https://api.github.com/repos/pandas-dev/pandas/pulls/34668 | 2020-06-09T15:29:49Z | 2020-09-25T15:06:59Z | null | 2020-09-25T15:06:59Z |
BLD: pyproject.toml for Py38 | diff --git a/doc/source/whatsnew/v1.0.5.rst b/doc/source/whatsnew/v1.0.5.rst
index 1edc7e1cad72f..5dbc911407784 100644
--- a/doc/source/whatsnew/v1.0.5.rst
+++ b/doc/source/whatsnew/v1.0.5.rst
@@ -22,7 +22,8 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+
+- Fixed building from source with Python 3.8 fetching the wro... | Closes https://github.com/pandas-dev/pandas/issues/34666 | https://api.github.com/repos/pandas-dev/pandas/pulls/34667 | 2020-06-09T14:29:53Z | 2020-06-11T15:29:02Z | 2020-06-11T15:29:02Z | 2020-06-15T09:17:23Z |
Backport PR #34458 on branch 1.0.x (CLN: Clean csv files in test data GH34427) | diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst
index 4e284fe7b5968..a29c9ec1c3842 100644
--- a/doc/source/getting_started/comparison/comparison_with_sas.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sas.rst
@@ ... | xref #34458 | https://api.github.com/repos/pandas-dev/pandas/pulls/34664 | 2020-06-09T11:50:34Z | 2020-06-09T12:41:51Z | 2020-06-09T12:41:51Z | 2020-06-10T10:49:18Z |
BUG: Allow plain bools in ExtensionArray.equals | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 79f0039a9df65..7f2c61ff7d955 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -738,7 +738,7 @@ def equals(self, other: "ExtensionArray") -> bool:
# boolean array with NA -> fill with False
... | - [x] closes #34660
- [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/34661 | 2020-06-09T09:28:51Z | 2020-06-09T15:37:45Z | 2020-06-09T15:37:45Z | 2020-06-09T16:50:12Z |
REF: avoid get_freq_code | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 55148041c1718..a5891a9e1c22c 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -79,6 +79,7 @@ from pandas._libs.tslibs.offsets cimport (
is_tick_object,
is_offset_object,
)
+from pandas._libs.... | We'll be able to rip it out entirely after this, #34658, and #34587. | https://api.github.com/repos/pandas-dev/pandas/pulls/34659 | 2020-06-08T22:42:17Z | 2020-06-09T17:14:52Z | 2020-06-09T17:14:52Z | 2020-06-09T17:49:43Z |
CLN: disallow passing tuples for Period freq | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index c6ba196a8a985..e5e0b2577d595 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -403,6 +403,7 @@ Backwards incompatible API changes
- :func:`read_excel` no longer takes ``**kwds`` arguments. This means t... | Really looking forward to killing off `get_freq_code` | https://api.github.com/repos/pandas-dev/pandas/pulls/34658 | 2020-06-08T22:35:33Z | 2020-06-09T01:47:00Z | 2020-06-09T01:47:00Z | 2020-06-09T01:57:10Z |
#34640: CLN: remove 'private_key' and 'verbose' from gbq | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index ed48bf0675034..9e2a05b250d8f 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -325,6 +325,7 @@ I/O
- :meth:`to_picke` and :meth:`read_pickle` did not support compression for file-objects (:issue:`26237... | - [x ] closes #34640
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Hello, I am new to contributing to open source, so thank you in advance for any corrections and suggestions. Please let me know if I need to do an... | https://api.github.com/repos/pandas-dev/pandas/pulls/34654 | 2020-06-08T19:39:16Z | 2020-09-24T01:34:44Z | 2020-09-24T01:34:43Z | 2020-09-24T01:34:48Z |
DOC: updated _testing.py for PR08 errors | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 0180169973e0c..61eab6b8152e1 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1047,7 +1047,7 @@ def assert_extension_array_equal(
check_exact : bool, default False
Whether to compare number exactly.
index_values : numpy.ndarray, d... | https://api.github.com/repos/pandas-dev/pandas/pulls/34653 | 2020-06-08T18:21:23Z | 2020-06-08T22:56:50Z | 2020-06-08T22:56:50Z | 2020-06-08T22:57:02Z | |
DOC: updated plotting/_misc.py for PR08 errors | diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py
index 3056977ec78ad..22a2d7617fded 100644
--- a/pandas/plotting/_misc.py
+++ b/pandas/plotting/_misc.py
@@ -160,7 +160,7 @@ def radviz(frame, class_column, ax=None, color=None, colormap=None, **kwds):
Parameters
----------
frame : `DataFram... | https://api.github.com/repos/pandas-dev/pandas/pulls/34652 | 2020-06-08T17:34:57Z | 2020-06-09T17:35:41Z | 2020-06-09T17:35:41Z | 2020-06-09T17:36:00Z | |
REF: simplify libperiod.get_yq | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 32acbcfb39b50..477bf6b325365 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -497,12 +497,11 @@ cdef int64_t asfreq_DTtoA(int64_t ordinal, asfreq_info *af_info) nogil:
return <int64_t>(dts.yea... | https://api.github.com/repos/pandas-dev/pandas/pulls/34649 | 2020-06-08T16:16:09Z | 2020-06-08T22:55:10Z | 2020-06-08T22:55:10Z | 2020-06-08T23:10:47Z | |
REF: de-duplicate month/year rolling in libperiod | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index bbdcb63d18175..4e8da6504d1ea 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -329,56 +329,34 @@ cdef inline int64_t transform_via_day(int64_t ordinal,
# -----------------------------------------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/34648 | 2020-06-08T16:14:05Z | 2020-06-09T00:53:55Z | 2020-06-09T00:53:55Z | 2020-06-09T00:55:19Z | |
TST: groupby apply with indexing and column aggregation returns the column #7002 | diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py
index bc8067212d60e..8468a21904bf8 100644
--- a/pandas/tests/groupby/test_apply.py
+++ b/pandas/tests/groupby/test_apply.py
@@ -961,3 +961,16 @@ def fn(x):
name="col2",
)
tm.assert_series_equal(result, expected)
+
+
... | Adds test for #7002
- [x] closes #7002
- [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/34647 | 2020-06-08T15:46:45Z | 2020-06-14T22:20:51Z | 2020-06-14T22:20:51Z | 2020-06-15T03:11:17Z |
DOC: updated io/sql.py for PR08 errors | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 991d222bfae1f..b137608475b3d 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -332,11 +332,9 @@ def read_sql_query(
----------
sql : str SQL query or SQLAlchemy Selectable (select or text object)
SQL query to be executed.
- con : SQLAlc... | https://api.github.com/repos/pandas-dev/pandas/pulls/34646 | 2020-06-08T15:23:27Z | 2020-06-08T22:58:12Z | 2020-06-08T22:58:12Z | 2020-06-08T22:58:15Z | |
ENH: Add max_results kwarg to read_gbq | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index b2b55b7b503ec..ccb5cb3ac574f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -291,6 +291,7 @@ Other enhancements
- :meth:`groupby.transform` now allows ``func`` to be ``pad``, ``backfill`` and ``cumco... | Adds support for the new `max_results` kwarg from pandas-gbq (added in [0.12.0](https://github.com/pydata/pandas-gbq/releases/tag/0.12.0)). Since `max_results` is a new kwarg, it is handled and tested in the same way as the `use_bqstorage_api` kwarg to maintain backwards compatibility.
❓ **Open question:** Setting `... | https://api.github.com/repos/pandas-dev/pandas/pulls/34641 | 2020-06-08T11:53:34Z | 2020-06-09T22:17:20Z | 2020-06-09T22:17:20Z | 2020-06-09T22:17:24Z |
CLN: deduplicate in core.internals.blocks.interpolate | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index a4a8d672895ce..e2a778f729470 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1084,14 +1084,9 @@ def interpolate(
inplace = validate_bool_kwarg(inplace, "inplace")
- def check_i... | broken off #34628 | https://api.github.com/repos/pandas-dev/pandas/pulls/34638 | 2020-06-08T08:52:32Z | 2020-06-09T12:36:21Z | 2020-06-09T12:36:21Z | 2020-06-09T12:44:41Z |
CLN: EWMA cython code and function dispatch | diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx
index afa0539014041..9e088062d7280 100644
--- a/pandas/_libs/window/aggregations.pyx
+++ b/pandas/_libs/window/aggregations.pyx
@@ -1793,19 +1793,19 @@ def ewma(float64_t[:] vals, float64_t com, int adjust, bint ignore_na, int minp... | - [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/34636 | 2020-06-08T07:02:17Z | 2020-06-08T14:25:32Z | 2020-06-08T14:25:31Z | 2020-06-08T15:28:52Z |
BUG/API: Disallow unit if input to Timedelta and to_timedelta is/contains str | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 2243790a663df..416291916890a 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -826,6 +826,7 @@ Timedelta
- Bug in :func:`timedelta_range` that produced an extra point on a edge case (:issue:`30353`, :i... | - [x] closes #12136
- [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/34634 | 2020-06-07T17:28:50Z | 2020-06-08T22:10:04Z | 2020-06-08T22:10:04Z | 2020-06-08T22:10:15Z |
Revert backport of #33632: Parquet & s3 I/O changes | diff --git a/pandas/io/common.py b/pandas/io/common.py
index eaf4bcf203796..9617965915aa5 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -141,33 +141,6 @@ def urlopen(*args, **kwargs):
return urllib.request.urlopen(*args, **kwargs)
-def get_fs_for_path(filepath: str):
- """
- Get appropria... | Ref: https://github.com/pandas-dev/pandas/issues/34626#issuecomment-640225867
Revert backport of https://github.com/pandas-dev/pandas/pull/33632
Backport: https://github.com/pandas-dev/pandas/pull/34173
cc @jorisvandenbossche @simonjayhawkins
| https://api.github.com/repos/pandas-dev/pandas/pulls/34632 | 2020-06-07T15:43:26Z | 2020-06-09T07:36:51Z | 2020-06-09T07:36:51Z | 2020-06-09T07:36:51Z |
TYP: some type annotations for interpolate | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 4b074924baaf2..714a332be2196 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6863,16 +6863,16 @@ def replace(
@Appender(_shared_docs["interpolate"] % _shared_doc_kwargs)
def interpolate(
- self,
- method="l... | pre-cursor to #34628 | https://api.github.com/repos/pandas-dev/pandas/pulls/34631 | 2020-06-07T15:08:39Z | 2020-06-07T20:07:21Z | 2020-06-07T20:07:21Z | 2020-06-08T08:32:06Z |
TYP: some type annotations in core\tools\datetimes.py | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 71df27119bd96..4892abc5f6f51 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,4 +1,4 @@
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, tzinfo
from pathlib import Path
from typing import (
IO,
@@ -52,6 +52,7... | https://api.github.com/repos/pandas-dev/pandas/pulls/34630 | 2020-06-07T14:17:17Z | 2020-06-10T09:23:17Z | 2020-06-10T09:23:17Z | 2020-06-10T09:25:02Z | |
WIP: avoid internals for Series.interpolate | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6183638ab587e..65b34fe157b71 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6890,11 +6890,6 @@ def interpolate(
axis = self._get_axis_number(axis)
index = self._get_axis(axis)
- if isinstance(self.index, ... | This may be premature while discussion about removing the block manager is ongoing
most of the diff is type annotations and collecting the method validation. will break off into pre-cursor PRs | https://api.github.com/repos/pandas-dev/pandas/pulls/34628 | 2020-06-07T09:20:44Z | 2020-06-10T09:30:00Z | null | 2020-06-10T09:30:00Z |
TST #24444 added tests | diff --git a/pandas/tests/scalar/period/test_period.py b/pandas/tests/scalar/period/test_period.py
index 42bd20fd9640b..3e769b577582a 100644
--- a/pandas/tests/scalar/period/test_period.py
+++ b/pandas/tests/scalar/period/test_period.py
@@ -649,6 +649,26 @@ def test_to_timestamp_business_end(self):
expected = ... | At last, there are no issues at all. I've made a new PR.
- [x] closes #24444
- [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/34627 | 2020-06-07T08:53:04Z | 2020-06-07T17:19:57Z | 2020-06-07T17:19:57Z | 2020-06-07T18:53:01Z |
REF: re-use existing conversion functions | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 5c890c7fbf59d..32acbcfb39b50 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -763,10 +763,9 @@ cdef int64_t get_period_ordinal(npy_datetimestruct *dts, int freq) nogil:
period_ordinal : int64_t
... | https://api.github.com/repos/pandas-dev/pandas/pulls/34625 | 2020-06-06T22:38:16Z | 2020-06-08T16:09:38Z | 2020-06-08T16:09:38Z | 2020-06-08T16:11:14Z | |
DOC: updated core/arrays/base.py for PR08 errors | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index b5e917bafca7e..79f0039a9df65 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -512,7 +512,7 @@ def argsort(
kind : {'quicksort', 'mergesort', 'heapsort'}, optional
Sorting algorithm.
*arg... | https://api.github.com/repos/pandas-dev/pandas/pulls/34624 | 2020-06-06T18:42:01Z | 2020-06-06T22:23:52Z | 2020-06-06T22:23:52Z | 2020-06-06T22:23:59Z | |
TST/REF: arithmetic tests for BooleanArray + consolidate with integer masked tests | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 61eab6b8152e1..ebb53dd81682c 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -4,6 +4,7 @@
from datetime import datetime
from functools import wraps
import gzip
+import operator
import os
from shutil import rmtree
import string
@@ -2758,3 +2759... | Follow-up on https://github.com/pandas-dev/pandas/pull/34454
- Move a bunch of tests from `integer/test_arithmetic.py` to `masked/test_arithmetic.py` so those can be shared with boolean (and once merged I can add float as well in the FloatingArray PR)
- Added some more arithmetic tests to `boolean/test_arithmetic.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/34623 | 2020-06-06T18:32:47Z | 2020-06-14T15:18:10Z | 2020-06-14T15:18:10Z | 2020-06-14T15:18:13Z |
TST: boolean indexing using .iloc #20627 | diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py
index c97cd81c84726..c5f40102874dd 100644
--- a/pandas/tests/indexing/test_iloc.py
+++ b/pandas/tests/indexing/test_iloc.py
@@ -705,6 +705,25 @@ def test_iloc_setitem_categorical_updates_inplace(self):
expected = pd.Categorica... | - [x] closes #20627
- [1] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
A simple test was added to close this issue.
| https://api.github.com/repos/pandas-dev/pandas/pulls/34622 | 2020-06-06T18:24:00Z | 2020-06-13T19:58:21Z | 2020-06-13T19:58:21Z | 2021-01-02T08:31:59Z |
DOC: docstring, closes #23475 | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index e88a20bc549bd..5c890c7fbf59d 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1529,7 +1529,16 @@ cdef class _Period:
self._dtype = PeriodPseudoDtype(freq._period_dtype_code)
@classmetho... | - [x] closes #23475
- [ ] 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/34619 | 2020-06-06T16:18:29Z | 2020-06-07T20:11:13Z | 2020-06-07T20:11:13Z | 2020-06-07T20:34:38Z |
Improve document for **kwargs argument of pandas.Series.to_markdown | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 6b5ed86027806..0ed29fcaaa081 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1422,6 +1422,21 @@ def to_string(
| 1 | pig |
| 2 | dog |
| 3 | quetzal |
+
+ Output markdown with a tabulate o... | This is a follow-up PR of #34594 .
`pandas.Series.to_markdown` has also same argument.
This PR adds example for `pandas.Series.to_markdown` with tabulate option.
Related Issue: #34568 | https://api.github.com/repos/pandas-dev/pandas/pulls/34616 | 2020-06-06T05:38:54Z | 2020-06-08T02:38:22Z | 2020-06-08T02:38:22Z | 2020-06-08T02:38:31Z |
DOC: Clarify where to the additional arguments for some win_types | diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py
index ce0a2a9b95025..9cd750265133e 100644
--- a/pandas/core/window/rolling.py
+++ b/pandas/core/window/rolling.py
@@ -922,16 +922,19 @@ class Window(_Window):
* ``blackmanharris``
* ``nuttall``
* ``barthann``
- * ``kaiser`` (ne... | For example, std needs to specify when win_types is gaussian. However, std should be specified in the operation argument, not as one of the rolling arguments. This change is to clarify this point.
- [ ] closes #34593
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u... | https://api.github.com/repos/pandas-dev/pandas/pulls/34615 | 2020-06-06T00:49:42Z | 2020-06-18T00:11:58Z | 2020-06-18T00:11:58Z | 2020-06-18T00:12:10Z |
CLN: update tslibs/tseries test locations/imports | diff --git a/pandas/tests/tseries/frequencies/test_freq_code.py b/pandas/tests/tseries/frequencies/test_freq_code.py
index d4eb31168b20e..4df221913b805 100644
--- a/pandas/tests/tseries/frequencies/test_freq_code.py
+++ b/pandas/tests/tseries/frequencies/test_freq_code.py
@@ -1,6 +1,6 @@
import pytest
-from pandas._... | https://api.github.com/repos/pandas-dev/pandas/pulls/34614 | 2020-06-05T23:08:30Z | 2020-06-08T02:27:08Z | 2020-06-08T02:27:07Z | 2020-06-08T02:30:39Z | |
REF: RelativeDeltaOffset.apply_index operate on ndarray | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 63136367a5b5c..63a4a7ce302e8 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -556,7 +556,7 @@ cdef class BaseOffset:
# ------------------------------------------------------------------
... | https://api.github.com/repos/pandas-dev/pandas/pulls/34613 | 2020-06-05T23:01:28Z | 2020-06-08T16:15:52Z | 2020-06-08T16:15:52Z | 2020-06-09T16:36:52Z | |
REF: make DateOffset apply_index methods operate on ndarrays where feasible | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 63136367a5b5c..28ead3593cf85 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -47,6 +47,7 @@ from pandas._libs.tslibs.timezones cimport utc_pytz as UTC
from pandas._libs.tslibs.tzconversion cimport... | https://api.github.com/repos/pandas-dev/pandas/pulls/34612 | 2020-06-05T22:01:04Z | 2020-06-08T01:59:48Z | 2020-06-08T01:59:47Z | 2020-06-08T02:05:24Z | |
Add ddof to cov methods | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 14d1e1b49a726..59c4a22dcefff 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -294,6 +294,7 @@ Other enhancements
- :meth:`~pandas.io.json.read_json` now accepts `nrows` parameter. (:issue:`33916`).
-... | - [ x] closes #28823
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/34611 | 2020-06-05T20:57:50Z | 2020-06-23T17:37:58Z | 2020-06-23T17:37:58Z | 2020-06-23T17:38:04Z |
TST: mark tzlocal tests as slow, closes #34413 | diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py
index 9909e554aa14d..8d7d45f54ad5f 100644
--- a/pandas/tests/resample/test_datetime_index.py
+++ b/pandas/tests/resample/test_datetime_index.py
@@ -2,6 +2,7 @@
from functools import partial
from io import StringIO... | - [x] closes #34413
- [ ] 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/34610 | 2020-06-05T20:50:23Z | 2020-06-08T02:01:41Z | 2020-06-08T02:01:41Z | 2020-06-08T02:05:00Z |
Coding Style Guidline.rst | diff --git a/Coding Style Guidline.rst b/Coding Style Guidline.rst
new file mode 100644
index 0000000000000..a3e2bfb9ed89a
--- /dev/null
+++ b/Coding Style Guidline.rst
@@ -0,0 +1,205 @@
+pandas Coding Style Guide
+=========================
+
+1 Background
+------------
+
+Writing good code is not just about wha... | Created a unified version of the Coding Style Guidelines
Extracted rules from various pandas website information as well as submission scripts that verify style requirements
Work in progress
- [x] closes #33851
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "... | https://api.github.com/repos/pandas-dev/pandas/pulls/34608 | 2020-06-05T19:49:06Z | 2020-11-27T03:54:42Z | null | 2020-11-27T03:54:43Z |
PERF: isinstance ABCIndexClass and ABCExtensionArray | diff --git a/pandas/core/dtypes/generic.py b/pandas/core/dtypes/generic.py
index 09b039e317424..36eff214fc314 100644
--- a/pandas/core/dtypes/generic.py
+++ b/pandas/core/dtypes/generic.py
@@ -38,7 +38,7 @@ def _check(cls, inst) -> bool:
ABCIndexClass = create_pandas_abc_type(
"ABCIndexClass",
"_typ",
- (... | ```
%timeit isinstance(pd.Series, pd.core.dtypes.generic.ABCIndexClass)
# 607 ns ± 12.4 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) - PR
# 937 ns ± 37.5 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) - Master
%timeit isinstance(pd.Series, pd.core.dtypes.generic.ABCExtensionArray)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/34607 | 2020-06-05T19:02:18Z | 2020-06-06T06:33:09Z | 2020-06-06T06:33:09Z | 2020-06-06T09:16:17Z |
#34569 Added proper description for pandas.Series.pop | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d12ebeafe8510..1872f34dfcd7f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4263,6 +4263,49 @@ def fillna(
downcast=downcast,
)
+ def pop(self, item: Label) -> Series:
+ """
+ Return item and drop f... | - [x] closes #34569
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Updated documentation will look like this: https://i.imgur.com/Tl9JO5X.png
This is my first commit to the project. If any changes/modifications let... | https://api.github.com/repos/pandas-dev/pandas/pulls/34606 | 2020-06-05T18:35:17Z | 2020-06-23T17:35:08Z | 2020-06-23T17:35:08Z | 2020-06-23T17:35:15Z |
DOC: updated io/pytables.py to fix PR08 | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 36cd61b6c3adb..497b25d73df3e 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -997,12 +997,14 @@ def put(
key : str
value : {Series, DataFrame}
format : 'fixed(f)|table(t)', default is 'fixed'
- fixed... | https://api.github.com/repos/pandas-dev/pandas/pulls/34604 | 2020-06-05T16:50:48Z | 2020-06-08T01:52:30Z | 2020-06-08T01:52:30Z | 2020-06-08T01:52:36Z | |
DOC: Fixed docstring in Series .isin() method | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 6b5ed86027806..ef47e52151961 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4513,7 +4513,7 @@ def memory_usage(self, index=True, deep=False):
def isin(self, values) -> "Series":
"""
- Check whether `values` are c... | - [ ] 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/34600 | 2020-06-05T14:50:52Z | 2020-06-07T10:58:55Z | 2020-06-07T10:58:55Z | 2020-06-07T10:59:10Z |
BUG: Pandas changes dtypes of columns when no float (or other) assignments are done to this column #34573 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index e5e0b2577d595..ee2a47f056a1f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -896,6 +896,7 @@ Indexing
- Bug in :meth:`DataFrame.truncate` and :meth:`Series.truncate` where index was assumed to be mon... | - [ ] closes #34573
- [ ] 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/34599 | 2020-06-05T13:28:05Z | 2020-06-09T22:31:41Z | 2020-06-09T22:31:41Z | 2020-06-10T08:04:13Z |
BUG: fix Series.where(cond) when cond is empty | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index b4e29291bb12d..be4f6a3a3098f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1003,6 +1003,7 @@ Reshaping
- Bug in :func:`cut` raised an error when non-unique labels (:issue:`33141`)
- Ensure only na... | - [ ] closes #34592
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #21947 for fix for DataFrame.where
| https://api.github.com/repos/pandas-dev/pandas/pulls/34595 | 2020-06-05T10:13:34Z | 2020-06-08T02:15:45Z | 2020-06-08T02:15:44Z | 2020-06-08T08:31:23Z |
Improve document for **kwargs argument of pandas.DataFrame.to_markdown | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5f8ab8966c1f0..b5941d343c5cb 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2196,6 +2196,17 @@ def to_feather(self, path, **kwargs) -> None:
|---:|:-----------|:-----------|
| 0 | elk | dog |
| 1 ... | - [x] closes #34568
- [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/34594 | 2020-06-05T08:48:21Z | 2020-06-07T20:59:52Z | 2020-06-07T20:59:52Z | 2020-06-07T21:00:00Z |
DOC: updated base.py and datetimes.py in core/indexes for PR08 | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 746fd140e48a1..240882e561bc6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -517,7 +517,7 @@ def is_(self, other) -> bool:
Parameters
----------
other : object
- other object... | https://api.github.com/repos/pandas-dev/pandas/pulls/34591 | 2020-06-05T05:07:34Z | 2020-06-07T21:23:19Z | 2020-06-07T21:23:19Z | 2020-06-07T21:23:30Z | |
REF: mix PeriodPseudoDtype into PeriodDtype | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index 25e2d8ba477e0..6dbb4ce7bc974 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -1,4 +1,5 @@
__all__ = [
+ "dtypes",
"localize_pydatetime",
"NaT",
"NaTType",
@@ -17,7 +18,7 @@
... | This will allow us to start getting rid of `get_freq_code` usages and related libfrequencies functions that are unnecessarily roundabout. | https://api.github.com/repos/pandas-dev/pandas/pulls/34590 | 2020-06-05T04:37:11Z | 2020-06-08T16:17:25Z | 2020-06-08T16:17:25Z | 2020-06-08T16:25:09Z |
DataFrame.truncate drops MultiIndex names | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 7834e1a5c4898..5ad6ad73ae550 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -911,6 +911,7 @@ MultiIndex
df.loc[(['b', 'a'], [2, 1]), :]
- Bug in :meth:`MultiIndex.intersection` was not gua... | - [x] closes #34564
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- [x] added tests
- [ ] passes tests (fixed for `DataFrame`, still issue for `Series`) | https://api.github.com/repos/pandas-dev/pandas/pulls/34589 | 2020-06-05T04:23:41Z | 2020-06-20T20:04:28Z | 2020-06-20T20:04:28Z | 2020-06-21T03:24:54Z |
REF: implement c_FreqGroup, FreqGroup in tslibs.dtypes | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index b6373550b1c78..bce071d45c12f 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -1,4 +1,21 @@
+cdef enum c_FreqGroup:
+ # Mirrors FreqGroup in the .pxy file
+ FR_ANN = 1000
+ FR_QTR = 2000
+ ... | These are already used in libperiod, better to be explicit about it.
Coming up: make FreqGroup into an enum with helper methods to convert between FreqGroup/PeriodDtype/DateOffset/Resolution | https://api.github.com/repos/pandas-dev/pandas/pulls/34588 | 2020-06-05T03:56:42Z | 2020-06-08T23:00:25Z | 2020-06-08T23:00:25Z | 2020-06-08T23:11:06Z |
ENH: Resolutions for month/qtr/year | diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx
index c0baabdc98acd..7453933ddbb4f 100644
--- a/pandas/_libs/tslibs/resolution.pyx
+++ b/pandas/_libs/tslibs/resolution.pyx
@@ -8,9 +8,10 @@ from pandas._libs.tslibs.util cimport get_nat
from pandas._libs.tslibs.np_datetime cimport (
... | This does three things
1) Use Resolution objects instead of strings in the places in core.indexes. This makes whats going on much clearer.
2) To make 1) possible, extend Resolution to include month, quarter, and year. This means that `pd.period_range("2017", periods=3, freq="A").resolution` is now "year" instead ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34587 | 2020-06-05T00:59:20Z | 2020-06-09T22:32:55Z | 2020-06-09T22:32:55Z | 2020-06-09T23:39:59Z |
REF: ensure we have offset objects in plotting functions | diff --git a/pandas/plotting/_matplotlib/converter.py b/pandas/plotting/_matplotlib/converter.py
index b8be8a66a59fd..65f030223c7ca 100644
--- a/pandas/plotting/_matplotlib/converter.py
+++ b/pandas/plotting/_matplotlib/converter.py
@@ -11,7 +11,9 @@
import numpy as np
from pandas._libs import lib, tslibs
-from pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/34585 | 2020-06-04T23:18:01Z | 2020-06-08T02:20:33Z | 2020-06-08T02:20:33Z | 2020-06-08T02:31:24Z | |
DOC: DataFrame.reindex improve summary and return type | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 8aa8f8bb60654..2bbd261faeddf 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4239,11 +4239,11 @@ def sort_values(
def reindex(self: FrameOrSeries, *args, **kwargs) -> FrameOrSeries:
"""
- Conform %(klass)s to ... | - [x] closes #33888
- [x] tests added / passed (passes `scripts/validate_docstrings.py pandas.DataFrame.reindex`)
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry (Not Required) | https://api.github.com/repos/pandas-dev/pandas/pulls/34584 | 2020-06-04T22:38:23Z | 2020-11-04T08:44:21Z | null | 2020-11-04T08:44:21Z |
TST: series offset artithmetic tests | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index b3f4d5f5d9ee5..f7c12cbe881ea 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -2376,12 +2376,10 @@ def test_dti_add_series(self, tz_naive_fixture, names):... | …racting a series of DateOffsets to / from a series of Timestamps (test_series_add_daytime_offset, test_series_add_daytime_offset)
- [x] closes #19211
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (omitted, test on... | https://api.github.com/repos/pandas-dev/pandas/pulls/34582 | 2020-06-04T21:53:57Z | 2020-08-01T14:07:19Z | null | 2020-08-01T14:07:20Z |
solves ci issues with #34575 | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index a9a8a4f3add92..3ef6ab6209ea7 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -466,7 +466,7 @@ def setup(self, offset):
self.rng = rng
def time_apply_index(self, offset):... | - [x] closes #34575
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
solved issues with benchmarks
benchmarks running fine now
Current right output
```
· Discovering benchmarks
· Running 1 total benchmarks (1 commits * 1 environments * 1 benchmarks)
[ 0.00%] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34579 | 2020-06-04T18:04:59Z | 2020-06-04T19:04:33Z | 2020-06-04T19:04:33Z | 2020-06-04T19:04:33Z |
Solve ci issue related to #34555 | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index a9a8a4f3add92..3ef6ab6209ea7 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -466,7 +466,7 @@ def setup(self, offset):
self.rng = rng
def time_apply_index(self, offset):... | - [x] closes #34575
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
solved issues with benchmarks
benchmarks running fine now
Current right output
```
· Discovering benchmarks
· Running 1 total benchmarks (1 commits * 1 environments * 1 benchmarks)
[ 0.00%] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/34578 | 2020-06-04T17:29:12Z | 2020-06-04T17:30:34Z | null | 2020-06-04T17:30:34Z |
DOC: fixed PR06 in pandas.Timedeltas | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index eb04049f18e0c..a239804ea7bc2 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -1093,7 +1093,7 @@ class Timedelta(_Timedelta):
Parameters
----------
- value : Timedelta, ti... | https://api.github.com/repos/pandas-dev/pandas/pulls/34574 | 2020-06-04T15:25:37Z | 2020-06-04T19:06:40Z | 2020-06-04T19:06:40Z | 2020-06-04T19:06:45Z | |
TST: Added test to check that the freqstr attribute of the index is p… | diff --git a/pandas/tests/series/methods/test_shift.py b/pandas/tests/series/methods/test_shift.py
index 686e66162fe0b..f981e98100d31 100644
--- a/pandas/tests/series/methods/test_shift.py
+++ b/pandas/tests/series/methods/test_shift.py
@@ -276,3 +276,19 @@ def test_shift_dt64values_int_fill_deprecated(self):
... | …reserved after a shift operation. Run black and flake8.
- [x] closes #21275
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (omitted, test only)
| https://api.github.com/repos/pandas-dev/pandas/pulls/34572 | 2020-06-04T13:18:07Z | 2020-06-04T19:09:56Z | 2020-06-04T19:09:55Z | 2020-06-04T19:10:00Z |
Export InvalidIndexError | diff --git a/doc/source/reference/general_utility_functions.rst b/doc/source/reference/general_utility_functions.rst
index 993107dc09756..72a84217323ab 100644
--- a/doc/source/reference/general_utility_functions.rst
+++ b/doc/source/reference/general_utility_functions.rst
@@ -38,10 +38,11 @@ Exceptions and warnings
... | - [x] closes #xxxx (there is no such an issue)
- [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/34570 | 2020-06-04T11:52:41Z | 2020-06-14T20:37:30Z | 2020-06-14T20:37:29Z | 2020-06-14T20:37:30Z |
CLN: address FIXMEs in liboffsets | diff --git a/pandas/_libs/tslibs/offsets.pxd b/pandas/_libs/tslibs/offsets.pxd
index 2b8ad97b83917..9a9244db4a565 100644
--- a/pandas/_libs/tslibs/offsets.pxd
+++ b/pandas/_libs/tslibs/offsets.pxd
@@ -5,7 +5,7 @@ cdef bint is_offset_object(object obj)
cdef bint is_tick_object(object obj)
cdef class BaseOffset:
- cd... | https://api.github.com/repos/pandas-dev/pandas/pulls/34566 | 2020-06-04T04:12:53Z | 2020-06-04T19:07:36Z | 2020-06-04T19:07:36Z | 2020-06-04T19:38:38Z | |
BUG: Fix na_rep when using pd.NA in _format_strings (#33950) | diff --git a/.devcontainer.json b/.devcontainer.json
index 315a1ff647012..8bea96aea29c1 100644
--- a/.devcontainer.json
+++ b/.devcontainer.json
@@ -17,7 +17,9 @@
"python.linting.pylintEnabled": false,
"python.linting.mypyEnabled": true,
"python.testing.pytestEnabled": true,
- "python.testing.cwd": "pandas/te... | - [x] closes #33950
- [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/34565 | 2020-06-04T03:39:27Z | 2020-11-04T08:46:52Z | null | 2020-11-04T08:46:52Z |
CLN: circular/runtime imports in tslibs | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 77b60d0c22322..f37705b255298 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -31,8 +31,6 @@ from pandas._libs.tslibs.util cimport (
is_float_object,
)
-from pandas._libs.tslibs.base cimport... | ATM tzconversion depends on timedeltas (for delta_to_nanoseconds), which throws a wrench in the erstwhile dependency hierarchy. By making the one usage of delta_to_nanoseconds a runtime import, we make it possible to remove a bunch of other runtime imports. | https://api.github.com/repos/pandas-dev/pandas/pulls/34563 | 2020-06-04T00:31:13Z | 2020-06-04T17:42:14Z | 2020-06-04T17:42:14Z | 2020-06-04T18:15:40Z |
DOC: Fixed PR06 (wrong parameter type) in pandas.Timestamp | diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx
index 6dc49914ef4b7..f079c5157eeb3 100644
--- a/pandas/_libs/tslibs/nattype.pyx
+++ b/pandas/_libs/tslibs/nattype.pyx
@@ -397,7 +397,7 @@ class NaTType(_NaT):
Parameters
----------
- locale : string, default None (... | https://api.github.com/repos/pandas-dev/pandas/pulls/34561 | 2020-06-03T22:18:19Z | 2020-06-04T07:04:57Z | 2020-06-04T07:04:57Z | 2020-06-04T07:04:57Z | |
BUG: fix resolution_string docstring | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 10c1a56a2eb4e..de02d45337b38 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -907,19 +907,19 @@ cdef class _Timedelta(ABCTimedelta):
Examples
--------
>>> td ... | broken off from #34499 | https://api.github.com/repos/pandas-dev/pandas/pulls/34560 | 2020-06-03T21:15:55Z | 2020-06-03T22:28:48Z | 2020-06-03T22:28:48Z | 2020-06-03T22:32:13Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.