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 |
|---|---|---|---|---|---|---|---|
WEB: Improving the sponsors in the web, and adding CZI | diff --git a/web/pandas/about/sponsors.md b/web/pandas/about/sponsors.md
index dcc6e367e5d64..4473a16cfd590 100644
--- a/web/pandas/about/sponsors.md
+++ b/web/pandas/about/sponsors.md
@@ -11,31 +11,50 @@ health and sustainability of the project. Visit numfocus.org for more informatio
Donations to _pandas_ are managed... | - [X] closes #31040
Things addressed here:
- Added CZI as sponsor
- Adding an arbitrary number of sponsor logos in the home (previously the style only worked for 6)
- Adding a `Become a sponsor` section to the sponsors page
- Moving all sponsors to the web yaml, and standardizing how we present them in the spons... | https://api.github.com/repos/pandas-dev/pandas/pulls/31046 | 2020-01-15T16:30:03Z | 2020-01-17T00:25:01Z | 2020-01-17T00:25:00Z | 2020-01-17T00:25:01Z |
TST: Disallow bare pytest.raises | diff --git a/pandas/tests/arithmetic/test_object.py b/pandas/tests/arithmetic/test_object.py
index 799ef3492e53f..c0d3c9d4977bd 100644
--- a/pandas/tests/arithmetic/test_object.py
+++ b/pandas/tests/arithmetic/test_object.py
@@ -137,7 +137,13 @@ def test_objarr_radd_str_invalid(self, dtype, data, box_with_array):
... | - [ ] ref #30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This pull request is to add appropriate match arguments to bare pytest.raises listed in the comment https://github.com/pandas-dev/pandas/issues/30999#... | https://api.github.com/repos/pandas-dev/pandas/pulls/31045 | 2020-01-15T15:38:54Z | 2020-01-16T09:12:08Z | 2020-01-16T09:12:08Z | 2020-01-16T09:12:20Z |
Backport PR #30905 on branch 1.0.x (BUG: SystemError in df.sum) | diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx
index 6e6b809b9b5a6..ed1df5f4fa595 100644
--- a/pandas/_libs/tslibs/c_timestamp.pyx
+++ b/pandas/_libs/tslibs/c_timestamp.pyx
@@ -57,11 +57,12 @@ def integer_op_not_supported(obj):
# the caller; mypy finds this more palatable.
... | Backport PR #30905: BUG: SystemError in df.sum | https://api.github.com/repos/pandas-dev/pandas/pulls/31044 | 2020-01-15T14:19:29Z | 2020-01-15T15:03:48Z | 2020-01-15T15:03:48Z | 2020-01-15T15:03:48Z |
Backport PR #29712 on branch 1.0.x (CI: Fix clipboard problems) | diff --git a/.travis.yml b/.travis.yml
index c24c6f06de1fc..a23bc8a4e905f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,19 +28,19 @@ matrix:
include:
- env:
- - JOB="3.8" ENV_FILE="ci/deps/travis-38.yaml" PATTERN="(not slow and not network)"
+ - JOB="3.8" ENV_FILE="ci/deps/travis-38.yaml" ... | Backport PR #29712: CI: Fix clipboard problems | https://api.github.com/repos/pandas-dev/pandas/pulls/31042 | 2020-01-15T13:41:20Z | 2020-01-15T14:14:38Z | 2020-01-15T14:14:38Z | 2020-01-15T14:14:38Z |
PERF: improve access of .array | diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py
index 4db3d3010adaf..075096f6cfb54 100644
--- a/pandas/core/arrays/numpy_.py
+++ b/pandas/core/arrays/numpy_.py
@@ -43,7 +43,6 @@ class PandasDtype(ExtensionDtype):
def __init__(self, dtype):
dtype = np.dtype(dtype)
self._dt... | xref https://github.com/pandas-dev/pandas/issues/30790
This improves the performance of `.array` access considerably (and thus of `extract_array`, which eg caused the slowdown in the indexing benchmark). The speed-up depends on the dtype (the numpy dtypes are still quite slow ..).
This touches quite some code, bu... | https://api.github.com/repos/pandas-dev/pandas/pulls/31037 | 2020-01-15T11:17:29Z | 2020-01-24T00:00:16Z | 2020-01-24T00:00:16Z | 2020-01-24T08:33:02Z |
BUG: AssertionError on Series.append(DataFrame) fix #30975 | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 33565bbedade6..2076d83248861 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2462,7 +2462,7 @@ def searchsorted(self, value, side="left", sorter=None):
# -------------------------------------------------------------------
# Co... | - [x] closes #30975
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Series.append() does not throw AssertionError anymore. This fix performs a precheck before proceeding with concatenation. Tests have passed. Whatsn... | https://api.github.com/repos/pandas-dev/pandas/pulls/31036 | 2020-01-15T09:51:29Z | 2020-01-24T03:37:33Z | 2020-01-24T03:37:33Z | 2020-01-24T20:46:20Z |
TST: Split test_offsets.py - Added fixtures for date offsets and business date offsets | diff --git a/pandas/tests/tseries/offsets/conftest.py b/pandas/tests/tseries/offsets/conftest.py
index 2f6868f56c073..46bb5644095f2 100644
--- a/pandas/tests/tseries/offsets/conftest.py
+++ b/pandas/tests/tseries/offsets/conftest.py
@@ -2,6 +2,49 @@
import pandas.tseries.offsets as offsets
+DATE_OFFSETS = {
+ "... | In context of #30194 and #31031
Second part with added (bussiness-)date offsets fixtures
- [ ] closes #27085
- [ ] 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/31034 | 2020-01-15T09:03:21Z | 2020-03-24T16:12:17Z | null | 2020-03-24T16:12:17Z |
DOC: typo a -> an | diff --git a/doc/source/getting_started/dsintro.rst b/doc/source/getting_started/dsintro.rst
index 8bd271815549d..81a2f0ae7d162 100644
--- a/doc/source/getting_started/dsintro.rst
+++ b/doc/source/getting_started/dsintro.rst
@@ -136,7 +136,7 @@ Like a NumPy array, a pandas Series has a :attr:`~Series.dtype`.
This is... | https://api.github.com/repos/pandas-dev/pandas/pulls/31033 | 2020-01-15T08:53:48Z | 2020-01-16T00:15:18Z | 2020-01-16T00:15:18Z | 2020-01-16T00:15:25Z | |
Revert "DEPR: is_copy arg of take (#30615)" | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index c423933d4c438..2fc6b1b3a0ee0 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -703,7 +703,6 @@ Deprecations
- The deprecated internal attributes ``_start``, ``_stop`` and ``_step`` of :class:`RangeInde... | This reverts commit 7796be6e2c548de0be16e6adf08f5fca2ab9b4bc.
See https://github.com/pandas-dev/pandas/issues/27357#issuecomment-571639242 and https://github.com/pandas-dev/pandas/pull/30615#issuecomment-571637550 | https://api.github.com/repos/pandas-dev/pandas/pulls/31032 | 2020-01-15T07:56:55Z | 2020-01-23T14:41:30Z | null | 2020-01-23T14:41:39Z |
TST: Split test_offsets.py - Test_offsets moved to test_date_offsets | diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_date_offsets.py
similarity index 100%
rename from pandas/tests/tseries/offsets/test_offsets.py
rename to pandas/tests/tseries/offsets/test_date_offsets.py
diff --git a/pandas/tests/tseries/offsets/test_fiscal.py b/pandas/tests... | In context of [https://github.com/pandas-dev/pandas/pull/30194](30194)
First part with move test_offsets to test_date_offsets
- [ ] closes #27085
- [ ] 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/31031 | 2020-01-15T07:50:07Z | 2020-02-12T00:49:00Z | null | 2020-02-12T00:49:01Z |
Backport PR #31018 on branch 1.0.x (BUG: Preserve string dtype in extract) | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 0323eafff8dee..4bcf2943e3d6e 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -884,11 +884,12 @@ def _str_extract_noexpand(arr, pat, flags=0):
if arr.empty:
result = DataFrame(columns=columns, dtype=object)
... | Backport PR #31018: BUG: Preserve string dtype in extract | https://api.github.com/repos/pandas-dev/pandas/pulls/31030 | 2020-01-15T02:56:49Z | 2020-01-15T04:11:23Z | 2020-01-15T04:11:23Z | 2020-01-15T04:11:23Z |
Disallow bare pytest.raises | diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py
index edb766a67af89..a5a7333f4b232 100644
--- a/pandas/tests/io/test_stata.py
+++ b/pandas/tests/io/test_stata.py
@@ -1374,7 +1374,7 @@ def test_unsupported_datetype(self):
"dates": dates,
}
)
- with... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
https://github.com/pandas-dev/pandas/issues/30999 | https://api.github.com/repos/pandas-dev/pandas/pulls/31029 | 2020-01-15T01:53:12Z | 2020-02-07T17:08:02Z | null | 2020-02-07T17:08:02Z |
REF: implement Block._split_op_result | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index f74033924f64e..5fe5290fa65f1 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -362,13 +362,17 @@ def delete(self, loc):
self.values = np.delete(self.values, loc, 0)
self.mgr_locs =... | Broken off from a branch working on arithmetic performance for `op(df1, df2)`, two changes here:
- implement _split_op_result, discussed before [citation needed]
- change an unnecessarily-deep copy to non-deep | https://api.github.com/repos/pandas-dev/pandas/pulls/31027 | 2020-01-15T00:59:10Z | 2020-01-15T03:23:13Z | 2020-01-15T03:23:13Z | 2020-01-15T03:38:03Z |
Backport PR #31024 on branch 1.0.x (CI: Travis Remove Unrequired Exclude) | diff --git a/.travis.yml b/.travis.yml
index a11cd469e9b9c..c24c6f06de1fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,9 +25,6 @@ git:
matrix:
fast_finish: true
- exclude:
- # Exclude the default Python 3.5 build
- - python: 3.5
include:
- env:
| Backport PR #31024: CI: Travis Remove Unrequired Exclude | https://api.github.com/repos/pandas-dev/pandas/pulls/31026 | 2020-01-15T00:36:26Z | 2020-01-15T01:38:36Z | 2020-01-15T01:38:36Z | 2020-01-15T01:38:36Z |
ENH: Handle extension arrays in algorithms.diff | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index ec6ad38bbc7cf..ffff720ed1c06 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -727,6 +727,7 @@ Deprecations
- Support for multi-dimensional indexing (e.g. ``index[:, None]``) on a :class:`Index` is dep... | Closes https://github.com/pandas-dev/pandas/issues/30889
Closes https://github.com/pandas-dev/pandas/issues/30967
This still needs a few things
1. Additional tests. It's hard to write thorough tests in `extensions/base`, since we don't know what the dtype will be after the `.diff()` (subtracting doesn't necessar... | https://api.github.com/repos/pandas-dev/pandas/pulls/31025 | 2020-01-15T00:26:03Z | 2020-01-23T19:00:10Z | 2020-01-23T19:00:09Z | 2020-01-23T19:29:21Z |
CI: Travis Remove Unrequired Exclude | diff --git a/.travis.yml b/.travis.yml
index a11cd469e9b9c..c24c6f06de1fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,9 +25,6 @@ git:
matrix:
fast_finish: true
- exclude:
- # Exclude the default Python 3.5 build
- - python: 3.5
include:
- env:
| Follow up from #30540 this exclusion is no longer required.
I checked the build config is the same using
https://config.travis-ci.com/explore | https://api.github.com/repos/pandas-dev/pandas/pulls/31024 | 2020-01-14T23:57:25Z | 2020-01-15T00:36:16Z | 2020-01-15T00:36:16Z | 2020-05-01T22:03:39Z |
REF: DatetimeIndex.get_loc | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 75515949d1855..23ced8987d8ac 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -647,32 +647,24 @@ def get_value(self, series, key):
locs = self.indexer_at_time(key)
retu... | xref #30874 which does similar cleanup for TimedeltaIndex, #31021 for PeriodIndex
Do all parsing/casting/conversion before call to self._engine or super() methods (xref #30948)
Needs test for preventing integers and Timedeltas through incorrectly.
Some of the casting may be simplified pending #30994. | https://api.github.com/repos/pandas-dev/pandas/pulls/31023 | 2020-01-14T22:33:59Z | 2020-01-15T03:10:24Z | 2020-01-15T03:10:24Z | 2020-01-15T17:06:33Z |
doc: update copyright year | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 481c03ab8f388..c6786a03f0e44 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -137,7 +137,7 @@
# General information about the project.
project = "pandas"
-copyright = "2008-2014, the pandas development team"
+copyright = "2008-2020, the pandas d... | https://api.github.com/repos/pandas-dev/pandas/pulls/31022 | 2020-01-14T22:32:47Z | 2020-01-15T03:04:47Z | 2020-01-15T03:04:47Z | 2020-01-15T03:05:05Z | |
REF: PeriodIndex.get_loc | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index ce6d12d61c521..07e8534b84c50 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -498,7 +498,7 @@ cdef class TimedeltaEngine(DatetimeEngine):
cdef class PeriodEngine(Int64Engine):
cdef _get_index_values(self):
- return sup... | xref #30874 which does similar cleanup for TimedeltaIndex.
Do all parsing/casting/conversion before call to self._engine or super() methods (xref #30948)
Fix+test integers incorrectly getting through.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31021 | 2020-01-14T22:32:30Z | 2020-01-15T03:08:51Z | 2020-01-15T03:08:51Z | 2020-01-15T18:40:32Z |
CLN: remove checks for inferred_dtype==unicode | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 1fdc5d478aaf6..018551224c582 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -613,8 +613,8 @@ def _check_types(l, r, obj="Index"):
assert_attr_equal("dtype", l, r, obj=obj)
# allow string-like to have different inferr... | https://api.github.com/repos/pandas-dev/pandas/pulls/31020 | 2020-01-14T22:14:59Z | 2020-01-15T02:58:07Z | 2020-01-15T02:58:07Z | 2020-01-15T03:22:54Z | |
Backport PR #31015 on branch 1.0.x (DOC: Fixed documented value of `pd.NA ** 0` (#31005)) | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index df9949e8ac261..0f55980b3d015 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -825,13 +825,10 @@ For example, ``pd.NA`` propagates in arithmetic operations, similarly to
... | Backport PR #31015: DOC: Fixed documented value of `pd.NA ** 0` (#31005) | https://api.github.com/repos/pandas-dev/pandas/pulls/31019 | 2020-01-14T21:33:28Z | 2020-01-14T22:16:33Z | 2020-01-14T22:16:33Z | 2020-01-14T22:16:33Z |
BUG: Preserve string dtype in extract | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 0323eafff8dee..4bcf2943e3d6e 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -884,11 +884,12 @@ def _str_extract_noexpand(arr, pat, flags=0):
if arr.empty:
result = DataFrame(columns=columns, dtype=object)
... | specifically with multiple capture groups and expand=False
Closes https://github.com/pandas-dev/pandas/issues/30969 | https://api.github.com/repos/pandas-dev/pandas/pulls/31018 | 2020-01-14T21:08:01Z | 2020-01-15T02:56:37Z | 2020-01-15T02:56:36Z | 2020-01-15T02:56:40Z |
REG: restore format_type attr | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 3e4673c890bef..c1e12887b0150 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -2472,6 +2472,7 @@ class Fixed:
"""
pandas_kind: str
+ format_type: str = "fixed" # GH#30962 needed by dask
obj_type: Type[Union[DataFr... | - [x] closes #30962
cc @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/31017 | 2020-01-14T20:43:43Z | 2020-01-22T14:16:47Z | 2020-01-22T14:16:46Z | 2020-01-22T15:47:37Z |
DOC: Fixed documented value of `pd.NA ** 0` (#31005) | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index df9949e8ac261..0f55980b3d015 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -825,13 +825,10 @@ For example, ``pd.NA`` propagates in arithmetic operations, similarly to
... | (cherry picked from commit da04c9a8fe6ddbc7028e8721c57d3e62d1da11e3)
Closes https://github.com/pandas-dev/pandas/issues/31003 | https://api.github.com/repos/pandas-dev/pandas/pulls/31015 | 2020-01-14T20:38:39Z | 2020-01-14T21:33:15Z | 2020-01-14T21:33:15Z | 2020-01-14T21:33:15Z |
Revert "DOC: removed wrong value of `pd.NA ** 0`" | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 0f55980b3d015..df9949e8ac261 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -825,10 +825,13 @@ For example, ``pd.NA`` propagates in arithmetic operations, similarly to
... | Reverts pandas-dev/pandas#31005
Made to the wrong branch. | https://api.github.com/repos/pandas-dev/pandas/pulls/31014 | 2020-01-14T20:36:52Z | 2020-01-14T20:39:21Z | 2020-01-14T20:39:21Z | 2020-01-14T20:39:25Z |
BUG: pivot_table with multi-index columns only fails | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 14f82c2e71519..721bcb0758992 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -140,7 +140,7 @@ Reshaping
^^^^^^^^^
-
--
+- Bug in :meth:`DataFrame.pivot_table` when only MultiIndexed columns is set ... | - [x] closes #17038
- [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/31013 | 2020-01-14T20:34:53Z | 2020-01-15T03:19:24Z | 2020-01-15T03:19:23Z | 2020-01-15T03:19:30Z |
Backport PR #31011 on branch 1.0.x (DOC: Changed links to sphinx documentation in contributing.rst file) | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 93c65ba7358c9..c7a984c66d640 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -354,9 +354,9 @@ About the *pandas* documentation
--------------------------------
T... | Backport PR #31011: DOC: Changed links to sphinx documentation in contributing.rst file | https://api.github.com/repos/pandas-dev/pandas/pulls/31012 | 2020-01-14T20:21:03Z | 2020-01-14T21:00:48Z | 2020-01-14T21:00:48Z | 2020-01-14T21:00:49Z |
DOC: Changed links to sphinx documentation in contributing.rst file | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 2dc5ed07544d1..4fdcb93745094 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -354,9 +354,9 @@ About the *pandas* documentation
--------------------------------
T... | GH31010: fixed this issue where inactive links for sphinx documentation were replaced with active links in the contributing documentation.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31011 | 2020-01-14T18:12:43Z | 2020-01-14T20:20:51Z | 2020-01-14T20:20:51Z | 2020-01-14T20:21:05Z |
Backport PR #30959 on branch 1.0.x (ENH: Add Stata 119 writer) | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 0879189a822f8..c423933d4c438 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -223,7 +223,7 @@ Other enhancements
- :meth:`DataFrame.sort_values` and :meth:`Series.sort_values` have gained ``ignore_ind... | Backport PR #30959: ENH: Add Stata 119 writer | https://api.github.com/repos/pandas-dev/pandas/pulls/31009 | 2020-01-14T16:02:44Z | 2020-01-14T16:33:50Z | 2020-01-14T16:33:50Z | 2020-01-14T16:33:50Z |
DOC: Moved PANDAS_TESTING_MODE tip to .travis.yml (#30694) | diff --git a/.travis.yml b/.travis.yml
index a23bc8a4e905f..2c8533d02ddc1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,10 +7,10 @@ python: 3.7
# travis cache --delete inside the project directory from the travis command line client
# The cache directories will be deleted if anything in ci/ changes in a commit
ca... | Added comments for travis.yml for PANDAS_TESTING_MODE from tips and tricks section of wiki
- [X] xref #30964
- [ ] 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/31008 | 2020-01-14T15:59:38Z | 2020-01-18T16:41:11Z | 2020-01-18T16:41:11Z | 2020-01-18T16:57:52Z |
DOC: removed wrong value of `pd.NA ** 0` | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index df9949e8ac261..0f55980b3d015 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -825,13 +825,10 @@ For example, ``pd.NA`` propagates in arithmetic operations, similarly to
... | - [x] closes #31003
- [ ] 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/31005 | 2020-01-14T14:20:06Z | 2020-01-14T20:28:50Z | 2020-01-14T20:28:50Z | 2020-02-03T10:32:41Z |
docs: removed wrong value in `pd.NA ** 0` | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 2fc2f1fb6ee8d..a295038b5a0bd 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -127,3 +127,29 @@ For example:
value = str
f"Unknown recived type, got: '{type(value... | `pd.NA ** 0` returns 1. The docs fixed to auto-calculate these values.
- [x] closes #31003
- [ ] 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/31004 | 2020-01-14T14:07:18Z | 2020-01-14T14:14:45Z | null | 2020-01-14T14:14:45Z |
TST: bare pytest raises | diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py
index 04fab93b71c4a..ff435f8386a85 100644
--- a/pandas/tests/window/test_rolling.py
+++ b/pandas/tests/window/test_rolling.py
@@ -32,23 +32,34 @@ def test_constructor(self, which):
c = o.rolling
# valid
+ c... | - [x] ref #30999
- [ ] 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/31001 | 2020-01-14T13:24:19Z | 2020-01-14T20:18:42Z | 2020-01-14T20:18:42Z | 2020-01-15T21:24:54Z |
Backport PR #30980 on branch 1.0.x (API: Disallow NaN in StringArray constructor) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 719db5c03f07f..acd74591134bc 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1624,6 +1624,10 @@ cdef class StringValidator(Validator):
cdef inline bint is_array_typed(self) except -1:
return issubclass(self.dtype.type, np.str_... | Backport PR #30980: API: Disallow NaN in StringArray constructor | https://api.github.com/repos/pandas-dev/pandas/pulls/31000 | 2020-01-14T12:40:21Z | 2020-01-14T13:24:41Z | 2020-01-14T13:24:41Z | 2020-01-14T13:24:42Z |
TST: insert 'match' to bare pytest raises in pandas/tests/internals/ | diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py
index 15b1434f8629f..a068d8f346cb4 100644
--- a/pandas/tests/internals/test_internals.py
+++ b/pandas/tests/internals/test_internals.py
@@ -297,7 +297,8 @@ def test_delete(self):
assert (newb.values[1] == 1).all()
... | - [x] ref #30999
- [ ] 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/30998 | 2020-01-14T11:40:54Z | 2020-01-20T16:30:43Z | 2020-01-20T16:30:43Z | 2020-01-24T20:13:08Z |
TST: Insert 'match' to bare pytest raises | diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py
index a8a0fcea7182c..186c735a0bff9 100644
--- a/pandas/tests/test_common.py
+++ b/pandas/tests/test_common.py
@@ -60,10 +60,11 @@ def test_random_state():
assert com.random_state() is np.random
# Error for floats or strings
- with pyt... | - [x] ref #30999
- [ ] 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/30997 | 2020-01-14T11:07:52Z | 2020-01-14T20:31:48Z | 2020-01-14T20:31:48Z | 2020-01-15T21:26:05Z |
STY: Whitespaces placed at the beginning instead at the end of a line | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 2806635211459..9d7359dd9c614 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -2404,8 +2404,8 @@ def isin(self, values):
if not is_list_like(values):
values_type = type... | - [ ] closes #xxxx
- [ ] 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/30996 | 2020-01-14T10:20:39Z | 2020-01-14T11:07:25Z | 2020-01-14T11:07:25Z | 2020-01-14T11:09:16Z |
BUG: Fix Timestamp constructor changes value on ambiguous DST | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 721bcb0758992..b5a7b19f160a4 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -59,6 +59,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+- Bug in :class:`Timestamp` where constructing :class:`Timestamp` ... | - [X] closes #24329
- [X] 1 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/30995 | 2020-01-14T07:04:46Z | 2020-01-15T16:32:37Z | 2020-01-15T16:32:37Z | 2020-01-16T12:40:16Z |
CLN: de-duplicate _getitem_scalar | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index cc11879142ffe..10e71e72dd885 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1743,12 +1743,14 @@ def _get_slice_axis(self, slice_obj: slice, axis: int):
class _LocationIndexer(_NDFrameIndexer):
+ _takeable: bool = False
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30992 | 2020-01-14T00:08:57Z | 2020-01-14T04:46:11Z | 2020-01-14T04:46:11Z | 2020-01-14T04:47:50Z | |
STY: concat strings | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 60cfecd5804ac..3547a33ea357b 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -110,8 +110,7 @@ def _import_lzma():
return lzma
except ImportError:
msg = (
- "Could not import the lzma modu... | - [ ] closes #xxxx
- [ ] 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/30991 | 2020-01-14T00:03:03Z | 2020-01-14T00:47:47Z | 2020-01-14T00:47:47Z | 2020-01-14T00:51:08Z |
Added clang inline helper | diff --git a/pandas/_libs/src/inline_helper.h b/pandas/_libs/src/inline_helper.h
index e203a05d2eb56..40fd45762ffe4 100644
--- a/pandas/_libs/src/inline_helper.h
+++ b/pandas/_libs/src/inline_helper.h
@@ -11,7 +11,9 @@ The full license is in the LICENSE file, distributed with this software.
#define PANDAS__LIBS_SRC_IN... | gcc on macOS I think executes clang more often than not, and it appears we didn't have a inline helper defined for that. This is ported from `CYTHON_INLINE` which essentially does the same in cythonized files, save the static declaration
This might add a bit of build time to macOS (I think partially explains why it'... | https://api.github.com/repos/pandas-dev/pandas/pulls/30990 | 2020-01-13T23:48:43Z | 2020-02-16T18:41:24Z | 2020-02-16T18:41:24Z | 2020-02-16T18:41:27Z |
Update _json.py | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 12ce5e4a62d24..9bccb6f669b21 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -675,8 +675,12 @@ def _preprocess_data(self, data):
if hasattr(data, "read") and not self.chunksize:
data = data.read()
i... | Without this change, use of the chunksize argument in read_json causes the following error:
`TypeError: initial_value must be str or None, not bytes`
- [x] closes #28906
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew e... | https://api.github.com/repos/pandas-dev/pandas/pulls/30989 | 2020-01-13T22:53:55Z | 2020-01-14T01:26:38Z | null | 2020-01-14T09:40:54Z |
FIX: Added small corrections to the test for interpolate limit_area | diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py
index 7b6d9210ed3d9..d8eeefcbdce7b 100644
--- a/pandas/tests/series/test_missing.py
+++ b/pandas/tests/series/test_missing.py
@@ -1347,6 +1347,7 @@ def test_interp_limit_area(self):
[np.nan, np.nan, 3.0, 4.0, np.nan, np.... | - [ ] closes # nothing to close here
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry # not required for this minor fix
Some `tm.assert_series_equal()` have been forgotten in https://github.com/pandas-dev/pandas/blob/... | https://api.github.com/repos/pandas-dev/pandas/pulls/30987 | 2020-01-13T21:57:44Z | 2020-01-13T22:30:25Z | 2020-01-13T22:30:25Z | 2020-01-13T22:54:26Z |
DOC: remove Table of Contents on the contributing page | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 2dc5ed07544d1..977f590757518 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -6,9 +6,6 @@
Contributing to pandas
**********************
-.. contents:: Table of c... | Currently, the contributing page (https://pandas.pydata.org/pandas-docs/version/1.0.0/development/contributing.html) starts with "Table of Contents".
This PR removes that, because 1) we do that on none of the other pages in our docs and 2) with the new theme, there is a page table of contents in the right sidebar as ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30985 | 2020-01-13T21:50:29Z | 2020-03-07T20:03:52Z | null | 2020-03-07T20:03:53Z |
Backport PR #30960 on branch 1.0.x ([BUG] -1 to the power of pd.NA was returning -1) | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index abbb6feef6056..df9949e8ac261 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -831,7 +831,6 @@ Operation Result
================ ======
``pd.NA ** 0`` 0
``1 *... | Backport PR #30960: [BUG] -1 to the power of pd.NA was returning -1 | https://api.github.com/repos/pandas-dev/pandas/pulls/30983 | 2020-01-13T21:05:06Z | 2020-01-13T21:40:20Z | 2020-01-13T21:40:20Z | 2020-01-13T21:40:20Z |
PERF: masked ops for reductions (sum) | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 57c625ced8a43..d78419c12ce0d 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -223,27 +223,27 @@ def time_series_datetimeindex_repr(self):
class All:
- params = [... | The current `nanops` has quite some complexity that is not needed for the masked arrays. This is a small proof of concept to have separate implementations for our nullable masked arrays, taking the sum case (and still ignoring the additional kwargs).
This is also quite a bit faster. On master:
```
In [1]: a = np... | https://api.github.com/repos/pandas-dev/pandas/pulls/30982 | 2020-01-13T20:48:20Z | 2020-03-27T16:08:26Z | 2020-03-27T16:08:26Z | 2020-03-30T07:07:44Z |
Backport PR #30973 on branch 1.0.x (Compat for util.testing import) | diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py
index 8b897524cb053..406d5f055797d 100644
--- a/pandas/tests/api/test_api.py
+++ b/pandas/tests/api/test_api.py
@@ -1,6 +1,9 @@
+import subprocess
import sys
from typing import List
+import pytest
+
import pandas as pd
from pandas import api... | Backport PR #30973: Compat for util.testing import | https://api.github.com/repos/pandas-dev/pandas/pulls/30981 | 2020-01-13T20:45:53Z | 2020-01-13T21:40:39Z | 2020-01-13T21:40:39Z | 2020-01-13T21:40:40Z |
API: Disallow NaN in StringArray constructor | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 719db5c03f07f..acd74591134bc 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1624,6 +1624,10 @@ cdef class StringValidator(Validator):
cdef inline bint is_array_typed(self) except -1:
return issubclass(self.dtype.type, np.str_... | Closes https://github.com/pandas-dev/pandas/issues/30966
~There were a few ways we could have done this. I opted for this way since it still only requires a single pass over the data to validate the values. Other ways like checking for `np.isnan` after checking `is_string_array` would have required a second pass.~
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30980 | 2020-01-13T19:21:36Z | 2020-01-14T12:39:49Z | 2020-01-14T12:39:48Z | 2020-01-14T12:39:51Z |
STY: concat strings | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 491bcb21f245d..d526531b159b2 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -35,8 +35,7 @@
raise ImportError(
f"C extension: {module} not built. If you want to import "
"pandas from the source directory, you may need to run "... | - [ ] closes #xxxx
- [ ] 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/30979 | 2020-01-13T19:12:37Z | 2020-01-13T22:01:39Z | 2020-01-13T22:01:39Z | 2020-01-13T22:05:23Z |
BUG: pd.crosstab(s1, s2) handle column index incorrectly when both series have tuple names | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 721bcb0758992..6dfee1a0542aa 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -141,6 +141,8 @@ Reshaping
-
- Bug in :meth:`DataFrame.pivot_table` when only MultiIndexed columns is set (:issue:`17038... | - [ ] closes #18321
- [ ] 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/30978 | 2020-01-13T19:02:05Z | 2020-01-17T23:57:04Z | 2020-01-17T23:57:04Z | 2020-01-17T23:57:10Z |
JSON Date Handling 1.0 Regressions | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index c413a16f8d5f0..c5ac279ed3243 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -456,8 +456,8 @@ static char *PyDateTimeToIso(PyDateTime_Date *obj, NPY_DATETIME... | closes #30904
Came across these adding parametrized tests in #30903 which this pulls some elements from but which will also ultimately refactor to avoid duplication; just getting this to work as is
To be clear the regressions were:
1. ISO dates with datetime.date objects was broken
```python
>>> import pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/30977 | 2020-01-13T18:13:51Z | 2020-01-18T15:34:13Z | 2020-01-18T15:34:13Z | 2020-02-06T17:06:46Z |
BUG: ensure_datetime64ns with bigendian array | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index c3ee72f6442fc..14f82c2e71519 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -82,7 +82,7 @@ Numeric
Conversion
^^^^^^^^^^
-
+- Bug in :class:`Series` construction from NumPy array with big-endian `... | - [x] closes #29684
- [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/30976 | 2020-01-13T17:47:21Z | 2020-01-14T12:52:26Z | 2020-01-14T12:52:26Z | 2020-01-14T16:14:06Z |
Compat for util.testing import | diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py
index 8b897524cb053..406d5f055797d 100644
--- a/pandas/tests/api/test_api.py
+++ b/pandas/tests/api/test_api.py
@@ -1,6 +1,9 @@
+import subprocess
import sys
from typing import List
+import pytest
+
import pandas as pd
from pandas import api... | Closes #30869 | https://api.github.com/repos/pandas-dev/pandas/pulls/30973 | 2020-01-13T17:03:46Z | 2020-01-13T20:45:43Z | 2020-01-13T20:45:43Z | 2020-01-14T04:17:39Z |
DOC: whatsnew for 1.1 | diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template
index 10705787dfedf..4ced92cbda81a 100644
--- a/doc/source/index.rst.template
+++ b/doc/source/index.rst.template
@@ -39,7 +39,7 @@ See the :ref:`overview` for more detail about what's in the library.
:hidden:
{% endif %}
{% if not single... | https://api.github.com/repos/pandas-dev/pandas/pulls/30972 | 2020-01-13T16:42:44Z | 2020-01-13T19:50:08Z | 2020-01-13T19:50:08Z | 2023-04-12T20:15:51Z | |
BUG: reductions for nullable dtypes should return pd.NA for skipna=False | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index c423933d4c438..4d55ee1c1cfc2 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -483,6 +483,25 @@ Use :meth:`arrays.IntegerArray.to_numpy` with an explicit ``na_value`` instead.
a.to_numpy(dtype="fl... | Closes https://github.com/pandas-dev/pandas/issues/30958
Just realized that I should probably check boolean dtype as well | https://api.github.com/repos/pandas-dev/pandas/pulls/30971 | 2020-01-13T16:25:27Z | 2020-01-18T15:35:40Z | 2020-01-18T15:35:40Z | 2020-01-19T20:07:37Z |
default set to openpyxl | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 04015a08bce2f..537ac04882bdc 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -780,7 +780,7 @@ def close(self):
class ExcelFile:
"""
Class for parsing tabular excel sheets into DataFrame objects.
- Uses xlrd. See... | - [x] closes #28546
- [ ] tests added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/30970 | 2020-01-13T16:07:16Z | 2020-01-13T16:26:29Z | null | 2020-01-13T16:26:29Z |
Backport PR #30900 on branch 1.0.x (REGR: Fixed hash_key=None for object values) | diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py
index 43655fa3ea913..3366f10b92604 100644
--- a/pandas/core/util/hashing.py
+++ b/pandas/core/util/hashing.py
@@ -2,6 +2,7 @@
data hash pandas / numpy objects
"""
import itertools
+from typing import Optional
import numpy as np
@@ -58,7 +59,... | Backport PR #30900: REGR: Fixed hash_key=None for object values | https://api.github.com/repos/pandas-dev/pandas/pulls/30968 | 2020-01-13T15:22:14Z | 2020-01-13T16:32:34Z | 2020-01-13T16:32:34Z | 2020-01-13T16:32:34Z |
Backport PR #30961 on branch 1.0.x (DOC: Move couple of deprecations whatsnew to correct section) | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index afbc113e98957..0879189a822f8 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -218,7 +218,6 @@ Other enhancements
now preserve those data types with pyarrow >= 0.16.0 (:issue:`20612`, :issue:`28371`)... | Backport PR #30961: DOC: Move couple of deprecations whatsnew to correct section | https://api.github.com/repos/pandas-dev/pandas/pulls/30963 | 2020-01-13T13:08:48Z | 2020-01-13T14:19:59Z | 2020-01-13T14:19:59Z | 2020-01-13T14:19:59Z |
DOC: Move couple of deprecations whatsnew to correct section | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index afbc113e98957..0879189a822f8 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -218,7 +218,6 @@ Other enhancements
now preserve those data types with pyarrow >= 0.16.0 (:issue:`20612`, :issue:`28371`)... | - [x] closes #30927
- [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/30961 | 2020-01-13T12:18:14Z | 2020-01-13T13:08:37Z | 2020-01-13T13:08:37Z | 2020-01-13T13:08:52Z |
[BUG] -1 to the power of pd.NA was returning -1 | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index abbb6feef6056..df9949e8ac261 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -831,7 +831,6 @@ Operation Result
================ ======
``pd.NA ** 0`` 0
``1 *... | - [x] closes #30956
- [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/30960 | 2020-01-13T11:54:51Z | 2020-01-13T19:03:26Z | 2020-01-13T19:03:26Z | 2020-02-25T17:13:10Z |
ENH: Add Stata 119 writer | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 0879189a822f8..c423933d4c438 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -223,7 +223,7 @@ Other enhancements
- :meth:`DataFrame.sort_values` and :meth:`Series.sort_values` have gained ``ignore_ind... | Add support for writing Stata 119 format files
Rename new writer to StataWriterUTF8 since no longer version-specific
Improve exception message for unsupported files
Fix small issues in to_stata missed in 118
- [X] xref #23573 (already closed)
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30959 | 2020-01-13T11:13:48Z | 2020-01-14T16:02:32Z | 2020-01-14T16:02:32Z | 2020-07-28T14:41:36Z |
Backport PR #30952 on branch 1.0.x (CI: numpydev changed double to single quote) | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index ce925891f62c0..097e83d93ee71 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -668,7 +668,8 @@ def test__get_dtype(input_param, result):
(None, "Cannot deduce dtype from null ob... | Backport PR #30952: CI: numpydev changed double to single quote | https://api.github.com/repos/pandas-dev/pandas/pulls/30957 | 2020-01-13T09:48:48Z | 2020-01-13T10:55:59Z | 2020-01-13T10:55:59Z | 2020-01-13T10:56:00Z |
Backport PR #30926 on branch 1.0.x (DOC: Fix whatsnew contributors section) | diff --git a/doc/source/whatsnew/v0.25.3.rst b/doc/source/whatsnew/v0.25.3.rst
index f73a3f956f42e..f7f54198a0f82 100644
--- a/doc/source/whatsnew/v0.25.3.rst
+++ b/doc/source/whatsnew/v0.25.3.rst
@@ -19,4 +19,4 @@ Groupby/resample/rolling
Contributors
~~~~~~~~~~~~
-.. contributors:: v0.25.2..HEAD
+.. contributors:... | Backport PR #30926: DOC: Fix whatsnew contributors section | https://api.github.com/repos/pandas-dev/pandas/pulls/30955 | 2020-01-13T08:31:45Z | 2020-01-13T09:48:16Z | 2020-01-13T09:48:16Z | 2020-01-13T09:48:16Z |
CI: numpydev changed double to single quote | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index ce925891f62c0..097e83d93ee71 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -668,7 +668,8 @@ def test__get_dtype(input_param, result):
(None, "Cannot deduce dtype from null ob... | https://api.github.com/repos/pandas-dev/pandas/pulls/30952 | 2020-01-13T03:27:44Z | 2020-01-13T09:48:38Z | 2020-01-13T09:48:38Z | 2020-01-13T15:41:19Z | |
CLN: leftover ix checks | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 03e86758b64ed..04ce424edbee4 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -177,7 +177,7 @@ class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin):
]
_internal_names_set: Set[str] = set(_internal_names)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30951 | 2020-01-13T02:39:44Z | 2020-01-13T11:00:12Z | 2020-01-13T11:00:12Z | 2020-01-13T15:41:43Z | |
REF: handle searchsorted casting within DatetimeLikeArray | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index b5a7b19f160a4..b6121cfabba7e 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -60,7 +60,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :class:`Timestamp` where constructing :class:`Timestamp` fr... | https://api.github.com/repos/pandas-dev/pandas/pulls/30950 | 2020-01-13T00:26:47Z | 2020-01-18T16:03:17Z | 2020-01-18T16:03:17Z | 2020-01-20T00:26:29Z | |
DOC: Clarified documentation for convert_dates and use_default_dates params | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 12ce5e4a62d24..ae6ae70cbac72 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -439,8 +439,17 @@ def read_json(
Not applicable for ``orient='table'``.
convert_dates : bool or list of str, default True
- Li... | This hopefully clarifies the documentation for the behaviour of the convert_dates and keep_default_dates parameters on the read_json function.
I recently had to use this function and found the existing docs a bit confusing. I actually created a truth table (below), but this is probably a bit much for the docs.
|... | https://api.github.com/repos/pandas-dev/pandas/pulls/30949 | 2020-01-12T23:03:40Z | 2020-01-14T23:25:00Z | 2020-01-14T23:25:00Z | 2020-01-14T23:25:06Z |
REF: do all casting _before_ call to DatetimeEngine.get_loc | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 28d269a9a809e..74815f64360b9 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -17,8 +17,8 @@ cnp.import_array()
cimport pandas._libs.util as util
-from pandas._libs.tslibs.conversion cimport maybe_datetimelike_to_i8
from pandas.... | Fixes: incorrectly letting integers or mismatched types through.
Removes: maybe_datetimelike_to_i8, along with the recently-removed _to_M8 and he hopefully soon-removed pydt_to_i8 (xred #30854) i think we'll be rid of our kludgy datetime casting functions.
Performance neutral:
```
before afte... | https://api.github.com/repos/pandas-dev/pandas/pulls/30948 | 2020-01-12T21:35:59Z | 2020-01-15T03:14:41Z | 2020-01-15T03:14:40Z | 2020-01-15T16:51:32Z |
TYP: NDFrame.resample | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 676b78573399c..594b8a00a8672 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -102,7 +102,6 @@
from pandas.core.arrays.datetimelike import DatetimeLikeArrayMixin as DatetimeLikeArray
from pandas.core.arrays.sparse import SparseFrameAccessor... | This PR types up the method ``NDFrame.resample``.
Also renames the func ``resample`` to ``get_resampler`` and import the groupby types used for type checking in frame.py/series.py undir the ``if TYPE_CHECKING:`` clause. | https://api.github.com/repos/pandas-dev/pandas/pulls/30947 | 2020-01-12T20:40:49Z | 2020-01-13T19:28:23Z | 2020-01-13T19:28:23Z | 2020-01-13T20:22:55Z |
STY: spaces in wrong place (DO NOT MERGE) | diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py
index 97956489e7da6..c217796f5cce0 100644
--- a/pandas/tests/io/formats/test_format.py
+++ b/pandas/tests/io/formats/test_format.py
@@ -541,7 +541,7 @@ def test_to_string_truncate(self):
df.set_index(["a", "b", "c"])
... | - [ ] closes #xxxx
- [ ] 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/30946 | 2020-01-12T18:16:55Z | 2020-01-13T14:16:19Z | null | 2020-01-13T14:16:51Z |
BUG: Use self._constructor_sliced in df._reduce to respect subclassed… | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index c8e811ce82b1f..ce57dc2e74e11 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -173,7 +173,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
--
+- Bug effecting all numeric and boolean reduction meth... | … types. (GH25596)
- [x] closes #25596
- [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/30945 | 2020-01-12T18:13:58Z | 2020-01-24T01:07:44Z | 2020-01-24T01:07:44Z | 2020-01-24T13:15:42Z |
BUG: Fix MutliIndexed unstack failures at tuple names | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index b7adf7bf0d80d..e349745d51e83 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -141,6 +141,7 @@ Reshaping
-
- Bug in :meth:`DataFrame.pivot_table` when only MultiIndexed columns is set (:issue:`17038... | - [x] closes #19966
- [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/30943 | 2020-01-12T16:47:26Z | 2020-01-20T23:15:14Z | 2020-01-20T23:15:14Z | 2020-01-20T23:15:20Z |
STY: concat strings that should not be seperated | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 7a2fc9dc7845a..dd1f38ce3a842 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -914,8 +914,7 @@ def rank_1d(rank_t[:] in_arr, ties_method='average',
ranks[argsorted[j]] = i + 1
elif tiebreak ==... | - [ ] closes #xxxx
- [ ] 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/30942 | 2020-01-12T15:46:22Z | 2020-01-13T14:49:33Z | 2020-01-13T14:49:33Z | 2020-01-13T14:52:32Z |
replace old formatting syntax in shared_docs and Appender | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 8b49c2186dde0..697d759206ff9 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -298,11 +298,11 @@ def __arrow_array__(self, type=None):
if self.freqstr != type.freq:
raise T... | - [X] sample of #30933
- [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/30941 | 2020-01-12T13:55:10Z | 2020-01-12T14:28:52Z | null | 2020-01-12T14:29:39Z |
STY: wrong placed space in strings | diff --git a/pandas/tests/frame/test_missing.py b/pandas/tests/frame/test_missing.py
index 2e6759cb1a238..ae0516dd29a1f 100644
--- a/pandas/tests/frame/test_missing.py
+++ b/pandas/tests/frame/test_missing.py
@@ -670,8 +670,8 @@ def test_fillna_invalid_value(self, float_frame):
float_frame.fillna((1, 2))
... | - [ ] closes #xxxx
- [ ] 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/30940 | 2020-01-12T10:22:39Z | 2020-01-12T17:04:19Z | 2020-01-12T17:04:19Z | 2020-01-12T17:15:57Z |
DOC: Fix SS03 docstring error | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index d7cabbabddf95..d7c508c890a46 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -920,7 +920,7 @@ def freq(self, value):
@property
def freqstr(self):
"""
- Return ... | Fixes SS03 errors.
```
None:None:SS03:pandas.DatetimeIndex.freqstr:Summary does not end with a period
None:None:SS03:pandas.PeriodIndex.freqstr:Summary does not end with a period
pandas/pandas/core/window/indexers.py:34:SS03:pandas.api.indexers.BaseIndexer:Summary does not end with a period
```
Related to #2... | https://api.github.com/repos/pandas-dev/pandas/pulls/30939 | 2020-01-12T09:02:20Z | 2020-01-12T10:07:22Z | 2020-01-12T10:07:22Z | 2020-01-12T10:07:30Z |
ENH: Add engine keyword to expanding.apply to utilize Numba | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index cd1a31d4eaf34..7886b63e9983e 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -43,6 +43,7 @@
"matplotlib": [],
"sqlalchemy": [],
"scipy": [],
+ "numba": [],
"numexpr": [],
"pytab... | - [x] closes #30936
- [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/30937 | 2020-01-12T04:36:31Z | 2020-01-16T21:15:39Z | 2020-01-16T21:15:38Z | 2020-01-16T21:15:52Z |
CLN: remove unused NDFrame methods | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 594b8a00a8672..069dc14086e32 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4930,19 +4930,52 @@ def sort_values(
else:
return self._constructor(new_data).__finalize__(self)
- @Substitution(**_shared_doc_kwargs)
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/30935 | 2020-01-12T01:31:18Z | 2020-01-15T03:00:00Z | 2020-01-15T03:00:00Z | 2020-01-15T16:41:09Z | |
CLN: remove no-op from indexing | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index ea59a6a49e649..cc11879142ffe 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1340,9 +1340,6 @@ def _multi_take(self, tup: Tuple):
}
return o._reindex_with_indexers(d, copy=True, allow_dups=True)
- def _con... | https://api.github.com/repos/pandas-dev/pandas/pulls/30934 | 2020-01-12T01:14:44Z | 2020-01-13T17:22:29Z | 2020-01-13T17:22:29Z | 2020-01-13T17:26:26Z | |
CLN: remove unnecessary _date_check_type | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index ac8172146d351..28d269a9a809e 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -447,7 +447,6 @@ cdef class DatetimeEngine(Int64Engine):
conv = maybe_datetimelike_to_i8(val)
loc = values.searchsorted(co... | The check doesn't do anything, and we still a raise `KeyError` anyways | https://api.github.com/repos/pandas-dev/pandas/pulls/30932 | 2020-01-11T22:23:43Z | 2020-01-11T23:53:35Z | 2020-01-11T23:53:35Z | 2020-01-12T00:06:57Z |
PERF: RangeIndex.get_loc | diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py
index b4cc71a25792f..5c79942efb908 100644
--- a/pandas/core/indexes/range.py
+++ b/pandas/core/indexes/range.py
@@ -14,6 +14,7 @@
from pandas.core.dtypes.common import (
ensure_platform_int,
ensure_python_int,
+ is_float,
is_int... | Small simplification gives a small speedup
```
In [2]: rng = pd.Index(range(10**5))
In [3]: %timeit rng.get_loc(5.0)
6.38 µs ± 381 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) <-- master
1.15 µs ± 40.9 ns per loop (mean ± std. dev. of 7 runs, 100... | https://api.github.com/repos/pandas-dev/pandas/pulls/30930 | 2020-01-11T21:47:01Z | 2020-01-15T04:22:18Z | 2020-01-15T04:22:17Z | 2020-01-15T16:40:21Z |
ENH: Implement convert_dtypes | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 01aa6c60e3b2f..dd2af6e2799c3 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -43,6 +43,7 @@ Conversion
:toctree: api/
DataFrame.astype
+ DataFrame.convert_dtypes
DataFrame.infer_objects... | - [x] xref #29752
- [x] tests added / passed
- pandas/tests/series/test_dtypes.py:test_convert_dtypes
- pandas/tests/frame/test_dtypes.py:test_convert_dtypes
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This implements `DataFrame.... | https://api.github.com/repos/pandas-dev/pandas/pulls/30929 | 2020-01-11T21:03:28Z | 2020-01-24T03:24:16Z | 2020-01-24T03:24:16Z | 2020-01-28T20:56:46Z |
ENH: Allow multi values for index and columns in df.pivot | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index cf2f507dc019c..4c6db1cf22245 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -192,8 +192,10 @@ Reshaping
- Bug in :meth:`DataFrame.pivot_table` when ``margin`` is ``True`` and only ``column`` is defin... | - [x] closes #21425
- [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/30928 | 2020-01-11T21:01:38Z | 2020-02-09T21:57:29Z | 2020-02-09T21:57:29Z | 2020-02-09T21:57:34Z |
DOC: Fix whatsnew contributors section | diff --git a/doc/source/whatsnew/v0.25.3.rst b/doc/source/whatsnew/v0.25.3.rst
index f73a3f956f42e..f7f54198a0f82 100644
--- a/doc/source/whatsnew/v0.25.3.rst
+++ b/doc/source/whatsnew/v0.25.3.rst
@@ -19,4 +19,4 @@ Groupby/resample/rolling
Contributors
~~~~~~~~~~~~
-.. contributors:: v0.25.2..HEAD
+.. contributors:... | Was reading over the whatsnew and noticed that the [1.0 Contributors section
](https://dev.pandas.io/docs/whatsnew/v1.0.0.html#contributors) is empty, and the [0.25.3 Contributors section](https://dev.pandas.io/docs/whatsnew/v0.25.3.html#contributors) looks way to big. | https://api.github.com/repos/pandas-dev/pandas/pulls/30926 | 2020-01-11T19:42:32Z | 2020-01-13T08:31:17Z | 2020-01-13T08:31:17Z | 2020-01-13T17:13:38Z |
BUG: correct wrong error message in df.pivot when columns=None | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 8133e54c934ad..203d2d5ec0f40 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -142,6 +142,7 @@ Reshaping
-
- Bug in :meth:`DataFrame.pivot_table` when only MultiIndexed columns is set (:issue:`17038... | - [x] closes #30924
- [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/30925 | 2020-01-11T16:33:22Z | 2020-01-18T16:23:32Z | 2020-01-18T16:23:32Z | 2020-01-18T16:23:36Z |
BUG: Series rolling count ignores min_periods | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index ec6ad38bbc7cf..b06ed684cd525 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -1132,6 +1132,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` when using nunique on axis=1 (:issue:`30253`... | - [x] closes #26996
- [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/30923 | 2020-01-11T16:27:36Z | 2020-01-26T00:29:40Z | 2020-01-26T00:29:40Z | 2020-01-26T04:45:07Z |
ENH:column-wise DataFrame.fillna and duplicated DataFrame.fillna with Series and Dict | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 94bb265c32e4c..311f240d5f08b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -51,7 +51,7 @@ For example:
Other enhancements
^^^^^^^^^^^^^^^^^^
- :class:`Index` with object dtype supports division an... | - [x] closes #4514
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
description:
Access "DataFrame" each column, fills up NA values using "Series.fillna"
and what i found is if dataframe is duplicated, ".fillna" no... | https://api.github.com/repos/pandas-dev/pandas/pulls/30922 | 2020-01-11T16:01:47Z | 2020-12-08T04:28:33Z | null | 2020-12-08T04:28:34Z |
BUG: loc setitem with missing integer slices does not raise | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 5f79accc5c679..0c94af00c3874 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -1036,6 +1036,7 @@ Indexing
- :meth:`MultiIndex.get_loc` can't find missing values when input includes missing values (:iss... | - [ ] closes #26412
- [ ] 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/30921 | 2020-01-11T15:10:11Z | 2020-02-28T01:50:01Z | null | 2021-03-20T02:36:20Z |
BUG30787 fixed unexpected behaviour by removing nullable values | diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py
index 2e3eb9170b15c..95ec260b60bfc 100644
--- a/pandas/core/reshape/tile.py
+++ b/pandas/core/reshape/tile.py
@@ -198,6 +198,10 @@ def cut(
[NaN, (0, 1], NaN, (2, 3], (4, 5]]
Categories (3, interval[int64]): [(0, 1] < (2, 3] < (4, 5]]
... | - [done ] closes #30787
Added a simple check not to allow nan values for calculation. Numpy seems to throw error when nan values are passed to searchsorted function.
| https://api.github.com/repos/pandas-dev/pandas/pulls/30920 | 2020-01-11T14:43:31Z | 2020-02-12T00:51:02Z | null | 2020-02-12T00:51:03Z |
replace syntax with f-string | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 8b49c2186dde0..697d759206ff9 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -298,11 +298,11 @@ def __arrow_array__(self, type=None):
if self.freqstr != type.freq:
raise T... | - [x] contributes to #29547
- [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/30919 | 2020-01-11T13:57:37Z | 2020-01-11T23:11:35Z | 2020-01-11T23:11:35Z | 2020-01-11T23:11:44Z |
DOC: Fixture docs in pandas/conftest.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 3eab2186ccb94..0c964452df5da 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -65,25 +65,28 @@ def pytest_runtest_setup(item):
pytest.skip("skipping high memory test since --run-high-memory was not set")
-# Configurations for all tests a... | xref: https://github.com/pandas-dev/pandas/issues/19159 | https://api.github.com/repos/pandas-dev/pandas/pulls/30917 | 2020-01-11T11:13:05Z | 2020-01-11T23:16:41Z | 2020-01-11T23:16:41Z | 2020-01-11T23:25:48Z |
CLN: F-strings | diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py
index c34d14f15075c..516a271042c9b 100644
--- a/pandas/core/arrays/timedeltas.py
+++ b/pandas/core/arrays/timedeltas.py
@@ -43,8 +43,6 @@
from pandas.tseries.frequencies import to_offset
from pandas.tseries.offsets import Tick
-_BAD_DT... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/30916 | 2020-01-11T10:52:45Z | 2020-01-11T23:12:34Z | 2020-01-11T23:12:34Z | 2020-01-12T09:37:58Z |
ENH/TST: Allow more keywords to ensure_clean | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 1fdc5d478aaf6..72ecbe38ce515 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -473,7 +473,7 @@ def close(fignum=None):
@contextmanager
-def ensure_clean(filename=None, return_filelike=False):
+def ensure_clean(filename=None, return_filelike=Fals... | These keywords will be passed through to `tempfile` constructor functions.
Follow-up:
https://github.com/pandas-dev/pandas/pull/30771#discussion_r363684666 | https://api.github.com/repos/pandas-dev/pandas/pulls/30915 | 2020-01-11T10:37:17Z | 2020-01-15T04:31:50Z | 2020-01-15T04:31:50Z | 2020-01-15T08:15:58Z |
Backport PR #30906 on branch 1.0.x (BUG: pickle files left behind by tm.round_trip_pickle) | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 0b81fb0f7a8d5..1fdc5d478aaf6 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -122,9 +122,9 @@ def round_trip_pickle(
_path = path
if _path is None:
_path = f"__{rands(10)}__.pickle"
- with ensure_clean(_path) as path:
- ... | Backport PR #30906: BUG: pickle files left behind by tm.round_trip_pickle | https://api.github.com/repos/pandas-dev/pandas/pulls/30913 | 2020-01-11T09:54:20Z | 2020-01-11T10:35:36Z | 2020-01-11T10:35:35Z | 2020-01-11T10:35:36Z |
DOC: Added documentation for ImportError's | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index b3fd443e662a9..2561bc198a2ff 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -164,6 +164,23 @@ To install pandas for Python 2, you may need to use the ``python-pandas`` ... | …stall.rst
- [x] closes #29399
- [ ] 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/30912 | 2020-01-11T09:26:48Z | 2020-02-12T01:16:30Z | 2020-02-12T01:16:30Z | 2020-02-12T01:16:37Z |
Added documentation for ImportError in docs/source/getting_started/in… | diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst
index 3055a22129b91..30c70b167e595 100644
--- a/doc/source/getting_started/10min.rst
+++ b/doc/source/getting_started/10min.rst
@@ -16,6 +16,8 @@ Customarily, we import as follows:
import numpy as np
import pandas as pd
+... | …stall.rst
- [ ] 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/30911 | 2020-01-11T09:24:18Z | 2020-01-11T09:24:34Z | null | 2020-01-11T09:25:11Z |
CLN: remove geopandas compat code | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index ea59a6a49e649..89d11bf8511ca 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -27,7 +27,7 @@
is_list_like_indexer,
length_of_indexer,
)
-from pandas.core.indexes.api import Index, InvalidIndexError
+from pandas.core.ind... | CC @jorisvandenbossche its safe to remove this now right? | https://api.github.com/repos/pandas-dev/pandas/pulls/30909 | 2020-01-11T03:00:58Z | 2020-01-14T08:57:39Z | 2020-01-14T08:57:39Z | 2020-01-14T16:24:48Z |
BUG: EAs should not be hashable | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 9723343ea7af5..c3c91cea43f6b 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -176,6 +176,9 @@ class ExtensionArray:
types present.
See :ref:`extending.extension.ufunc` for more.
+
+ By default, Exten... | This turns out to be a blocker for some cleanup in index.pyx | https://api.github.com/repos/pandas-dev/pandas/pulls/30908 | 2020-01-11T01:44:37Z | 2020-01-20T17:19:49Z | 2020-01-20T17:19:49Z | 2020-01-20T18:58:40Z |
DOC: add 1.0.1 whatsnew file | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 05c7f72882088..c9495d5b137fd 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -17,6 +17,7 @@ Version 1.0
:maxdepth: 2
v1.0.0
+ v1.0.1
Version 0.25
------------
diff --git a/doc/source/whatsn... | https://api.github.com/repos/pandas-dev/pandas/pulls/30907 | 2020-01-11T00:57:56Z | 2020-01-30T08:32:01Z | 2020-01-30T08:32:01Z | 2020-01-30T15:59:37Z | |
BUG: pickle files left behind by tm.round_trip_pickle | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 0b81fb0f7a8d5..1fdc5d478aaf6 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -122,9 +122,9 @@ def round_trip_pickle(
_path = path
if _path is None:
_path = f"__{rands(10)}__.pickle"
- with ensure_clean(_path) as path:
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30906 | 2020-01-11T00:39:12Z | 2020-01-11T09:53:42Z | 2020-01-11T09:53:42Z | 2020-01-11T15:30:12Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.