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 |
|---|---|---|---|---|---|---|---|
TST: dont skip test_replace_series | diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py
index e3ad3f733a302..256aaef8eb5a7 100644
--- a/pandas/tests/indexing/test_coercion.py
+++ b/pandas/tests/indexing/test_coercion.py
@@ -986,10 +986,6 @@ class TestReplaceSeriesCoercion(CoercionBase):
],
)
def... | Passes locally, we'll see about the CI | https://api.github.com/repos/pandas-dev/pandas/pulls/30443 | 2019-12-24T04:31:26Z | 2019-12-24T13:02:00Z | 2019-12-24T13:02:00Z | 2019-12-24T16:47:33Z |
CLN .format to f-strings for several files | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 2208fbf933387..e8b6491c5026c 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -42,10 +42,8 @@
engine,
marks=pytest.mark.skipif(
eng... | updated to f-strings for:
pandas/tests/scalar/interval/test_ops.py
pandas/tests/computation/test_eval.py
pandas/tests/dtypes/*
pandas/tests/dtypes/cast/test_infer_dtype.py
pandas/tests/dtypes/test_dtypes.py
pandas/tests/dtypes/test_inference.py
held off on implementing for regex match strin... | https://api.github.com/repos/pandas-dev/pandas/pulls/30442 | 2019-12-24T04:14:13Z | 2019-12-24T13:01:26Z | 2019-12-24T13:01:26Z | 2019-12-24T14:14:42Z |
TST: clean up skips and xfails | diff --git a/pandas/tests/frame/methods/test_rank.py b/pandas/tests/frame/methods/test_rank.py
index be1a423c22aea..f01a030ad0e22 100644
--- a/pandas/tests/frame/methods/test_rank.py
+++ b/pandas/tests/frame/methods/test_rank.py
@@ -3,6 +3,8 @@
import numpy as np
import pytest
+import pandas.util._test_decorators a... | - [ ] 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/30441 | 2019-12-24T02:51:27Z | 2019-12-24T20:41:18Z | 2019-12-24T20:41:18Z | 2019-12-24T20:41:51Z |
Replaced .format{}/% with f-strings in core/tools/datetime.py | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 2d43623cec92c..f193865d90b71 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -475,8 +475,7 @@ def _adjust_to_origin(arg, origin, unit):
j_min = Timestamp.min.to_julian_date() - j0
if ... | Modified to python3 format strings
ref: https://github.com/pandas-dev/pandas/issues/29547
- [x] contributes to fstring corrections in #29547
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
~~whatsnew entry~~ (will not add now. I thin... | https://api.github.com/repos/pandas-dev/pandas/pulls/30440 | 2019-12-24T02:25:18Z | 2019-12-24T13:39:42Z | 2019-12-24T13:39:42Z | 2019-12-24T13:39:46Z |
REF: de-duplicate/parametrize arithmetic tests | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index c055b3e62a368..afce374aebe05 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -1890,13 +1890,10 @@ def test_dti_addsub_int(self, tz_naive_fixture, one):
... | Use helper methods implemented in #30354.
Some of this is things made possible since we enforced the integer add/sub deprecation. | https://api.github.com/repos/pandas-dev/pandas/pulls/30438 | 2019-12-23T21:31:14Z | 2019-12-24T13:04:36Z | 2019-12-24T13:04:36Z | 2019-12-24T16:52:01Z |
REF: method-specific tests for cov, corr, corrwith, count, round | diff --git a/pandas/tests/frame/methods/test_count.py b/pandas/tests/frame/methods/test_count.py
new file mode 100644
index 0000000000000..b5d3d60579f54
--- /dev/null
+++ b/pandas/tests/frame/methods/test_count.py
@@ -0,0 +1,36 @@
+from pandas import DataFrame, Series
+import pandas.util.testing as tm
+
+
+class TestDa... | in the process of organizing these, some parametrization opportunities become clear. Didnt do them in this PR to keep this just a moving-around diff | https://api.github.com/repos/pandas-dev/pandas/pulls/30437 | 2019-12-23T21:25:24Z | 2019-12-24T13:05:54Z | 2019-12-24T13:05:54Z | 2019-12-24T17:02:30Z |
ENH: Allow scatter plot to plot objects and datetime type data | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index a6ba7770dadcc..510e19c2f3ef0 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -848,6 +848,7 @@ Plotting
- :func:`set_option` now validates that the plot backend provided to ``'plotting.backend'`` imple... | closes #18755
closes #30391
xref #8113
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Because this is a plot PR, so I put the figures gotten by the two examples in those two PRs in this description to facili... | https://api.github.com/repos/pandas-dev/pandas/pulls/30434 | 2019-12-23T18:21:38Z | 2020-01-01T03:39:08Z | 2020-01-01T03:39:08Z | 2020-01-01T03:39:12Z |
REF: more method-specific test files | diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py
new file mode 100644
index 0000000000000..4f311bbaa8eb9
--- /dev/null
+++ b/pandas/tests/frame/methods/test_sort_index.py
@@ -0,0 +1,231 @@
+import numpy as np
+import pytest
+
+import pandas as pd
+from pandas im... | among other things, found a sort_index test that got misplaced | https://api.github.com/repos/pandas-dev/pandas/pulls/30432 | 2019-12-23T18:07:15Z | 2019-12-23T19:29:37Z | 2019-12-23T19:29:37Z | 2019-12-23T20:17:53Z |
CI: Remove powershell scripts (Azure) | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index 55f80bf644ecc..cb0b17e3553a4 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -69,20 +69,13 @@ jobs:
displayName: 'Build versions'
- task: PublishTestResults@2
+ condition: succeededOrFailed()
inputs:
+ failTaskOnFail... | - [x] closes #26344
Ref @jbrockmendel comment here https://github.com/pandas-dev/pandas/pull/23454#discussion_r360933924
CI: fails as expected example [here](https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=23715&view=logs&j=fd89438c-1fd3-5981-222e-115d06c89c2d) | https://api.github.com/repos/pandas-dev/pandas/pulls/30431 | 2019-12-23T17:09:57Z | 2019-12-24T14:56:57Z | 2019-12-24T14:56:56Z | 2019-12-25T20:35:59Z |
CLN: use f-string for JSON related files | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 7444ebbaf27e3..b28d23791fd03 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -25,7 +25,6 @@
infer_compression,
stringify_path,
)
-from pandas.io.formats.printing import pprint_thing
from pandas.io.parsers import _vali... | - [x] ref #29547
- [ ] 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/30430 | 2019-12-23T17:01:30Z | 2019-12-24T17:06:19Z | 2019-12-24T17:06:19Z | 2020-06-23T17:09:06Z |
CLN: Use of Iterable from collections.abc instead of typing.Iterable | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 445eff9e19e47..69b08c581cff9 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -3,8 +3,8 @@
IO,
TYPE_CHECKING,
AnyStr,
+ Collection,
Dict,
- Iterable,
List,
Optional,
TypeVar,
@@ -37,8 +37,7 @@
Ordered = Optional[... | - [ ] 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/30427 | 2019-12-23T10:40:14Z | 2019-12-24T16:14:25Z | 2019-12-24T16:14:25Z | 2019-12-24T16:16:53Z |
CLN: changed .format to fstring in pandas/io/formats/csvs.py | diff --git a/pandas/io/formats/csvs.py b/pandas/io/formats/csvs.py
index 3a91d65ab4562..72ba1a892cb8f 100644
--- a/pandas/io/formats/csvs.py
+++ b/pandas/io/formats/csvs.py
@@ -238,10 +238,7 @@ def _save_header(self):
if has_aliases:
if len(header) != len(cols):
raise ValueError(
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
https://github.com/pandas-dev/pandas/issues/29547
My first contribution. | https://api.github.com/repos/pandas-dev/pandas/pulls/30425 | 2019-12-23T07:21:05Z | 2019-12-24T15:04:40Z | 2019-12-24T15:04:40Z | 2019-12-24T15:04:43Z |
ISORT: Add _typing to pre_core isort block | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 53ae1094c6765..96a4eb1b3bf32 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -10,6 +10,7 @@
import numpy as np
+from pandas._typing import ArrayLike
from pandas.compat import set_function_name
from pandas.compa... | - [x] closes #27534 | https://api.github.com/repos/pandas-dev/pandas/pulls/30423 | 2019-12-23T03:57:55Z | 2019-12-23T18:09:27Z | 2019-12-23T18:09:27Z | 2019-12-23T18:09:50Z |
REF: standardize test_constructor filenames | diff --git a/pandas/tests/base/test_construction.py b/pandas/tests/base/test_constructors.py
similarity index 100%
rename from pandas/tests/base/test_construction.py
rename to pandas/tests/base/test_constructors.py
diff --git a/pandas/tests/indexes/datetimes/test_construction.py b/pandas/tests/indexes/datetimes/test_co... | https://api.github.com/repos/pandas-dev/pandas/pulls/30422 | 2019-12-23T02:34:38Z | 2019-12-23T13:58:43Z | 2019-12-23T13:58:43Z | 2019-12-23T15:47:36Z | |
fixed pandas/io/formats/printing.py formatting: replaced %/{}.format … | diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py
index 8218799129952..2176487ff6a36 100644
--- a/pandas/io/formats/printing.py
+++ b/pandas/io/formats/printing.py
@@ -325,8 +325,8 @@ def format_object_summary(
if indent_for_name:
name_len = len(name)
- space1 = "\n%s" % ... | Updated pandas/io/formats/printing.py formatting. Replaced % and {}.format() examples to python3 formatting. Ran tests and they passed.
ref [#29886](https://github.com/pandas-dev/pandas/issues/29886) and [#29547](https://github.com/pandas-dev/pandas/issues/29547). | https://api.github.com/repos/pandas-dev/pandas/pulls/30421 | 2019-12-23T02:23:35Z | 2019-12-23T08:05:22Z | 2019-12-23T08:05:22Z | 2019-12-23T11:47:26Z |
Fixing pandas/tests/indexes/datetimes/test_ops.py to utilize python3 … | diff --git a/pandas/tests/indexes/datetimes/test_ops.py b/pandas/tests/indexes/datetimes/test_ops.py
index cd8d5bd7b260b..fb032947143d3 100644
--- a/pandas/tests/indexes/datetimes/test_ops.py
+++ b/pandas/tests/indexes/datetimes/test_ops.py
@@ -41,9 +41,9 @@ def test_ops_properties_basic(self):
# sanity chec... | Updated pandas/tests/indexes/datetimes/test_ops.py to utilize python3 format strings. Ran the test and it seems good. I moved the msg into the for loop because it seems cleaner with the new format string logic.
ref [#29886](https://github.com/pandas-dev/pandas/issues/29886) and [#29547](https://github.com/pandas-de... | https://api.github.com/repos/pandas-dev/pandas/pulls/30420 | 2019-12-23T01:41:24Z | 2019-12-23T08:03:55Z | 2019-12-23T08:03:54Z | 2019-12-23T11:46:59Z |
BUG: strengthen typing in get_c_string, fix StringHashTable segfault | diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd
index 51ec4ba43159c..0499eabf708af 100644
--- a/pandas/_libs/hashtable.pxd
+++ b/pandas/_libs/hashtable.pxd
@@ -36,8 +36,8 @@ cdef class PyObjectHashTable(HashTable):
cdef class StringHashTable(HashTable):
cdef kh_str_t *table
- cpdef get_i... | Start with util.pxd, we can tighten the arg from "object" to "str" and simplify it a bit. Tracking down the places where get_c_string is used, the main one is in StringHashTable, where in `set_item` it is currently used incorrectly. The test added by this PR segfaults in master.
@TomAugspurger it looks like String... | https://api.github.com/repos/pandas-dev/pandas/pulls/30419 | 2019-12-23T01:35:17Z | 2019-12-24T14:26:40Z | 2019-12-24T14:26:40Z | 2019-12-24T16:51:15Z |
Fixing pandas/tests/indexes/multi/test_analytics.py to utilize python… | diff --git a/pandas/tests/indexes/multi/test_analytics.py b/pandas/tests/indexes/multi/test_analytics.py
index 36152bc4b60cd..a6d08c845d941 100644
--- a/pandas/tests/indexes/multi/test_analytics.py
+++ b/pandas/tests/indexes/multi/test_analytics.py
@@ -277,7 +277,7 @@ def test_map(idx):
def test_map_dictlike(idx, mapp... | Modified reflect python3 format strings on pandas/tests/indexes/multi/test_analytics.py. I ran the test and it passed like before. ref [#29886](https://github.com/pandas-dev/pandas/issues/29886) and [#29547](https://github.com/pandas-dev/pandas/issues/29547). | https://api.github.com/repos/pandas-dev/pandas/pulls/30418 | 2019-12-23T01:26:17Z | 2019-12-23T15:25:24Z | 2019-12-23T15:25:24Z | 2019-12-23T15:25:27Z |
Replaced xrange with range | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 559cedd62e7ce..94eaab0a5b4da 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -52,7 +52,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
black --version
MSG='Checking black formatting' ; echo $MSG
- black . --check
+ black . --check
... | - [ ] 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/30417 | 2019-12-22T23:57:35Z | 2019-12-23T08:27:45Z | 2019-12-23T08:27:45Z | 2019-12-23T08:43:49Z |
REF: method-specific test files for Series/DataFrame | diff --git a/pandas/tests/frame/methods/test_diff.py b/pandas/tests/frame/methods/test_diff.py
new file mode 100644
index 0000000000000..9293855e79b1c
--- /dev/null
+++ b/pandas/tests/frame/methods/test_diff.py
@@ -0,0 +1,120 @@
+import numpy as np
+import pytest
+
+import pandas as pd
+from pandas import DataFrame, Se... | xref #30385, #30381. | https://api.github.com/repos/pandas-dev/pandas/pulls/30414 | 2019-12-22T22:55:13Z | 2019-12-23T14:02:36Z | 2019-12-23T14:02:36Z | 2019-12-23T15:31:25Z |
REF: algos_take_helper de-nest templating | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 9dbae8170cbd0..420e08a3d68d4 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -10,69 +10,119 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in
{{p... | Having two layers of templating here is really weird, this unravels one layer so this file is organized like our other tempita files. That makes future moves towards fused types and/or conditional nogil feasible. | https://api.github.com/repos/pandas-dev/pandas/pulls/30413 | 2019-12-22T22:05:35Z | 2019-12-24T13:44:47Z | 2019-12-24T13:44:47Z | 2019-12-24T16:46:20Z |
Fixing format string in pandas/tests/extension/list/array.py | diff --git a/pandas/tests/extension/list/array.py b/pandas/tests/extension/list/array.py
index 0ca9fadb68829..6dd00ad3b06ba 100644
--- a/pandas/tests/extension/list/array.py
+++ b/pandas/tests/extension/list/array.py
@@ -36,7 +36,7 @@ def construct_from_string(cls, string):
if string == cls.name:
... | This is a fix on pandas/tests/extension/list/array.py to utilize python3 format strings
([#29886](https://github.com/pandas-dev/pandas/issues/29886)). | https://api.github.com/repos/pandas-dev/pandas/pulls/30412 | 2019-12-22T21:50:41Z | 2019-12-23T01:14:18Z | 2019-12-23T01:14:18Z | 2019-12-23T01:14:27Z |
TYP: Typing annotations pandas/util/ | diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py
index 2e91d76b0fe98..d10d3a1f71fe6 100644
--- a/pandas/util/_decorators.py
+++ b/pandas/util/_decorators.py
@@ -294,7 +294,6 @@ def update(self, *args, **kwargs) -> None:
"""
Update self.params with supplied args.
"""
-
... | - [ ] 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/30411 | 2019-12-22T21:44:46Z | 2019-12-24T16:40:04Z | 2019-12-24T16:40:04Z | 2019-12-24T16:42:21Z |
CLN: str.format -> f-strings for `io/sas` | diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py
index eb57d703cd4d5..c6a28c1fa813d 100644
--- a/pandas/io/sas/sas7bdat.py
+++ b/pandas/io/sas/sas7bdat.py
@@ -169,7 +169,7 @@ def _get_properties(self):
if buf in const.encoding_names:
self.file_encoding = const.encoding_names[buf]... | - [x] ref #29547
- [ ] 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/30409 | 2019-12-22T19:32:02Z | 2019-12-24T19:56:37Z | 2019-12-24T19:56:37Z | 2020-06-23T17:09:05Z |
ENH: Add ignore_index for df.drop_duplicates | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 9023cf2ab1b4f..e77beb2943101 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -208,6 +208,7 @@ Other enhancements
- :func:`to_parquet` now appropriately handles the ``schema`` argument for user defined... | - [x] xref #30114
- [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/30405 | 2019-12-22T15:51:01Z | 2019-12-27T16:33:11Z | 2019-12-27T16:33:11Z | 2019-12-27T16:33:16Z |
TYP: Type annotations in pandas/io/formats/printing.py | diff --git a/pandas/io/formats/html.py b/pandas/io/formats/html.py
index 3a3347a5c86ea..b88478b3da181 100644
--- a/pandas/io/formats/html.py
+++ b/pandas/io/formats/html.py
@@ -109,12 +109,12 @@ def write_th(
----------
s : object
The data to be written inside the cell.
- header : ... | - [ ] 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/30404 | 2019-12-22T13:35:34Z | 2019-12-23T15:28:51Z | 2019-12-23T15:28:51Z | 2019-12-24T15:21:04Z |
TYP: Type annotations in pandas/io/formats/style.py | diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py
index 9b0f100c1b041..b0e8e4033edf2 100644
--- a/pandas/io/formats/excel.py
+++ b/pandas/io/formats/excel.py
@@ -1,14 +1,17 @@
-"""Utilities for conversion to writer-agnostic Excel representation
+"""
+Utilities for conversion to writer-agnostic Excel ... | - [ ] 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/30403 | 2019-12-22T13:19:42Z | 2020-01-20T17:31:09Z | 2020-01-20T17:31:09Z | 2020-01-20T20:03:41Z |
ENH: Add ignore_index for df.sort_values and series.sort_values | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 1253788d7ff27..96f35e25331c0 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -207,6 +207,7 @@ Other enhancements
- The ``partition_cols`` argument in :meth:`DataFrame.to_parquet` now accepts a string ... | - [x] xref #30114
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is the first step for closing the PR #30114, I will come up with another PR for `drop_duplicates` | https://api.github.com/repos/pandas-dev/pandas/pulls/30402 | 2019-12-22T12:14:23Z | 2019-12-27T16:12:23Z | 2019-12-27T16:12:23Z | 2019-12-27T16:12:27Z |
TYP: Type hints in pandas/io/formats/excel.py | diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py
index 18340bc702378..9b0f100c1b041 100644
--- a/pandas/io/formats/excel.py
+++ b/pandas/io/formats/excel.py
@@ -4,6 +4,7 @@
from functools import reduce
import itertools
import re
+from typing import Callable, Dict, List, Optional, Sequence, Union
... | - [ ] 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/30400 | 2019-12-22T11:56:16Z | 2020-01-02T01:41:11Z | 2020-01-02T01:41:11Z | 2020-01-02T01:44:15Z |
TYP: Typing hints in pandas/io/formats/{css,csvs}.py | diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py
index 583dd49d4c66a..b40d2a57b8106 100644
--- a/pandas/io/formats/css.py
+++ b/pandas/io/formats/css.py
@@ -1,4 +1,5 @@
-"""Utilities for interpreting CSS from Stylers for formatting non-HTML outputs
+"""
+Utilities for interpreting CSS from Stylers for f... | - [ ] 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/30398 | 2019-12-22T10:53:51Z | 2019-12-27T16:02:51Z | 2019-12-27T16:02:50Z | 2019-12-28T17:29:30Z |
STY: Underscores for long numbers | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index a44f374264f09..86a9d053730b8 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -336,11 +336,22 @@ class Timestamp(_Timestamp):
"""
return cls(datetime.combine(date, time... | - [ ] 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/30397 | 2019-12-22T04:31:26Z | 2019-12-22T17:21:32Z | 2019-12-22T17:21:32Z | 2019-12-22T21:12:18Z |
TST: Added fromisocalendar test cases | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index df747cb9654a9..32dab3211d42a 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -227,6 +227,7 @@ Other enhancements
- Added new writer for exporting Stata dta files in version 118, ``StataWriter118``. T... | - [x] closes #28115
- [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/30395 | 2019-12-21T21:34:17Z | 2020-01-06T13:30:42Z | 2020-01-06T13:30:41Z | 2020-01-06T13:37:27Z |
CLN: tslibs.parsing | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 598def4e1d9fa..cbe6dd6c2322d 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -188,7 +188,7 @@ def ints_to_pydatetime(const int64_t[:] arr, object tz=None, object freq=None,
return result
-def _test_parse_iso8601(object ts):
... | - [x] closes #22234
Non-segfault-related pieces broken off from #30374. Fix a (not-reachable-but-thats-another-conversation) tzinfo check closing #22234.
De-duplicates get_rule_month in tslibs.frequencies and tslibs.parsing
pythonizes a PyUnicode_Join usage because cython does that optimization already. | https://api.github.com/repos/pandas-dev/pandas/pulls/30394 | 2019-12-21T21:32:09Z | 2019-12-23T18:32:25Z | 2019-12-23T18:32:24Z | 2019-12-23T18:38:14Z |
CI: transition powershell-> bash | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 86807b4010988..536c2fdbf1353 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -31,7 +31,8 @@ jobs:
- bash: |
source activate pandas-dev
conda list
- ci\\incremental\\build.cmd
+ python setup.py build_ext -... | xref #26344
If this works, i think the remaining places to bashify are
- identical powerhsell commands in windows.yml and posix.yml to check for test failures
- conda.recipe/bld.bat (do we need this directory at all?)
- test.bat, test_fast.bat (do we need the bash versions of these?) | https://api.github.com/repos/pandas-dev/pandas/pulls/30393 | 2019-12-21T21:26:50Z | 2019-12-23T08:49:27Z | 2019-12-23T08:49:26Z | 2019-12-24T01:17:51Z |
CI: clean environment.yml, comment that req-dev is generated | diff --git a/environment.yml b/environment.yml
index 2b171d097a693..f930458d0a855 100644
--- a/environment.yml
+++ b/environment.yml
@@ -33,7 +33,8 @@ dependencies:
- nbconvert>=5.4.1
- nbsphinx
- pandoc
- # Dask and its dependencies
+
+ # Dask and its dependencies (that dont install with dask)
- dask-cor... | There is a little more id like to do in environment.yml to put docbuild things in the same place, but holding off to keep the diff tidier. Also it appears there are some unused things in environment.yml that we can look into removing, separate PR | https://api.github.com/repos/pandas-dev/pandas/pulls/30392 | 2019-12-21T21:02:25Z | 2019-12-25T22:28:19Z | 2019-12-25T22:28:19Z | 2019-12-30T12:27:31Z |
TYP: Annotations in core/indexes/ | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index 209f889e809c3..ac1b0ab766a03 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -144,8 +144,9 @@ def validate_indices(indices: np.ndarray, n: int) -> None:
if len(indices):
min_idx = indices.min()
if min_idx <... | - [ ] 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/30390 | 2019-12-21T14:55:53Z | 2019-12-21T20:11:01Z | 2019-12-21T20:11:01Z | 2019-12-21T22:25:38Z |
DOC: fix external links + favicon | diff --git a/doc/source/_static/favicon.ico b/doc/source/_static/favicon.ico
deleted file mode 100644
index d15c4803b62e6..0000000000000
Binary files a/doc/source/_static/favicon.ico and /dev/null differ
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 096f1a63eddf8..481c03ab8f388 100644
--- a/doc/source/conf... | Fixes the wrong external links (see https://github.com/pandas-dev/pydata-bootstrap-sphinx-theme/issues/66), and also fixes the favicon | https://api.github.com/repos/pandas-dev/pandas/pulls/30389 | 2019-12-21T08:57:40Z | 2019-12-22T09:56:28Z | 2019-12-22T09:56:28Z | 2019-12-22T09:56:31Z |
DEPR: Deprecate pandas.np module | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
old mode 100644
new mode 100755
index 716784f798a54..d733aefa43385
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -205,6 +205,7 @@ Other enhancements
(:meth:`~DataFrame.to_parquet` / :func:`read_parquet`) using... | - [x] closes #30296
- [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/30386 | 2019-12-20T23:25:25Z | 2019-12-27T16:52:54Z | 2019-12-27T16:52:54Z | 2019-12-30T23:28:09Z |
REF: targeted test files for nlargest, searchsorted, value_counts | diff --git a/pandas/tests/frame/methods/test_nlargest.py b/pandas/tests/frame/methods/test_nlargest.py
new file mode 100644
index 0000000000000..72299ad6b2bf6
--- /dev/null
+++ b/pandas/tests/frame/methods/test_nlargest.py
@@ -0,0 +1,211 @@
+"""
+Note: for naming purposes, most tests are title with as e.g. "test_nlarge... | In parallel with, and orthogonal to, #30381.
Identified a couple of tests that were in the wrong places, e.g. the one moved int test_cumulative. | https://api.github.com/repos/pandas-dev/pandas/pulls/30385 | 2019-12-20T23:10:46Z | 2019-12-23T15:13:08Z | 2019-12-23T15:13:08Z | 2019-12-23T15:37:44Z |
CLN: DataFrameGroupBy._cython_agg_general | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index b2543289f68c6..dc343f670b725 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -11,6 +11,7 @@
from textwrap import dedent
import typing
from typing import (
+ TYPE_CHECKING,
Any,
Callable... | Some small cleanups that make the code easier to read IMO. | https://api.github.com/repos/pandas-dev/pandas/pulls/30384 | 2019-12-20T22:48:09Z | 2019-12-24T14:42:07Z | 2019-12-24T14:42:07Z | 2019-12-24T14:42:10Z |
CLN: move code out of a try clause in merge.py | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 0fb029c8429a6..3dfd5fed34741 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -116,20 +116,20 @@ def _groupby_and_merge(
# if we can groupby the rhs
# then we can get vastly better perf
- try:
... | Minor clean-up. | https://api.github.com/repos/pandas-dev/pandas/pulls/30382 | 2019-12-20T22:04:23Z | 2019-12-21T19:55:52Z | 2019-12-21T19:55:52Z | 2019-12-21T20:01:21Z |
REF: targeted test files for clip, isin, describe, transpose | diff --git a/pandas/tests/frame/methods/test_clip.py b/pandas/tests/frame/methods/test_clip.py
new file mode 100644
index 0000000000000..48444e909ee01
--- /dev/null
+++ b/pandas/tests/frame/methods/test_clip.py
@@ -0,0 +1,157 @@
+import numpy as np
+import pytest
+
+import pandas as pd
+from pandas import DataFrame, Se... | https://api.github.com/repos/pandas-dev/pandas/pulls/30381 | 2019-12-20T18:27:03Z | 2019-12-23T17:03:28Z | 2019-12-23T17:03:28Z | 2019-12-23T17:05:38Z | |
CI: troubleshoot codecov | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 4c5dbabc81950..0b68164e5767e 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -37,8 +37,7 @@ echo $PYTEST_CMD
sh -c "$PYTEST_CMD"
if [[ "$COVERAGE" && $? == 0 && "$TRAVIS_BRANCH" == "master" ]]; then
- SHA=`git rev-parse HEAD`
echo "uploading coverag... | xref discussion in #30070. | https://api.github.com/repos/pandas-dev/pandas/pulls/30380 | 2019-12-20T17:35:56Z | 2019-12-21T02:16:29Z | 2019-12-21T02:16:29Z | 2019-12-21T02:17:03Z |
BUG: Series.drop() with MultiIndex: inconsistent behaviour | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 716784f798a54..4f5caf8b70d9f 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -789,7 +789,7 @@ MultiIndex
^^^^^^^^^^
- Constructior for :class:`MultiIndex` verifies that the given ``sortorder`` is c... | - [x] closes #8594
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
description:
In core.base
```
indexer = self.get_indexer(labels)
mask = indexer == -1
if mask.any():
if er... | https://api.github.com/repos/pandas-dev/pandas/pulls/30377 | 2019-12-20T14:02:17Z | 2019-12-26T13:35:10Z | 2019-12-26T13:35:09Z | 2019-12-26T13:40:53Z |
[CLN] remove now-unnecessary td.skip_if_no(pathlib) | diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py
index d9a76fe97f813..3cd9d9cdd67d2 100644
--- a/pandas/tests/io/pytables/test_store.py
+++ b/pandas/tests/io/pytables/test_store.py
@@ -3,6 +3,7 @@
from distutils.version import LooseVersion
from io import BytesIO
import os
... | - [ ] closes #30375
- [ ] 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/30376 | 2019-12-20T12:54:07Z | 2019-12-20T14:59:06Z | 2019-12-20T14:59:06Z | 2019-12-20T16:01:53Z |
REF: define NA_VALUES in libparsers | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index bb1493280dfd2..1b566af7a5437 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1367,7 +1367,26 @@ def _ensure_encoded(list lst):
# common NA values
# no longer excluding inf representations
# '1.#INF','-1.#INF', '1.#INF0000... | The usual goal: make cython code depend on non-cython code less
The new goal: limit the places where we import from `pd.io.common` so I can track down the many encoding/path/compression... inconsistencies. | https://api.github.com/repos/pandas-dev/pandas/pulls/30373 | 2019-12-20T05:01:35Z | 2019-12-20T12:27:14Z | 2019-12-20T12:27:14Z | 2019-12-20T16:23:03Z |
REF: remove last major pytables state-altering | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index d14b4ecf070a7..4d60bc0b45c70 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -3145,15 +3145,25 @@ class Table(Fixed):
info: Dict
def __init__(
- self, parent: HDFStore, group: "Node", encoding=None, errors: str = "stri... | Mentioned in #30344. | https://api.github.com/repos/pandas-dev/pandas/pulls/30372 | 2019-12-20T03:09:03Z | 2019-12-26T01:07:06Z | 2019-12-26T01:07:06Z | 2019-12-26T01:11:52Z |
CLN: remove py2-legacy UnicodeReader, UnicodeWriter | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 7151a34cd37de..c62de76286610 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -2,7 +2,6 @@
import bz2
import codecs
-import csv
import gzip
from io import BufferedIOBase, BytesIO
import mmap
@@ -17,9 +16,7 @@
List,
Mapping,
... | By getting rid of these one-liners, the few places where they are used end up being simplified a bit. | https://api.github.com/repos/pandas-dev/pandas/pulls/30371 | 2019-12-20T02:36:44Z | 2019-12-20T18:46:53Z | 2019-12-20T18:46:53Z | 2019-12-20T18:47:14Z |
CLN: use stdlib Iterator instead of BaseIterator | diff --git a/pandas/io/common.py b/pandas/io/common.py
index c62de76286610..d682604cf7aab 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -2,6 +2,7 @@
import bz2
import codecs
+from collections.abc import Iterator
import gzip
from io import BufferedIOBase, BytesIO
import mmap
@@ -49,18 +50,6 @@
_V... | https://api.github.com/repos/pandas-dev/pandas/pulls/30370 | 2019-12-20T02:12:24Z | 2019-12-23T09:15:09Z | 2019-12-23T09:15:09Z | 2019-12-24T22:21:45Z | |
Clean Up nogil Warning From Parsers | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 1b566af7a5437..5122bb3d4e75b 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -171,12 +171,9 @@ cdef extern from "parser/tokenizer.h":
int64_t skip_first_N_rows
int64_t skipfooter
# pick one, dependi... | I think just easier to ensure The GIL is acquired within the C function rather than all of the current casting / indirection.
Eliminates the following warning:
```sh
warning: pandas/_libs/parsers.pyx:1656:34: Casting a GIL-requiring function into a nogil function circumvents GIL validation
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/30369 | 2019-12-20T01:47:44Z | 2020-01-02T01:06:23Z | 2020-01-02T01:06:23Z | 2020-01-16T00:33:26Z |
REF: de-privatize io.common functions used elsewhere | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 0159716248b11..7151a34cd37de 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -64,7 +64,7 @@ def __next__(self):
raise AbstractMethodError(self)
-def _is_url(url) -> bool:
+def is_url(url) -> bool:
"""
Check to see if a URL... | https://api.github.com/repos/pandas-dev/pandas/pulls/30368 | 2019-12-20T00:19:18Z | 2019-12-20T17:44:53Z | 2019-12-20T17:44:53Z | 2019-12-20T17:45:19Z | |
CLN: replace str.format() with f-string | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 394d128164509..43221eb1e3194 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1740,7 +1740,7 @@ def to_records(self, index=True, column_dtypes=None, index_dtypes=None):
rec.array([(b'a', 1, 0.5 ), (b'b', 2, 0.75)],
... | - [x] ref #29547
- [ ] 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/30363 | 2019-12-19T21:43:26Z | 2019-12-20T02:28:05Z | 2019-12-20T02:28:05Z | 2019-12-20T07:28:44Z |
BUG: raise KeyError if MultiIndex.get_loc_level is asked unused label | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index ea0677a0edf28..997ab8f50e07c 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -622,8 +622,8 @@ Missing
MultiIndex
^^^^^^^^^^
-- Removed compatibility for MultiIndex pickles prior to version 0.8.... | - [x] closes #22221
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22230 | 2018-08-07T08:30:52Z | 2018-08-09T00:29:46Z | 2018-08-09T00:29:45Z | 2018-08-09T05:43:34Z |
ENH: Add strings_as_fixed_length parameter for df.to_records() (#18146) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index b4331aab3085f..cca15f26cbf99 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -411,6 +411,7 @@ Other Enhancements
- :meth:`DataFrame.to_stata` and :class:`pandas.io.stata.StataWriter117` can write ... | This option changes DataFrame.to_records() dtype for string arrays
to 'Sx', where x is the length of the longest string, instead of 'O"
- [x] closes #18146
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22229 | 2018-08-07T03:49:30Z | 2018-12-30T22:40:39Z | 2018-12-30T22:40:39Z | 2018-12-30T22:40:50Z |
Fix test_info_repr #21746 | diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py
index 76bdf141ec828..c19f8e57f9ae7 100644
--- a/pandas/tests/io/formats/test_format.py
+++ b/pandas/tests/io/formats/test_format.py
@@ -1586,8 +1586,12 @@ def test_repr_html_long_and_wide(self):
assert '...' in df.... | Fixes test that fails locally in py27 when run in a terminal window wider than 80 characters.
- [x] closes #21746
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/22223 | 2018-08-06T20:02:24Z | 2018-08-07T13:12:13Z | 2018-08-07T13:12:13Z | 2018-08-08T15:51:22Z |
[CLN] Merge inference into lib.pyx | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index d80b5fd2bd0b9..89a96342a414b 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1,21 +1,12 @@
# -*- coding: utf-8 -*-
-# cython: profile=False
+from decimal import Decimal
+import sys
+
cimport cython
from cython cimport Py_ssize_t
-impor... | Continue trimming down _libs/src.
src/inference is a minor hassle, particularly because ATM there are imports/cimports in both it and lib. Its existence also complicates setup.py a bit.
Evidently parse_helper.h depended on the order in which it was included (I assume this is a code smell in C, but who knows). F... | https://api.github.com/repos/pandas-dev/pandas/pulls/22219 | 2018-08-06T17:15:58Z | 2018-08-08T10:38:49Z | 2018-08-08T10:38:49Z | 2018-08-08T15:50:46Z |
Add missing period to pandas.Series.interpolate docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f62605c342702..08d9191d72a8a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6098,9 +6098,9 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
* 'index', 'values': use the actual numerical valu... | Previously, the _new in version_ message seemed like a run-on sentence:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.interpolate.html
Also added code formatting for `BPoly.from_derivatives` reference. | https://api.github.com/repos/pandas-dev/pandas/pulls/22217 | 2018-08-06T16:01:14Z | 2018-08-08T10:39:48Z | 2018-08-08T10:39:48Z | 2018-08-08T12:56:05Z |
DOC: Added 0.23.4 whatsnew [ci skip] | diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst
index 436bbeae5d08f..8672685b3ebb4 100644
--- a/doc/source/whatsnew.rst
+++ b/doc/source/whatsnew.rst
@@ -20,6 +20,8 @@ These are new features and improvements of note in each release.
.. include:: whatsnew/v0.24.0.txt
+.. include:: whatsnew/v0.23.4.tx... | [ci skip] | https://api.github.com/repos/pandas-dev/pandas/pulls/22214 | 2018-08-06T11:17:33Z | 2018-08-06T11:17:49Z | 2018-08-06T11:17:49Z | 2018-08-06T11:17:53Z |
Fix Python2 test failures in certain locales | diff --git a/pandas/tests/util/test_util.py b/pandas/tests/util/test_util.py
index dabafb1f49ba8..c049dfc874940 100644
--- a/pandas/tests/util/test_util.py
+++ b/pandas/tests/util/test_util.py
@@ -433,6 +433,26 @@ def teardown_class(cls):
del cls.locales
del cls.current_locale
+ def test_can_set_... | Check that we can also get the locale, after setting it, without raising an Exception.
- [x] closes #22129
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22213 | 2018-08-06T10:52:14Z | 2018-08-13T01:14:36Z | 2018-08-13T01:14:36Z | 2018-09-10T11:02:03Z |
API/CLN: Have toplevel pd.pivot mirror pivot instead of pivot_simple | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index cb251d4648925..7ae2107626973 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5346,8 +5346,7 @@ def update(self, other, join='left', overwrite=True, filter_func=None,
# -------------------------------------------------------------------... | - [x] closes #22116
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- Moved `pivot` from `pandas/core/reshape/reshape.py` to `pandas/core/reshape/pivot.py`
- Moved `pivot_simple` and `_slow_pivot` from `pandas/core/reshape/reshape.py` to `pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/22209 | 2018-08-06T03:20:55Z | 2018-08-08T10:41:19Z | 2018-08-08T10:41:19Z | 2018-08-16T14:39:07Z |
BUG: treat nan-objects the same way float64-nans are treated - all na… | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index a5ccf5c32b876..34a8d552304d1 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -38,6 +38,43 @@ def time_isin(self, dtypes):
self.s.isin(self.values)
+class Is... | …ns are from the same equivalence class (GH22119)
- [x] closes #22119
- [x] closes #22148
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22207 | 2018-08-05T21:03:42Z | 2018-08-09T10:40:05Z | 2018-08-09T10:40:04Z | 2018-08-09T19:34:12Z |
STYLE/LINT: Set literals | diff --git a/ci/lint.sh b/ci/lint.sh
index ec99e1e559d6e..0d0ddadafbea9 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -13,7 +13,6 @@ if [ "$LINT" ]; then
#E731, # do not assign a lambda expression, use a def
#E741, # do not use variables named 'l', 'O', or 'I'
#W503, # line break before binary operator
... | xref #22122
Use `{1, 2, 3}` instead of `set([1, 2, 3])` and enforce with a linting rule.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22202 | 2018-08-05T07:08:38Z | 2018-08-06T03:00:18Z | 2018-08-06T03:00:18Z | 2018-08-06T04:33:55Z |
CLN: Old timezone issues | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 5c15c7b6a742f..f419e2d06239c 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -561,6 +561,10 @@ Timezones
- Fixed bug where :meth:`DataFrame.describe` and :meth:`Series.describe` on tz-aware dateti... | - [x] closes #21846
- [x] closes #21737
- [x] closes #20724
- [x] closes #18785
- [x] closes #18308
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22201 | 2018-08-05T06:39:39Z | 2018-08-06T10:23:27Z | 2018-08-06T10:23:27Z | 2018-08-06T17:22:47Z |
BUG: Infer compression by default in read_fwf() (#22199) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a2abda019812a..d41293d7655a0 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1528,6 +1528,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
- Bug in :meth:`Dat... | - [x] closes #22199
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22200 | 2018-08-05T04:06:17Z | 2018-12-27T19:26:23Z | 2018-12-27T19:26:23Z | 2018-12-27T19:26:38Z |
BUG: DataFrame.asof() : Timezone Awareness / Naivety comparison TypeError | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index f419e2d06239c..ea0677a0edf28 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -561,6 +561,7 @@ Timezones
- Fixed bug where :meth:`DataFrame.describe` and :meth:`Series.describe` on tz-aware datetim... | - [X] closes #21194
- [X] tests added / passed
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22198 | 2018-08-04T21:32:43Z | 2018-08-06T10:36:30Z | 2018-08-06T10:36:30Z | 2018-08-06T11:11:03Z |
Finish moving period_helper to cython | diff --git a/ci/lint.sh b/ci/lint.sh
index ec99e1e559d6e..432be8f78aca6 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -93,7 +93,7 @@ if [ "$LINT" ]; then
# this particular codebase (e.g. src/headers, src/klib, src/msgpack). However,
# we can lint all header files since they aren't "generated" like C files are.
... | - [x] closes #19465
There is probably some cleanup that can be done now that period logic is self-contained.
No evident perf impact.
```
asv continuous -E virtualenv -f 1.1 master HEAD -b period
[...]
before after ratio
[776fed3a] [7cc0d9e8]
+ 1.14±0μs 1.28±0.... | https://api.github.com/repos/pandas-dev/pandas/pulls/22196 | 2018-08-04T20:46:44Z | 2018-08-07T12:57:38Z | 2018-08-07T12:57:37Z | 2018-08-08T15:51:31Z |
Run tests in conda build [ci skip] | diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml
index 2bc42c1bd2dec..f92090fecccf3 100644
--- a/conda.recipe/meta.yaml
+++ b/conda.recipe/meta.yaml
@@ -29,8 +29,11 @@ requirements:
- pytz
test:
- imports:
- - pandas
+ requires:
+ - pytest
+ commands:
+ - python -c "import pandas; pandas... | [ci skip]
This is to aid in the release process. Easiest to let conda-build run the tests by default, and disable them where we don't want to run them.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22190 | 2018-08-03T15:39:53Z | 2018-08-03T16:50:14Z | 2018-08-03T16:50:14Z | 2018-08-03T16:50:16Z |
DOC: Update the Series.str.len docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 6349af4d2e0ac..6ef736d8a0b09 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2801,11 +2801,48 @@ def rindex(self, sub, start=0, end=None):
return self._wrap_result(result)
_shared_docs['len'] = ("""
- Compute leng... | [X] PR title is "DOC: update the docstring"
[X] The PEP8 style check passes: git diff upstream/master -u -- "*.py" | flake8 --diff
[X] The html version looks good: python doc/make.py --single
| https://api.github.com/repos/pandas-dev/pandas/pulls/22187 | 2018-08-03T09:50:15Z | 2018-08-09T10:59:10Z | 2018-08-09T10:59:10Z | 2018-08-09T10:59:15Z |
CI: Fix Travis failures due to lint.sh on pandas/core/strings.py | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index b5b44a361a98d..39ecf7f49bc2e 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -293,7 +293,8 @@ def str_contains(arr, pat, case=True, flags=0, na=np.nan, regex=True):
See Also
--------
match : analogous, but stricter, re... | Travis builds are failing since `lint.sh` is catching a line that's too long in `pandas/core/strings.py`, e.g. https://travis-ci.org/pandas-dev/pandas/jobs/411505206 | https://api.github.com/repos/pandas-dev/pandas/pulls/22184 | 2018-08-02T23:29:58Z | 2018-08-03T01:58:33Z | 2018-08-03T01:58:33Z | 2018-08-03T16:39:40Z |
implement masked_arith_op to de-duplicate ops code | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index 9bf952633ccff..dc139a8e14f66 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -27,6 +27,7 @@
from pandas.core.dtypes.common import (
needs_i8_conversion,
is_datetimelike_v_numeric,
+ is_period_dtype,
is_integer_dtype, is_categorica... | ATM _arith_method_SERIES and _arith_method_FRAME have really similar fallback code. This de-duplicates those.
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/22182 | 2018-08-02T22:23:03Z | 2018-08-10T10:00:26Z | 2018-08-10T10:00:26Z | 2018-08-10T17:20:21Z |
Standardize special case in tz_conversion functions | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index a459b185fa48c..74a9823a85016 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -612,7 +612,7 @@ cpdef inline datetime localize_pydatetime(datetime dt, object tz):
# ---------------------... | ATM `_tz_convert_dst` handles iteration and masking differently (and more complicated-ly) than other related functions. AFAICT the reasoning is that this implementation is performant when the passed `vals` have a high proportion of `iNaT`s.
By changing this special case to conform to the standard pattern, we allow ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22181 | 2018-08-02T21:34:29Z | 2018-08-08T10:49:19Z | 2018-08-08T10:49:19Z | 2018-08-08T15:50:40Z |
Documentation: typo fixes in MultiIndex / Advanced Indexing | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index e530ece2e12c5..2be1a53aa6c93 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -21,7 +21,7 @@ See the :ref:`Indexing and Selecting Data <indexing>` for general indexing docum
.. warning::
- Whether a copy or a reference is r... | https://api.github.com/repos/pandas-dev/pandas/pulls/22179 | 2018-08-02T20:45:14Z | 2018-08-02T23:26:47Z | 2018-08-02T23:26:46Z | 2018-08-02T23:59:11Z | |
0.23.4 backports 1 | diff --git a/appveyor.yml b/appveyor.yml
index f70fc829ec971..c6199c1493f22 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -20,12 +20,14 @@ environment:
matrix:
- CONDA_ROOT: "C:\\Miniconda3_64"
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
... | Closes https://github.com/pandas-dev/pandas/issues/22166 | https://api.github.com/repos/pandas-dev/pandas/pulls/22178 | 2018-08-02T20:28:21Z | 2018-08-03T17:17:10Z | 2018-08-03T17:17:10Z | 2018-08-03T17:21:53Z |
0.23.4 whatsnew [ci skip] | diff --git a/doc/source/whatsnew/v0.23.4.txt b/doc/source/whatsnew/v0.23.4.txt
index c17f4ffdd6b8e..9a3ad3f61ee49 100644
--- a/doc/source/whatsnew/v0.23.4.txt
+++ b/doc/source/whatsnew/v0.23.4.txt
@@ -1,7 +1,7 @@
.. _whatsnew_0234:
-v0.23.4
--------
+v0.23.4 (August 3, 2018)
+------------------------
This is a mi... | [ci skip] | https://api.github.com/repos/pandas-dev/pandas/pulls/22177 | 2018-08-02T20:26:14Z | 2018-08-02T20:26:41Z | 2018-08-02T20:26:41Z | 2018-08-02T20:26:43Z |
DOC: update the Series.str.contains docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 6349af4d2e0ac..8317473a99f67 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -293,6 +293,8 @@ def str_contains(arr, pat, case=True, flags=0, na=np.nan, regex=True):
See Also
--------
match : analogous, but stricter, re... | updated see also section with two more examples | https://api.github.com/repos/pandas-dev/pandas/pulls/22176 | 2018-08-02T20:04:46Z | 2018-08-02T20:33:02Z | 2018-08-02T20:33:02Z | 2018-08-02T23:28:05Z |
DOC: updating the Series.str.cat docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 6349af4d2e0ac..0c0ddad5fb6d9 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2063,6 +2063,7 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
See Also
--------
split : Split each string in t... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/22175 | 2018-08-02T19:14:43Z | 2018-08-02T20:35:08Z | 2018-08-02T20:35:08Z | 2018-08-02T20:35:10Z |
DOC: update the Series.str.join docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 6349af4d2e0ac..7f630e3a3d8a4 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -1105,10 +1105,17 @@ def str_join(arr, sep):
Returns
-------
Series/Index: object
+ The list entries concatenated by intervening occur... | Checklist for the pandas documentation sprint (ignore this if you are doing an unrelated PR):
- [x] PR title is "DOC: update the docstring"
- [x] The validation script passes: scripts/validate_docstrings.py <your-function-or-method>
- [x] The PEP8 style check passes: git diff upstream/master -u -- "*.py" | flake8 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22174 | 2018-08-02T19:03:45Z | 2018-08-08T12:30:55Z | 2018-08-08T12:30:55Z | 2018-08-08T14:39:51Z |
Fix Series v Index bool ops | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9e2c20c78f489..0a82be89edeb2 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -809,5 +809,3 @@ Other
- :meth:`~pandas.io.formats.style.Styler.bar` now also supports tablewise application (in additi... | Series boolean ops tests need some serious cleanup and fleshing out. This gets separates out one fix before going in to clean up the tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/22173 | 2018-08-02T17:27:29Z | 2018-09-23T13:35:16Z | 2018-09-23T13:35:16Z | 2018-09-25T23:48:57Z |
BUG: fixed .str.contains(..., na=False) for categorical series | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d6f9bb66e1e28..89404fc4305f8 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1272,7 +1272,7 @@ Strings
- Bug in :meth:`Index.str.partition` was not nan-safe (:issue:`23558`).
- Bug in :meth:`I... | - [x] closes #22158
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22170 | 2018-08-02T14:02:13Z | 2018-11-20T01:13:57Z | 2018-11-20T01:13:57Z | 2018-11-20T01:14:01Z |
BUG: Fix using "inf"/"-inf" in na_values for csv with int index column | diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt
index 916a246355b5f..f298dac8ae6a7 100644
--- a/doc/source/whatsnew/v0.23.5.txt
+++ b/doc/source/whatsnew/v0.23.5.txt
@@ -40,3 +40,7 @@ Bug Fixes
-
-
+
+**I/O**
+
+- Bug in :func:`read_csv` that caused it to raise ``OverflowError`` when ... | - [x] closes #17128
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The issue happens when you try to use 'inf' or '-inf' as part of na_values in read_csv.
Code snippet to reproduce:
```
from StringIO import StringIO
import pandas as pd
... | https://api.github.com/repos/pandas-dev/pandas/pulls/22169 | 2018-08-02T11:56:34Z | 2018-08-09T10:38:01Z | 2018-08-09T10:38:01Z | 2018-08-09T11:02:46Z |
Fixed py36-only syntax [ci skip] | diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py
index 07634811370c7..3cf9a32dab398 100644
--- a/asv_bench/benchmarks/reshape.py
+++ b/asv_bench/benchmarks/reshape.py
@@ -141,7 +141,7 @@ class GetDummies(object):
def setup(self):
categories = list(string.ascii_letters[:12])... | Closes https://github.com/pandas-dev/pandas/issues/22162
[ci skip] | https://api.github.com/repos/pandas-dev/pandas/pulls/22167 | 2018-08-02T10:57:16Z | 2018-08-02T10:57:35Z | 2018-08-02T10:57:35Z | 2018-08-02T10:57:39Z |
TST: Check DatetimeIndex.drop on DST boundary | diff --git a/pandas/tests/indexes/datetimes/test_timezones.py b/pandas/tests/indexes/datetimes/test_timezones.py
index 67eb81336f648..b83645414c8ff 100644
--- a/pandas/tests/indexes/datetimes/test_timezones.py
+++ b/pandas/tests/indexes/datetimes/test_timezones.py
@@ -738,6 +738,28 @@ def test_dti_drop_dont_lose_tz(sel... | Title is self-explanatory.
Closes #18031.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22165 | 2018-08-02T07:50:57Z | 2018-08-03T15:09:50Z | 2018-08-03T15:09:50Z | 2018-08-03T17:01:23Z |
CLN: Use public method to capture UTC offsets | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 76e3d6e92d31e..14fd3f731480f 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -635,24 +635,12 @@ cpdef array_to_datetime(ndarray[object] values, errors='raise',
# If the dateutil parser returned tzinfo, capture ... | xref https://github.com/pandas-dev/pandas/pull/21822#discussion_r207023121
Per @pganssle's suggestion, avoiding using private dateutil methods to access the timezone offset and more succinctly using `utcoffset` instead
| https://api.github.com/repos/pandas-dev/pandas/pulls/22164 | 2018-08-02T05:00:40Z | 2018-08-02T10:29:49Z | 2018-08-02T10:29:48Z | 2018-08-02T17:02:06Z |
dispatch scalar DataFrame ops to Series | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index f26d3d76592d0..a09e32d8a315d 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -216,7 +216,7 @@ New Behavior:
idx = pd.interval_range(0, 4)
idx.values
-This mirrors ``CateogricalIndex.value... | Many issues closed; will track them down and update. Will also need whatsnew.
closes #18874
closes #20088
closes #15697
closes #13128
closes #8554
closes #8932
closes #21610
closes #22005
closes #22047
closes #22242
This will be less verbose after #22068 implements `ops.dispatch_to_series`.
This st... | https://api.github.com/repos/pandas-dev/pandas/pulls/22163 | 2018-08-02T01:36:24Z | 2018-08-14T10:49:12Z | 2018-08-14T10:49:10Z | 2020-04-05T17:40:29Z |
BUG: ensuring that np.asarray() simple handles data as objects and doesn't… | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 4bf62b021cddc..1757a73bf4473 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -134,7 +134,7 @@ def _ensure_data(values, dtype=None):
return values, dtype, 'int64'
# we have failed, return object
- values... | … try to do smart things (GH22160)
- [x] closes #22160
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22161 | 2018-08-01T15:36:00Z | 2018-08-10T10:38:15Z | 2018-08-10T10:38:15Z | 2018-08-11T19:45:01Z |
BUG: make conftest._cython_table deterministic for Python<3.6 | diff --git a/pandas/conftest.py b/pandas/conftest.py
index c714ce2228d09..94c07bc09267f 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -123,13 +123,10 @@ def all_arithmetic_operators(request):
return request.param
-# use sorted as dicts in py<3.6 have random order, which xdist doesn't like
-_cytho... | Closes a bug for Python < 3.6 where xdist gets non-deterministic input because of random dict ordering for Python < 3.6.
See #22156 for details. | https://api.github.com/repos/pandas-dev/pandas/pulls/22157 | 2018-08-01T12:45:11Z | 2018-08-20T10:36:43Z | 2018-08-20T10:36:43Z | 2018-09-20T21:12:59Z |
Fix deprecation warning in SeriesGroupBy.count | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 4c87f6122b956..d0a9413f011ed 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -46,6 +46,7 @@
from pandas.core.index import Index, MultiIndex, CategoricalIndex
from pandas.core.arrays.categorical impor... | See https://github.com/pandas-dev/pandas/pull/21957#issuecomment-409527005 | https://api.github.com/repos/pandas-dev/pandas/pulls/22155 | 2018-08-01T10:42:11Z | 2018-08-01T21:49:58Z | 2018-08-01T21:49:58Z | 2018-09-20T21:13:30Z |
~Finish collecting m8[ns] tests, start collecting division by zero tests | diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py
index 3d03a70553d2d..8d52bc9532136 100644
--- a/pandas/tests/frame/test_arithmetic.py
+++ b/pandas/tests/frame/test_arithmetic.py
@@ -89,116 +89,6 @@ def test_df_add_flex_filled_mixed_dtypes(self):
tm.assert_frame_equal(... | The division by zero tests aren't yet parametrized, are mostly just moved as-is. Both these and the newly moved m8[ns] tests will need a bunch of de-duplication in the next pass.
Tons of DataFrame tests failing. #22074 is the PR we need, though maybe not the one we deserve.
Started in on fixtures. | https://api.github.com/repos/pandas-dev/pandas/pulls/22153 | 2018-08-01T04:29:43Z | 2018-08-07T18:00:46Z | 2018-08-07T18:00:46Z | 2018-08-07T18:04:25Z |
implement tslibs/src to make tslibs self-contained | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index 8c7b92ddeaa81..a5e93640742aa 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -47,8 +47,8 @@ Numeric decoder derived from from TCL library
#include <numpy/np... | https://api.github.com/repos/pandas-dev/pandas/pulls/22152 | 2018-08-01T02:16:09Z | 2018-08-02T10:18:16Z | 2018-08-02T10:18:16Z | 2018-08-08T15:51:40Z | |
Catch IntervalIndex.itemsize deprecation warning in tests and remove IntervalArray.itemsize | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 60464bcfda1e7..76614454e5a10 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -688,10 +688,6 @@ def size(self):
def shape(self):
return self.left.shape
- @property
- def itemsize(s... | - [X] closes #22049
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I don't think a whatsnew entry is needed. This was already deprecated for `IntervalIndex`, but wasn't being caught in the tests, and was displaying the name from the underlying `left`/`right` values... | https://api.github.com/repos/pandas-dev/pandas/pulls/22149 | 2018-07-31T23:22:38Z | 2018-08-01T01:07:54Z | 2018-08-01T01:07:54Z | 2018-09-24T17:22:26Z |
use memoryviews instead of ndarrays | diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx
index ff92ee306288a..16cfde620d269 100644
--- a/pandas/_libs/hashing.pyx
+++ b/pandas/_libs/hashing.pyx
@@ -5,7 +5,7 @@
import cython
import numpy as np
-from numpy cimport ndarray, uint8_t, uint32_t, uint64_t
+from numpy cimport uint8_t, uint32_t, ui... | For lookups and slicing memoryviews are supposed to be more performant than ndarrays. I haven't been able to detect any difference. @xhochy IIRC you've looked at this in some depth; are memoryviews unambiguously better for our purposes?
Getting rid of `from numpy cimport [...]` is necessary (but not sufficient) fo... | https://api.github.com/repos/pandas-dev/pandas/pulls/22147 | 2018-07-31T21:27:59Z | 2018-08-01T21:53:24Z | 2018-08-01T21:53:24Z | 2018-08-01T22:16:39Z |
Replace (private) _checknull with (public) is_nan | diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx
index 16cfde620d269..a9775d3950187 100644
--- a/pandas/_libs/hashing.pyx
+++ b/pandas/_libs/hashing.pyx
@@ -3,14 +3,14 @@
# at https://github.com/veorq/SipHash
import cython
+from cpython cimport PyBytes_Check, PyUnicode_Check
+from libc.stdlib cimpor... | `util._checknull(x)` is equivalent to `x is None or isnan(x)`. On several occasions I have had to go remind myself what `_checknull` covers. It is much clearer to write out `x is None or util.is_nan(x)`, which is what this PR does.
In at least one place where `_checknull` is currently used, the `is None` part of i... | https://api.github.com/repos/pandas-dev/pandas/pulls/22146 | 2018-07-31T18:49:08Z | 2018-08-07T17:12:25Z | 2018-08-07T17:12:25Z | 2018-08-07T17:14:14Z |
Fix zillion deprecation warnings in core.dtypes.common | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 905073645fcb3..8f7f19c3a0b9f 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -2023,7 +2023,9 @@ def pandas_dtype(dtype):
# also catch some valid dtypes such as object, np.object_ and 'object'
# which... | Looking through a recent Travis log I see tons of these:
```
/home/travis/build/pandas-dev/pandas/pandas/core/dtypes/common.py:2026: DeprecationWarning: elementwise == comparison failed; this will raise an error in the future.
if dtype in [object, np.object_, 'object', 'O']:
```
This is driven by (probab... | https://api.github.com/repos/pandas-dev/pandas/pulls/22142 | 2018-07-31T03:48:25Z | 2018-08-01T01:05:58Z | 2018-08-01T01:05:58Z | 2018-08-08T15:52:25Z |
DOC: DataFrame.merge behaviour for suffix=(False, False) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 74f760f382c76..885139f72e3f0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -138,12 +138,11 @@
"""
_merge_doc = """
-Merge DataFrame or named Series objects by performing a database-style join
-operation by columns or indexes.
+Merge Da... | - [x] closes #22045
- N/A tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- N/A whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/22141 | 2018-07-31T03:23:52Z | 2018-09-04T15:04:56Z | 2018-09-04T15:04:55Z | 2018-09-04T16:50:21Z |
[TST] make xfails strict | diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py
index e082629a5433d..e5d620df96493 100644
--- a/pandas/tests/arrays/categorical/test_constructors.py
+++ b/pandas/tests/arrays/categorical/test_constructors.py
@@ -511,7 +511,8 @@ def test_constructi... | This leaves untouched xfails with reasons like "flaky on 3.7" and a few where the test itself is just a `pass`.
In the process a handful of previously xfailed cases are no longer xfailed. | https://api.github.com/repos/pandas-dev/pandas/pulls/22139 | 2018-07-31T01:18:06Z | 2018-08-01T10:25:13Z | 2018-08-01T10:25:13Z | 2018-08-01T15:43:24Z |
DOC: Update link and description of the Spyder IDE in Ecosystem docs | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 82ca3821fc2ed..1014982fea21a 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -14,7 +14,7 @@ development to remain focused around it's original requirements.
This is an inexhaustive list of projects that build on pandas in ... | Over the past few years, [Spyder](https://docs.spyder-ide.org/), a PyQt-based open source Python IDE focused on data science (comparable to MATLAB and Rstudio, but developed by community volunteers instead of a for-profit company), has incorporated a deep swath of ``pandas``-specific features and integration. We've als... | https://api.github.com/repos/pandas-dev/pandas/pulls/22136 | 2018-07-30T20:17:59Z | 2018-09-05T12:09:14Z | 2018-09-05T12:09:14Z | 2018-09-05T17:17:37Z |
DOC: read_html typo for displayed_only arg | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 45fe3b017e4f6..cca27db00f48d 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -1029,7 +1029,7 @@ def read_html(io, match='.+', flavor=None, header=None, index_col=None,
.. versionadded:: 0.19.0
- display_only : bool, default True
+ dis... | https://api.github.com/repos/pandas-dev/pandas/pulls/22134 | 2018-07-30T18:44:03Z | 2018-07-30T19:08:22Z | 2018-07-30T19:08:22Z | 2018-07-30T19:12:22Z | |
Add timetz attribute to DatetimeIndex | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 9056b1f47323a..551b3eff10fa0 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -545,6 +545,7 @@ These can be accessed like ``Series.dt.<property>``.
Series.dt.date
Series.dt.time
+ Series.dt.timetz
Series.dt.year
Series.dt.month
... | - [x] closes #21358
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I only added timetz to DatetimeIndex because there was already a timetz method in Timestamp that did essentially the same thing. If it is still worth adding to Timestamp though... | https://api.github.com/repos/pandas-dev/pandas/pulls/22132 | 2018-07-30T17:06:20Z | 2018-08-09T11:03:28Z | 2018-08-09T11:03:28Z | 2018-08-19T23:39:17Z |
BUG: Fix get dummies unicode error | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 8a92db4c66fb5..b7692f51c4ddf 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -660,6 +660,7 @@ Reshaping
- Bug in :meth:`Series.mask` and :meth:`DataFrame.mask` with ``list`` conditionals (:issue:`... | - [x] closes #22084
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/22131 | 2018-07-30T15:59:02Z | 2018-08-02T17:21:37Z | 2018-08-02T17:21:37Z | 2018-08-02T17:21:43Z |
Add Japanese version of Pandas_Cheat_Sheet | diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet_JP.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet_JP.pdf
new file mode 100644
index 0000000000000..746d1b6c980fe
Binary files /dev/null and b/doc/cheatsheet/Pandas_Cheat_Sheet_JP.pdf differ
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet_JP.pptx b/doc/cheatsheet/Pandas_Cheat_Sheet... | ## Background
We are sponsoring `PyCon` on September in Japan. And we are planning to influence Pandas in Japan. To do so, we are planning to distribute `Pandas Cheet Sheet` with plastic file at `Pycon`. | https://api.github.com/repos/pandas-dev/pandas/pulls/22127 | 2018-07-30T08:44:10Z | 2018-07-30T10:05:24Z | 2018-07-30T10:05:24Z | 2018-07-30T10:05:36Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.