title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
ENH: Support multiple opening hours intervals for BusinessHour | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index da939687500b6..b647b8cff2058 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -158,6 +158,7 @@ Other enhancements
- :meth:`DataFrame.describe` now formats integer percentiles without decimal point ... | - [x] closes #15481
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I'm not sure why, but after rebasing on latest master my previous PR #26400 is automatically closed. So I created a new PR here. I have edited as per all the comments there. | https://api.github.com/repos/pandas-dev/pandas/pulls/26628 | 2019-06-03T08:00:14Z | 2019-06-28T14:10:21Z | 2019-06-28T14:10:21Z | 2019-06-28T14:10:28Z |
DOC/CI: Removing Panel specific code from validate_docstrings.py | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 63db50db45a7c..64eaf45376b2f 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -539,14 +539,9 @@ def first_line_ends_in_dot(self):
if self.doc:
return self.doc.split('\n')[0][-1] ==... | - [X] xref #25632
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26627 | 2019-06-03T07:51:31Z | 2019-06-04T11:23:42Z | 2019-06-04T11:23:42Z | 2019-06-04T11:23:43Z |
Unpin pytest | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index e55a4fbdf3fa9..c6fd65570d97e 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -26,5 +26,5 @@ dependencies:
- pip
- pip:
# for python 3.5, pytest>=4.0.2 is not available in conda
- - pytest==4.5.0
... | Follow up from #26619. Since pytest have just done a point release for 4.6.1 we should be good to remove the pin.
https://github.com/pytest-dev/pytest/issues/5358
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/26625 | 2019-06-03T00:13:26Z | 2019-06-05T00:20:48Z | null | 2019-12-25T20:21:41Z |
DOC: Tidy documentation about plotting Series histograms | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index fed4b0d90983c..3f6a30c4639bc 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2477,8 +2477,6 @@ def hist_series(self, by=None, ax=None, grid=True, xlabelsize=None,
bin edges are calculated and returned. If bins is a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26624 | 2019-06-02T20:05:46Z | 2019-06-02T23:11:49Z | 2019-06-02T23:11:49Z | 2019-06-02T23:11:53Z | |
fixes #26622: pd.MultiIndex.isin should fail when input args are too short | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1619ba1a45739..cf586a6a7a043 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -608,6 +608,7 @@ MultiIndex
^^^^^^^^^^
- Bug in which incorrect exception raised by :class:`Timedelta` when testing ... | - [x] closes #26622
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This fixes #26622 by making `pd.MultiIndex.isin` fail when input args are too short, as well as when they are too long (the current behavior). It also replaces existing error me... | https://api.github.com/repos/pandas-dev/pandas/pulls/26623 | 2019-06-02T19:05:18Z | 2019-11-07T23:34:42Z | null | 2019-11-07T23:34:43Z |
DOC/CI: restore travis CI doc build environment | diff --git a/.travis.yml b/.travis.yml
index 90dd904e6cb1e..ce8817133a477 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -51,14 +51,14 @@ matrix:
# In allow_failures
- dist: trusty
env:
- - JOB="3.6, doc" ENV_FILE="environment.yml" DOC=true
+ - JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-do... | xref https://github.com/pandas-dev/pandas/pull/26591#issuecomment-498040997
This is one option (adding back the specific doc build environment yml file), another option would be to actually update the main `environment.yaml` file to be suitable for the doc build.
At the moment, my preference is to add back the sep... | https://api.github.com/repos/pandas-dev/pandas/pulls/26621 | 2019-06-02T15:38:29Z | 2019-06-03T05:35:26Z | 2019-06-03T05:35:26Z | 2019-06-03T07:28:29Z |
[CI] Add pytest-azurepipelines in pandas-dev | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index c783670e78d52..fe207d122657b 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -22,6 +22,7 @@ dependencies:
- hypothesis>=3.58.0
- pytest-xdist
- pytest-mock
+ - pytest-azurepipelines
- pip
- pip... | - closes #26601
Is it better to put `pip install pytest-azurepipelines` inside `setup_env.sh`? | https://api.github.com/repos/pandas-dev/pandas/pulls/26620 | 2019-06-02T11:28:58Z | 2019-06-28T14:12:24Z | 2019-06-28T14:12:24Z | 2019-06-28T14:12:45Z |
CI: pin pytest version on Python 3.5 | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index d0a48bd3f8b27..e55a4fbdf3fa9 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -26,5 +26,5 @@ dependencies:
- pip
- pip:
# for python 3.5, pytest>=4.0.2 is not available in conda
- - pytest>=4.0.2
... | closes #26614 | https://api.github.com/repos/pandas-dev/pandas/pulls/26619 | 2019-06-02T10:44:29Z | 2019-06-02T11:47:35Z | 2019-06-02T11:47:35Z | 2019-06-03T11:15:59Z |
PERF: custom ops for RangeIndex.[all|any|__contains__] | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1fb9b5ae695a0..0f31078d7bf43 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -502,7 +502,7 @@ Performance Improvements
- Improved performance of :meth:`Series.searchsorted`. The speedup is especia... | - [x] xref #26565
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Follow-up to #26565. Make ``RangeIndex._data`` be created in fewer cases.
Performance examples (but the larger gain is from memory savings by not creating the ``_data`` array):... | https://api.github.com/repos/pandas-dev/pandas/pulls/26617 | 2019-06-02T09:14:11Z | 2019-06-06T17:38:21Z | 2019-06-06T17:38:21Z | 2019-06-19T13:43:48Z |
CLN: Remove convert_objects | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index dfa475684c834..b4fb85c028b3e 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -48,7 +48,6 @@ Conversion
:toctree: api/
DataFrame.astype
- DataFrame.convert_objects
DataFrame.infer_object... | - [x] xref #6581
- [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/26612 | 2019-06-02T00:02:51Z | 2019-06-02T23:20:16Z | 2019-06-02T23:20:16Z | 2019-06-03T15:11:03Z |
CI: Removing doc build in azure | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 0064d0a932960..85325c52e7e6d 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -116,63 +116,3 @@ jobs:
fi
displayName: 'Running benchmarks'
condition: true
-
-- job: 'Docs'
- pool:
- vmImage: ubuntu-16.04
- timeoutInMinutes: ... | Stop building the docs in azure. Beside not working, azure became unreliable, raising random errors for unrelated changes.
See: #26591 #26602 #26604
CC: @jreback (sorry for the trouble, hopefully this takes things back to normality) | https://api.github.com/repos/pandas-dev/pandas/pulls/26609 | 2019-06-01T16:14:38Z | 2019-06-01T16:46:56Z | 2019-06-01T16:46:56Z | 2019-06-01T17:15:20Z |
TST/API: Forbid str-accessor for 1-level MultiIndex | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 461c883f542ab..0e8cd95084a8d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -434,6 +434,7 @@ Other API Changes
- The ``arg`` argument in :meth:`pandas.core.groupby.DataFrameGroupBy.agg` has been ... | - [x] closes #23679
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Another PR that had been blocked by #23167. | https://api.github.com/repos/pandas-dev/pandas/pulls/26608 | 2019-06-01T15:56:52Z | 2019-06-03T11:56:30Z | 2019-06-03T11:56:29Z | 2019-06-05T22:15:17Z |
Better error for str.cat with listlike of wrong dtype. | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c1d4797af9145..720cbdc2aeba8 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -613,7 +613,7 @@ Strings
^^^^^^^
- Bug in the ``__name__`` attribute of several methods of :class:`Series.str`, whic... | - [x] closes #22722
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This had been blocked on #23167. | https://api.github.com/repos/pandas-dev/pandas/pulls/26607 | 2019-06-01T15:51:00Z | 2019-06-14T12:27:01Z | 2019-06-14T12:27:01Z | 2019-06-14T18:16:15Z |
Clean up ufuncs post numpy bump | diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py
index ecc06db2bd07b..926ed6a829a6d 100644
--- a/pandas/core/arrays/sparse.py
+++ b/pandas/core/arrays/sparse.py
@@ -573,7 +573,6 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin):
Whether to explicitly copy the incomin... | Found an old branch lying around I had forgotten about after the numpy bump, which had been requested by @TomAugspurger in [this comment](https://github.com/pandas-dev/pandas/pull/25554#pullrequestreview-212474594)
| https://api.github.com/repos/pandas-dev/pandas/pulls/26606 | 2019-06-01T15:42:26Z | 2019-06-02T23:34:28Z | 2019-06-02T23:34:27Z | 2019-06-03T05:17:26Z |
PERF: Add if branch for empty sep in str.cat | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 54882d039f135..43514153b0515 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -59,6 +59,9 @@ def cat_core(list_of_columns: List, sep: str):
nd.array
The concatenation of list_of_columns with sep
"""
+ if sep == "... | Follow-up to #23167, resp dropping py2. The branch I'm readding here had to be deleted originally to pass some python2 bytes-tests. In case there is no separator, we can avoid all the list-ops and speed up cat_core by a fair bit. | https://api.github.com/repos/pandas-dev/pandas/pulls/26605 | 2019-06-01T15:32:46Z | 2019-07-31T12:29:59Z | 2019-07-31T12:29:59Z | 2019-07-31T13:26:42Z |
CI: Changing dev docs ssh key | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9f83917024049..0064d0a932960 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -161,7 +161,7 @@ jobs:
- task: InstallSSHKey@0
inputs:
hostName: 'github.com'
- sshPublicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHmz3l/EdqrgNxE... | #26591 made master builds to fail. Looks like there was a problem with the ssh keys. I regenerated them and updated them in the github deployment keys and azure pipelines secret. Updating the settings here.
CC: @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/26604 | 2019-06-01T15:15:21Z | 2019-06-01T15:34:58Z | 2019-06-01T15:34:58Z | 2019-06-01T16:09:22Z |
TST/CLN: deduplicate fixture from test_to_latex.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 8f71028f51ab4..09fe8e0829fa1 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -12,6 +12,8 @@
import pandas.util._test_decorators as td
import pandas as pd
+from pandas import DataFrame
+import pandas.util.testing as tm
hypothesis.settings.regi... | this PR is basically just to promote the float_frame fixture to top-level conftest.
once there, there is opportunities to re-use by fixturising current instances of
```
df = DataFrame(tm.getSeriesData())
```
also allows removing duplicate fixture from pandas/tests/io/formats/test_to_latex.py
so this is j... | https://api.github.com/repos/pandas-dev/pandas/pulls/26603 | 2019-06-01T15:04:51Z | 2019-06-02T23:13:09Z | 2019-06-02T23:13:09Z | 2019-06-03T11:15:20Z |
CI: Disabling dev docs push from azure-pipelines while we fix it | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9f83917024049..828c995a4201a 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -171,7 +171,9 @@ jobs:
- script: |
cd doc/build/html
git remote add origin git@github.com:pandas-dev/pandas-dev.github.io.git
- git push origin ma... | master builds are failing, this temporary fixes them while we figure out why the ssh key is not working.
See: #26591
CC: @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/26602 | 2019-06-01T14:54:46Z | 2019-06-01T15:10:11Z | null | 2019-06-03T08:00:35Z |
MAINT: Condense TIMEZONE_IDS construction | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 09fe8e0829fa1..c4285e9db038a 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -378,12 +378,7 @@ def unique_nulls_fixture(request):
FixedOffset(0), FixedOffset(-300), timezone.utc,
timezone(timedelta(hours=1)),
... | Follow-up to #26596 | https://api.github.com/repos/pandas-dev/pandas/pulls/26600 | 2019-06-01T06:33:07Z | 2019-06-06T14:50:05Z | 2019-06-06T14:50:05Z | 2019-06-06T18:11:24Z |
CLN: remove sample_time attributes from benchmarks | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 0fdf46e7c64de..896a20bae2069 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -52,7 +52,6 @@ def time_is_dates_only(self):
class Ops:
- sample_time = 0.2
params = ['... | Very minor benchmark cleanup now that I was on it...
These attributes appear to have been brought in by direct replacement of a
deprecated ASV attribute goal_time -> sample_time, but the two have
different semantics (the value sample_time=0.2 is 20x the default).
Increasing this from the default value is probably... | https://api.github.com/repos/pandas-dev/pandas/pulls/26598 | 2019-05-31T17:57:53Z | 2019-06-01T14:08:20Z | 2019-06-01T14:08:20Z | 2019-06-01T14:08:37Z |
TST: prepare conftest for #25637 | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 3c411f8ba3e31..8f71028f51ab4 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -376,10 +376,16 @@ def unique_nulls_fixture(request):
FixedOffset(0), FixedOffset(-300), timezone.utc,
timezone(timedelta(hours=1)),
... | Split off from #25637 at the [request](https://github.com/pandas-dev/pandas/pull/25637#discussion_r289447555) of @gfyoung
Relevant discussions:
https://github.com/pandas-dev/pandas/pull/25637#discussion_r289042255
https://github.com/pandas-dev/pandas/pull/25637#discussion_r289441644
| https://api.github.com/repos/pandas-dev/pandas/pulls/26596 | 2019-05-31T16:01:11Z | 2019-06-01T00:17:54Z | 2019-06-01T00:17:54Z | 2019-06-01T15:14:11Z |
Test conda 4.7.1 | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 6d4afccb57865..20cad1bb4af96 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -21,7 +21,9 @@ jobs:
displayName: 'Add conda to PATH'
- script: conda update -q -n base conda
displayName: Update conda
- - script: conda env ... | Testing conda 4.7.x | https://api.github.com/repos/pandas-dev/pandas/pulls/26595 | 2019-05-31T14:44:43Z | 2019-06-26T11:21:37Z | 2019-06-26T11:21:37Z | 2019-06-26T12:17:57Z |
TST: add concrete examples of dataframe fixtures to docstrings | diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py
index 27c0e070c10c2..c451cd58f1497 100644
--- a/pandas/tests/frame/conftest.py
+++ b/pandas/tests/frame/conftest.py
@@ -11,6 +11,25 @@ def float_frame():
Fixture for DataFrame of floats with index of unique strings
Columns are ['A'... | add concrete examples of dataframe fixtures to docstrings to make it easier when looking for fixtures to reuse.
and also appear when using `pytest --fixtures` and `pytest --fixtures-per-test` so could be an aid to debugging
```
------------------ fixtures used by test_set_index_directly -------------------
----... | https://api.github.com/repos/pandas-dev/pandas/pulls/26593 | 2019-05-31T14:22:30Z | 2019-06-01T14:09:28Z | 2019-06-01T14:09:28Z | 2019-06-03T11:16:28Z |
CI/DOC: Building documentation with azure | diff --git a/.travis.yml b/.travis.yml
index ce8817133a477..90dd904e6cb1e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -51,14 +51,14 @@ matrix:
# In allow_failures
- dist: trusty
env:
- - JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
+ - JOB="3.6, doc" ENV_FILE="environme... | - [X] xref #22766, #26574
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26591 | 2019-05-31T12:36:54Z | 2019-06-01T14:12:41Z | 2019-06-01T14:12:40Z | 2019-06-02T15:29:18Z |
remove outdated gtk package from code | diff --git a/doc/source/install.rst b/doc/source/install.rst
index b3b5945cc515e..98443ede2e965 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -281,7 +281,6 @@ Optional Dependencies
`qtpy <https://github.com/spyder-ide/qtpy>`__ (requires PyQt or PySide),
`PyQt5 <https://www.riverbankcomputin... | - [x] closes #26563
- [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/26590 | 2019-05-31T12:11:28Z | 2019-06-02T21:09:45Z | 2019-06-02T21:09:45Z | 2019-06-02T21:09:53Z |
Convert Unions to TypeVar | diff --git a/pandas/_typing.py b/pandas/_typing.py
index f5bf0dcd3e220..a2bb168c1e2da 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,5 +1,5 @@
from pathlib import Path
-from typing import IO, AnyStr, Type, Union
+from typing import IO, AnyStr, TypeVar, Union
import numpy as np
@@ -11,12 +11,14 @@
f... | - [x] closes #26453
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/26588 | 2019-05-31T08:31:49Z | 2019-06-08T21:55:31Z | 2019-06-08T21:55:31Z | 2019-06-09T03:12:26Z |
Revert test_constructors xfail | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index f371f4e93a29e..68017786eb6a6 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -15,7 +15,7 @@
import pandas as pd
from pandas import (
Categorical, DataFrame, I... | Reverts https://github.com/pandas-dev/pandas/pull/26548
xref https://github.com/numpy/numpy/pull/13663
Closes https://github.com/pandas-dev/pandas/issues/26546
| https://api.github.com/repos/pandas-dev/pandas/pulls/26586 | 2019-05-31T02:56:57Z | 2019-05-31T03:40:37Z | 2019-05-31T03:40:37Z | 2019-05-31T03:40:37Z |
BUG: fix TypeError for invalid integer dates %Y%m%d with errors='ignore' | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1619ba1a45739..5d30cbe9e2a15 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -529,6 +529,7 @@ Datetimelike
- Bug in :func:`to_datetime` which does not replace the invalid argument with ``NaT`` whe... | - [x] closes #26583
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
array_strptime returned TypeError when trying to slice 'too long' integer for the given format %Y%m%d (for example 2121010101).
After parsing date in the first 8 symbols i... | https://api.github.com/repos/pandas-dev/pandas/pulls/26585 | 2019-05-31T02:06:51Z | 2019-06-05T19:06:15Z | 2019-06-05T19:06:14Z | 2019-06-05T19:06:47Z |
Add more specific error message when user passes incorrect matrix format to from_coo | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1619ba1a45739..95b7b3dce82da 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -692,7 +692,7 @@ Sparse
- Significant speedup in :class:`SparseArray` initialization that benefits most operations, fix... | - [x] closes #26554
- [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/26584 | 2019-05-31T01:31:58Z | 2019-06-02T23:42:55Z | 2019-06-02T23:42:55Z | 2019-06-02T23:43:04Z |
use range in RangeIndex instead of _start etc. | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 461c883f542ab..295452c300931 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -473,6 +473,9 @@ Other Deprecations
the :meth:`SparseArray.to_dense` method instead (:issue:`26421`).
- The function... | - [x] xref #26565
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Make RangeIndex use python's ``range`` internally, rather than the three scalars ``_start``, ``_stop`` and ``_step``.
Python3's ``range`` has several nice properties, that wer... | https://api.github.com/repos/pandas-dev/pandas/pulls/26581 | 2019-05-30T20:37:22Z | 2019-06-05T12:50:34Z | 2019-06-05T12:50:34Z | 2019-06-05T12:59:33Z |
ENH: Named aggregation in SeriesGroupBy.agg | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 2014dbd9865f3..9895fc606f70d 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -595,7 +595,7 @@ accepts the special syntax in :meth:`GroupBy.agg`, known as "named aggregation",
animals.gr... | ```python
In [4]: animals = pd.DataFrame({'kind': ['cat', 'dog', 'cat', 'dog'],
...: 'height': [9.1, 6.0, 9.5, 34.0],
...: 'weight': [7.9, 7.5, 9.9, 198.0]})
...: animals.groupby("kind").height.agg(max_height='max')
Out[4]:
max_height
kin... | https://api.github.com/repos/pandas-dev/pandas/pulls/26580 | 2019-05-30T19:14:12Z | 2019-06-10T12:45:05Z | 2019-06-10T12:45:05Z | 2019-06-10T12:45:08Z |
Remove SharedItems from test_excel | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index 7693caf3b31d2..b99f0336fa4c5 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -26,13 +26,22 @@
from pandas.io.formats.excel import ExcelFormatter
from pandas.io.parsers import read_csv
-_seriesd = tm.ge... | Pretty big step towards logically partitioning tests in this module - replaced SharedItems and instance attributes with fixtures. Should make subsequent test reorg easier
@simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/26579 | 2019-05-30T18:57:20Z | 2019-06-05T12:59:13Z | 2019-06-05T12:59:12Z | 2020-01-16T00:34:49Z |
CLN: use RangeIndex._range instead of RangeIndex._start etc. | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index f8488b7a153e3..25d222fa1027e 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -541,36 +541,37 @@ def _concat_rangeindex_same_dtype(indexes):
"""
from pandas import Int64Index, RangeIndex
- start ... | - [x] xref #26565
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Make RangeIndex use python's ``range`` internally, rather than the three scalars ``_start``, ``_stop`` and ``_step``.
Python3's ``range`` has several nice properties, that wer... | https://api.github.com/repos/pandas-dev/pandas/pulls/26578 | 2019-05-30T18:35:06Z | 2019-05-30T19:53:11Z | null | 2019-05-30T20:17:41Z |
TST: update tests\plotting\test_frame.py message check for mpl 3.1.0 | diff --git a/pandas/plotting/_compat.py b/pandas/plotting/_compat.py
index 4077bef8f36f5..36bbe0f4ec174 100644
--- a/pandas/plotting/_compat.py
+++ b/pandas/plotting/_compat.py
@@ -17,3 +17,4 @@ def inner():
_mpl_ge_2_2_3 = _mpl_version('2.2.3', operator.ge)
_mpl_ge_3_0_0 = _mpl_version('3.0.0', operator.ge)
+_mpl_... | new error message for df.plot.line
https://travis-ci.org/pandas-dev/pandas/jobs/539282780 | https://api.github.com/repos/pandas-dev/pandas/pulls/26577 | 2019-05-30T17:09:13Z | 2019-05-30T19:51:04Z | 2019-05-30T19:51:04Z | 2019-05-30T21:54:40Z |
PERF/CI: fix benchmark import error + run asv check on all builds | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 0c1d861ce0839..5b76eeba115a4 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -96,6 +96,8 @@ def time_dict_rename_both_axes(self):
class Iteration:
+ # mem_itertuples... | Fix benchmark suite import error on master and 0.23.
Run `asv check` on all commits to lint the benchmark suite.
Also, fixed a timeout error that appears on newer asv versions,
which have an updated asizeof.py module. | https://api.github.com/repos/pandas-dev/pandas/pulls/26575 | 2019-05-30T14:31:41Z | 2019-05-30T19:16:58Z | 2019-05-30T19:16:58Z | 2019-05-30T19:17:06Z |
DOC: sparse doc fixups | diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst
index 8fed29d7a6316..09ed895a847ff 100644
--- a/doc/source/user_guide/sparse.rst
+++ b/doc/source/user_guide/sparse.rst
@@ -269,7 +269,7 @@ have no replacement.
Interaction with scipy.sparse
-----------------------------
-Use :meth:`Da... | https://api.github.com/repos/pandas-dev/pandas/pulls/26571 | 2019-05-30T11:29:20Z | 2019-06-01T14:35:26Z | 2019-06-01T14:35:26Z | 2019-06-02T15:26:33Z | |
BUG: Fix RecursionError when using a scalar point to select IntervalIndex columns | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 89a9da4a73b35..339e2c7e4800a 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -482,7 +482,7 @@ Interval
- Construction of :class:`Interval` is restricted to numeric, :class:`Timestamp` and :class... | - [X] closes #26490
- [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/26570 | 2019-05-30T07:01:19Z | 2019-07-19T05:24:45Z | null | 2019-07-19T05:24:45Z |
PERF: don't call RangeIndex._data unnecessarily | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 896a20bae2069..78fe2ae966896 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -94,6 +94,12 @@ def time_min(self):
def time_min_trivial(self):
self.idx_inc.min()
+... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I've looked into ``RangeIndex`` and found that the index type creates and caches a int64 array if/when ``RangeIndex._data`` property is being called. This basically means that in... | https://api.github.com/repos/pandas-dev/pandas/pulls/26565 | 2019-05-29T19:50:55Z | 2019-06-01T17:03:59Z | 2019-06-01T17:03:59Z | 2019-06-01T17:28:14Z |
Provide ExtensionDtype.construct_from_string by default | diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py
index 42aa6a055acca..29337b7f76131 100644
--- a/pandas/core/arrays/integer.py
+++ b/pandas/core/arrays/integer.py
@@ -78,17 +78,6 @@ def construct_array_type(cls):
"""
return IntegerArray
- @classmethod
- def construct_... | - [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I think it makes sense to provide a standard `construct_from_string` by default, instead of forcing subclasses of `ExtensionDtype` to implement it.
This way we can define a si... | https://api.github.com/repos/pandas-dev/pandas/pulls/26562 | 2019-05-29T16:26:27Z | 2019-06-06T14:28:26Z | 2019-06-06T14:28:26Z | 2019-06-11T07:51:54Z |
BUG: ignore errors for invalid dates in to_datetime() with errors=coerce (#25512) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 32faf7115f0fd..e81bc57317c89 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -359,6 +359,7 @@ Datetimelike
- Bug in :class:`Series` and :class:`DataFrame` repr where ``np.datetime64('NaT')`` and `... | - [x] closes #25512
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
parsing.try_parse_year_month_day() in _attempt_YYYYMMDD() throws not only ValueError but also OverFlowError for incorrect dates. So handling of this error was added.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26561 | 2019-05-29T11:20:50Z | 2019-06-01T14:45:07Z | 2019-06-01T14:45:07Z | 2019-06-01T14:45:56Z |
TST/CLN: Fixturize tests/frame/test_quantile.py | diff --git a/pandas/tests/frame/test_quantile.py b/pandas/tests/frame/test_quantile.py
index a5771839e0997..9ccbd290923ba 100644
--- a/pandas/tests/frame/test_quantile.py
+++ b/pandas/tests/frame/test_quantile.py
@@ -3,24 +3,24 @@
import pandas as pd
from pandas import DataFrame, Series, Timestamp
-from pandas.test... | - xref #22471
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26556 | 2019-05-29T07:29:18Z | 2019-06-01T14:48:37Z | 2019-06-01T14:48:37Z | 2019-06-01T14:48:43Z |
Remove Unnecessary Subclasses from test_excel | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 3af6be7a371e7..24412b26b021b 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -591,7 +591,7 @@ class ExcelWriter(metaclass=abc.ABCMeta):
def __new__(cls, path, engine=None, **kwargs):
# only switch class if gener... | More cleanup... | https://api.github.com/repos/pandas-dev/pandas/pulls/26553 | 2019-05-29T05:14:28Z | 2019-05-30T01:49:17Z | 2019-05-30T01:49:17Z | 2019-05-30T01:49:20Z |
BUG: preserve categorical & sparse types when grouping / pivot & preserve dtypes on ufuncs | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index a6b74865f6619..2e4959b44aeeb 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -316,6 +316,68 @@ of ``object`` dtype. :attr:`Series.str` will now infer the dtype data *within* t
s
s.str.sta... | closes #18502
closes #23743 | https://api.github.com/repos/pandas-dev/pandas/pulls/26550 | 2019-05-29T01:07:08Z | 2019-06-27T02:15:12Z | null | 2019-06-27T02:15:13Z |
xfail constructor test for numpydev | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index bd871c47fa08b..3499d631376d8 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -12,6 +12,7 @@
_np_version_under1p15 = _nlv < LooseVersion('1.15')
_np_version_under1p16 = _nlv < LooseVersion('1.16')... | xref #26546. It seems like that will be fixed upstream, which will require new wheels. xfailing for now.
When fixed and new wheels are available, this will fail again, but we can merge PRs in the meantime. | https://api.github.com/repos/pandas-dev/pandas/pulls/26548 | 2019-05-28T17:05:01Z | 2019-05-28T20:21:42Z | 2019-05-28T20:21:41Z | 2019-05-28T20:21:52Z |
CI: unary operator expected error in log files | diff --git a/ci/setup_env.sh b/ci/setup_env.sh
index e2667558a63d7..8f73bb228e2bd 100755
--- a/ci/setup_env.sh
+++ b/ci/setup_env.sh
@@ -118,12 +118,12 @@ echo "conda list"
conda list
# Install DB for Linux
-if [ ${TRAVIS_OS_NAME} == "linux" ]; then
+if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
echo "installing d... | fix error in azure log
```
ci/setup_env.sh: line 121: [: ==: unary operator expected
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/26547 | 2019-05-28T13:57:11Z | 2019-05-29T10:17:25Z | 2019-05-29T10:17:25Z | 2019-05-29T10:18:52Z |
Fixturize Test Excel | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index 100de227aa97c..6db3d1d4ab34d 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -22,7 +22,7 @@
from pandas.io.common import URLError
from pandas.io.excel import (
ExcelFile, ExcelWriter, _OpenpyxlWrite... | Continued simplification of this module by moving towards pytest idiom. Here I have eliminated any test instance methods and replaced with fixtures
| https://api.github.com/repos/pandas-dev/pandas/pulls/26543 | 2019-05-28T06:55:14Z | 2019-05-30T01:02:01Z | 2019-05-30T01:02:01Z | 2019-05-30T01:48:43Z |
CLN: pd.options.html.border | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 32faf7115f0fd..276812a564e03 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -315,6 +315,7 @@ Removal of prior version deprecations/changes
- Removed the previously deprecated ``sheetname`` keywor... | - [x] xref #6581
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26540 | 2019-05-27T18:01:47Z | 2019-05-27T18:44:00Z | 2019-05-27T18:44:00Z | 2019-05-27T18:44:03Z |
CI Testing: Set Memory Layout On Purpose | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 6af6f3093c120..9518e50f61042 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -119,6 +119,10 @@
__git_version__ = v.get('full-revisionid')
del get_versions, v
+from pandas.core.layout import ArrayLayout
+array_layout = ArrayLayout()
+array_layout... | - [ ] closes #26502
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26538 | 2019-05-27T14:28:18Z | 2019-05-29T10:13:33Z | null | 2019-06-03T09:14:45Z |
Add reader for SPSS (.sav) files | diff --git a/LICENSES/HAVEN_LICENSE b/LICENSES/HAVEN_LICENSE
new file mode 100644
index 0000000000000..2f444cb44d505
--- /dev/null
+++ b/LICENSES/HAVEN_LICENSE
@@ -0,0 +1,2 @@
+YEAR: 2013-2016
+COPYRIGHT HOLDER: Hadley Wickham; RStudio; and Evan Miller
diff --git a/LICENSES/HAVEN_MIT b/LICENSES/HAVEN_MIT
new file mode ... | - [x] closes #5768 (at least the reading part, this PR does not cover writing SPSS files)
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I haven't added a test yet because I wanted to ask which test .sav file I should use (and where to put it).... | https://api.github.com/repos/pandas-dev/pandas/pulls/26537 | 2019-05-27T11:49:42Z | 2019-06-16T14:30:39Z | 2019-06-16T14:30:39Z | 2019-07-19T13:19:30Z |
Add typing annotation to assert_index_equal | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 92d450140a891..107c17c5253fb 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -12,6 +12,7 @@
import string
import tempfile
import traceback
+from typing import Union, cast
import warnings
import zipfile
@@ -515,9 +516,14 @@ def... | - xref #26302
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26535 | 2019-05-27T07:39:24Z | 2019-06-08T21:45:50Z | 2019-06-08T21:45:50Z | 2019-06-08T21:45:55Z |
BUG: assignment to multiple columns when some column do not exist | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 0be4ebc627b30..67a7a9387589c 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -40,6 +40,37 @@ Backwards incompatible API changes
- :class:`pandas.core.groupby.GroupBy.transform` now raises on invalid o... | - [x] closes #13658
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
In particular, the following code now behaves correctly.
```python
import pandas as pd
df = pd.DataFrame({'a': [0, 1, 2], 'b': [3, 4, 5]})
df[['a', 'c']] = 1
print(df)
`... | https://api.github.com/repos/pandas-dev/pandas/pulls/26534 | 2019-05-27T05:21:08Z | 2019-10-22T02:04:40Z | null | 2019-11-02T03:20:23Z |
DOC: fix broken link for .iloc | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3c7a286c8a4f8..93e56834b62f6 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1940,7 +1940,7 @@ class _iLocIndexer(_LocationIndexer):
out-of-bounds, except *slice* indexers which allow out-of-bounds
indexing (this confo... | https://api.github.com/repos/pandas-dev/pandas/pulls/26533 | 2019-05-26T18:13:38Z | 2019-05-27T15:04:17Z | 2019-05-27T15:04:17Z | 2019-05-27T15:09:36Z | |
Feature: Memory Layout of DataFrames ndarrays can be set/changed | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 97ae73174c09c..48ec613c638c5 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -38,6 +38,9 @@
# let init-time option registration happen
import pandas.core.config_init
+from pandas.core.layout import ArrayLayout
+
+ArrayLayout().order = 'F'
fro... | - [ ] closes #26502
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26529 | 2019-05-26T12:19:13Z | 2019-05-26T23:04:13Z | null | 2019-05-26T23:04:13Z |
Feature/switchable memory layout order | diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000000..e947f30d285cd
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,147 @@
+version: 2
+jobs:
+
+ # --------------------------------------------------------------------------
+ # 0. py27_compat
+ # ----------------------... | - [x] closes #26502
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26528 | 2019-05-26T12:11:57Z | 2019-05-26T12:12:20Z | null | 2019-05-26T12:12:20Z |
Docstring GL01 GL02 fixes | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index 4353e0b3edd08..b092541da93e6 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -196,7 +196,7 @@ def decorator(accessor):
return decorator
-_doc = """\
+_doc = """
Register a custom accessor on %(klass)s objects.
Parame... | - [X] closes #24071 and also includes requested fixes from #25324
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26526 | 2019-05-26T11:04:55Z | 2019-06-21T02:10:49Z | 2019-06-21T02:10:49Z | 2019-06-21T02:10:54Z |
Select/Set memory layout order for DataFrames | diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000000..e947f30d285cd
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,147 @@
+version: 2
+jobs:
+
+ # --------------------------------------------------------------------------
+ # 0. py27_compat
+ # ----------------------... | - [ ] closes #26502
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26525 | 2019-05-26T10:57:05Z | 2019-05-26T11:00:01Z | null | 2019-05-26T11:00:10Z |
merging | diff --git a/doc/source/conf.py b/doc/source/conf.py
index e7d358c7961ab..971aa04ba866a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -319,7 +319,7 @@
pd.options.display.max_rows = 15
import os
- os.chdir('{}')
+ os.chdir(r'{}')
""".format(os.path.dirname(os.path.dirname(__file__)))
dif... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26524 | 2019-05-26T05:36:36Z | 2019-05-26T06:21:52Z | null | 2019-05-26T09:59:53Z |
CLN: remove StringMixin from code base, except in core.computation | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 0f7f6fe399256..11f705e88179d 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -32,7 +32,6 @@
to_datetime)
from pandas.core.arrays.categorical import Categorical
from pandas.core.arrays.sparse import BlockIndex, IntIndex
-from panda... | - [x] xref #25725 & #26495
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes use of ``StringMixin`` from pandas.io StringMixin is now only used in pandas.core.computation.
I haven't been able to remove this class from core.computation. If I do, I get an erro... | https://api.github.com/repos/pandas-dev/pandas/pulls/26523 | 2019-05-25T16:58:59Z | 2019-05-26T14:31:44Z | 2019-05-26T14:31:44Z | 2019-05-26T15:30:36Z |
CLN: Remove deprecated parse_cols from read_excel | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c51441f701a45..32faf7115f0fd 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -313,8 +313,8 @@ Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Removed... | - [x] xref #6581
- [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/26522 | 2019-05-25T16:37:42Z | 2019-05-25T18:40:15Z | 2019-05-25T18:40:15Z | 2019-05-26T02:50:12Z |
CLN: standardize string repr to use __repr__ | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 3f59871fb5b38..5e6f7a91ad5ca 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -34,31 +34,28 @@
class StringMixin:
"""
- Implements string methods so long as object defines a `__str__` method.
+ Require that an object defines a `__re... | - [x] xref #25725 & #26495
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes use of ``StringMixin`` from io.pytables and from io.stata. It's now only used in core.computation.
I haven't been able to remove this class from core.computation. If I do, I get an ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26521 | 2019-05-25T14:00:20Z | 2019-05-25T14:56:40Z | null | 2019-05-25T14:56:40Z |
Fixed docstrings as referenced in issue no: #24071 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index e7d358c7961ab..971aa04ba866a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -319,7 +319,7 @@
pd.options.display.max_rows = 15
import os
- os.chdir('{}')
+ os.chdir(r'{}')
""".format(os.path.dirname(os.path.dirname(__file__)))
dif... | - [1] closes #24071
- [1] tests added / passed
- [0] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [0] whatsnew entry
tests : `./scripts/validate_docstrings.py --prefix=pandas.core --errors=GL01,GL02` | https://api.github.com/repos/pandas-dev/pandas/pulls/26520 | 2019-05-25T13:39:34Z | 2019-05-26T10:17:47Z | null | 2019-05-26T10:22:55Z |
Issue/26506 Provides correct desciption in docstring that get_indexer methods are not yet supported | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index eff7ff2c9f347..caf881ef069e6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -52,6 +52,7 @@
_index_doc_kwargs = dict(klass='Index', inplace='',
target_klass='Index',
+ ... | - [x] fixes docstring for #26506 until implementation is ready
- [x] 46585 tests passed - none added as documentation change only
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
```
$ git diff upstream/master -u -- "*.py" | flake8 --diff && echo yes
yes
```
- [x] whatsnew entry
Provides cor... | https://api.github.com/repos/pandas-dev/pandas/pulls/26519 | 2019-05-25T01:58:28Z | 2019-05-30T01:27:47Z | 2019-05-30T01:27:47Z | 2019-05-30T01:28:19Z |
Fix type annotations in pandas.core.indexes.period | diff --git a/mypy.ini b/mypy.ini
index 3df8fd13a2a75..eea6a3b551677 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -7,6 +7,3 @@ ignore_errors=True
[mypy-pandas.core.indexes.datetimelike]
ignore_errors=True
-
-[mypy-pandas.core.indexes.period]
-ignore_errors=True
diff --git a/pandas/core/indexes/period.py b/pandas/core/ind... | - [x] closes #26517
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26518 | 2019-05-25T00:10:42Z | 2019-05-29T12:40:41Z | 2019-05-29T12:40:40Z | 2019-05-29T16:44:54Z |
MAINT: port numpy#13188 for np_datetime simplification | diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/datetime/np_datetime.c
index 87866d804503e..a8a47e2e90f93 100644
--- a/pandas/_libs/tslibs/src/datetime/np_datetime.c
+++ b/pandas/_libs/tslibs/src/datetime/np_datetime.c
@@ -498,6 +498,27 @@ npy_datetime npy_datetimestruct_to_datetim... | Bring numpy changes about emulating the behavior of python's divmod to
pandas.
- [x] closes #26500
- [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/26516 | 2019-05-24T21:43:24Z | 2019-05-26T17:57:48Z | 2019-05-26T17:57:48Z | 2019-05-26T17:57:59Z |
BUG: fix categorical comparison with missing values (#26504 ) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 89a9da4a73b35..6604199930bc5 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -414,7 +414,7 @@ Categorical
^^^^^^^^^^^
- Bug in :func:`DataFrame.at` and :func:`Series.at` that would raise except... | - [x] closes #26504
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR fixes issues comparison of ordered categorical with missing values evaluates to True(#26504 ). Now making comparison with missing values always gives False. The missing... | https://api.github.com/repos/pandas-dev/pandas/pulls/26514 | 2019-05-24T19:31:13Z | 2019-06-01T14:51:27Z | 2019-06-01T14:51:27Z | 2019-06-01T14:51:33Z |
CLN: Remove StringMixin from PandasObject | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1fff30525853d..483091c939d0c 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -213,6 +213,20 @@ are returned. (:issue:`21521`)
df.groupby("a").ffill()
+``__str__`` methods now call ``__repr... | - [x] closes #26495
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Addresses #26495. In addition to the use of StringMixin in PandasObject, StringMixin is also used in core.computation and the io.pytables. I'd like to tackle those in a differen... | https://api.github.com/repos/pandas-dev/pandas/pulls/26505 | 2019-05-23T16:36:03Z | 2019-05-24T15:29:33Z | 2019-05-24T15:29:33Z | 2019-05-25T07:32:31Z |
DOC: fix SyntaxError in doc build on Windows | diff --git a/doc/source/conf.py b/doc/source/conf.py
index e7d358c7961ab..971aa04ba866a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -319,7 +319,7 @@
pd.options.display.max_rows = 15
import os
- os.chdir('{}')
+ os.chdir(r'{}')
""".format(os.path.dirname(os.path.dirname(__file__)))
| i'm getting this error for most files during doc build on Windows...
```
>>>-------------------------------------------------------------------------
Exception in C:\Users\simon\OneDrive\code\pandas-simonjayhawkins\doc\source\development\contributing.rst at block ending on line None
Specify :okexcept: as an optio... | https://api.github.com/repos/pandas-dev/pandas/pulls/26499 | 2019-05-22T22:46:53Z | 2019-05-23T13:04:57Z | 2019-05-23T13:04:57Z | 2019-05-24T06:32:59Z |
DOC: Fixed redirects in various parts of the documentation | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index d25ccd1b158be..230602612ac66 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -272,7 +272,8 @@ class Categorical(ExtensionArray, PandasObject):
Notes
-----
See the `user guide... | Links in the docs to part way down a page were being sent to the top of the page due to a generic redirect from pandas.pydata.org/pandas-doc/stable/... -> pandas.pydata.org/pandas-doc/stable/user_guide/... . These links have been change to go straight to the .../user_guide/... version of the page to ensure the link goe... | https://api.github.com/repos/pandas-dev/pandas/pulls/26497 | 2019-05-22T21:00:45Z | 2019-05-31T12:41:11Z | 2019-05-31T12:41:11Z | 2019-06-03T19:32:49Z |
DOC: Highlighted role of index alignment in DataFrame.dot(other) (#26… | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6bfa63012689d..7d501e8095921 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -944,7 +944,9 @@ def dot(self, other):
Notes
-----
The dimensions of DataFrame and other must be compatible in order to
- compute ... | …480)
- [X] closes #26480
- [X] tests passed
Added note highlighting that column names of DataFrame and index of other need to same.
Added example showing that reshuffling of objects does not change which elements are multiplied with which. | https://api.github.com/repos/pandas-dev/pandas/pulls/26496 | 2019-05-22T20:45:53Z | 2019-05-23T16:46:21Z | 2019-05-23T16:46:20Z | 2019-05-25T12:56:50Z |
TST: Test sorting levels not aligned with index (#25775) | diff --git a/pandas/tests/frame/test_sorting.py b/pandas/tests/frame/test_sorting.py
index 246ba943a4509..96aeb608ba3b8 100644
--- a/pandas/tests/frame/test_sorting.py
+++ b/pandas/tests/frame/test_sorting.py
@@ -227,6 +227,18 @@ def test_stable_descending_multicolumn_sort(self):
kin... | - [x] closes #25775
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (empty since no user-facing changs)
With `master` at 6d2398a58fda68e40f116f199439504558c7774c, issue #25775 seems resolved. Added validation tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/26492 | 2019-05-22T19:04:53Z | 2019-06-05T12:54:35Z | 2019-06-05T12:54:35Z | 2019-06-05T12:54:40Z |
Fixed typo mutiplication -> multiplication | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index afe37bf198ab7..6bfa63012689d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -918,7 +918,7 @@ def __len__(self):
def dot(self, other):
"""
- Compute the matrix mutiplication between the DataFrame and other.
+ Co... | Docstring typo fix only. | https://api.github.com/repos/pandas-dev/pandas/pulls/26489 | 2019-05-22T13:18:29Z | 2019-05-22T13:58:19Z | 2019-05-22T13:58:19Z | 2019-05-22T14:02:33Z |
DOC/CLN: Change API reference section title | diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst
index 680cb7e3dac91..42ebf648f299f 100644
--- a/doc/source/reference/indexing.rst
+++ b/doc/source/reference/indexing.rst
@@ -2,9 +2,9 @@
.. _api.indexing:
-========
-Indexing
-========
+=============
+Index Objects
+=============
... | https://api.github.com/repos/pandas-dev/pandas/pulls/26486 | 2019-05-22T10:51:41Z | 2019-05-24T15:11:26Z | 2019-05-24T15:11:26Z | 2019-05-29T10:55:19Z | |
DOC/CLN: wil -> will | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 76910f425836e..623e2b4863029 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -926,7 +926,7 @@ def squeeze(self, axis=None):
a 1
Name: 0, dtype: int64
- Squeezing all axes wil project directly into a scal... | https://api.github.com/repos/pandas-dev/pandas/pulls/26484 | 2019-05-21T20:38:52Z | 2019-05-21T22:33:42Z | 2019-05-21T22:33:42Z | 2019-05-22T14:09:46Z | |
Better error message for DataFrame.hist() without numerical columns (… | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 90297ecfa3415..fed4b0d90983c 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2426,6 +2426,10 @@ def hist_frame(data, column=None, by=None, grid=True, xlabelsize=None,
data = data._get_numeric_data()
naxes = len(dat... | Closes #10444
Added simple check for non-zero number of numeric columns plus suggested error message in case the check fails.
Happy to make any adjustments this if desired.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26483 | 2019-05-21T19:16:14Z | 2019-05-24T15:47:02Z | 2019-05-24T15:47:02Z | 2019-05-25T12:57:38Z |
CLN: Remove StringMixin from pandas.core.computation | diff --git a/pandas/core/computation/expr.py b/pandas/core/computation/expr.py
index 32bd34c4db7d7..8f37738964d60 100644
--- a/pandas/core/computation/expr.py
+++ b/pandas/core/computation/expr.py
@@ -13,7 +13,6 @@
import pandas as pd
from pandas.core import common as com
-from pandas.core.base import StringMixin
... | - [x] xref #25725
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
StringMixin is not really useful anymore and only functions to reverse the calling order of ``__str__`` and ``__repr__``, which is now not-standard in Python3.
This removes the usage of StringMixin in pandas.core.computation. ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26482 | 2019-05-21T19:10:18Z | 2019-05-21T19:58:28Z | null | 2019-10-15T20:11:01Z |
CLN: pd.TimeGrouper | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 30bc332f8a04b..f9b356110055b 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -270,7 +270,7 @@ Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Removed... | - [x] xref #6581
- [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/26477 | 2019-05-21T00:50:21Z | 2019-05-24T22:07:54Z | 2019-05-24T22:07:54Z | 2019-06-04T21:18:49Z |
Fix the output of df.describe on an empty categorical / object column | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 89a9da4a73b35..cee1778e05bb8 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -253,6 +253,34 @@ are returned. (:issue:`21521`)
df.groupby("a").ffill()
+``DataFrame`` describe on an empty ca... | - [x] closes #26397
- [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/26474 | 2019-05-20T18:50:35Z | 2019-06-01T14:52:36Z | 2019-06-01T14:52:36Z | 2019-06-01T14:52:41Z |
Excel Test Cleanup - ReadWriteClass | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index 112d14795d9bf..f9926cd26d8da 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -49,7 +49,6 @@ def ignore_xlrd_time_clock_warning():
yield
-@td.skip_if_no('xlrd', '1.0.0')
class SharedItems:
... | The tests we have in this module need a pretty big refactor as they mix a few testing idioms together. This is slowing down contributions on items like #25092 and #25427
This is going to require quite a few PRs to get it where it needs to be. This one simply:
- Moves tests that require both reading and writing i... | https://api.github.com/repos/pandas-dev/pandas/pulls/26473 | 2019-05-20T18:21:47Z | 2019-05-24T16:01:09Z | 2019-05-24T16:01:09Z | 2020-01-16T00:34:48Z |
Fix bug where list like object not returning empty Index. | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 1be7e0736f9fe..7d71cb22f49ed 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3095,7 +3095,7 @@ def _ensure_valid_index(self, value):
passed value.
"""
# GH5632, make sure that we are a Series convertible
- ... | - [x] closes #17101
- [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/26471 | 2019-05-20T14:12:39Z | 2019-08-22T11:40:59Z | 2019-08-22T11:40:59Z | 2019-08-22T11:41:02Z |
DOC: fix example with Timestamp/integer addition | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index ca788963971ad..4ea7c656fd197 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -868,7 +868,7 @@ You can also set using these same indexers.
.. ipython:: python
- df.at[dates[-1] + ... | Remaining warning that is being raised in the examples in the docs (the others are related to pyarrow). | https://api.github.com/repos/pandas-dev/pandas/pulls/26467 | 2019-05-20T08:49:00Z | 2019-05-20T13:14:57Z | 2019-05-20T13:14:57Z | 2019-05-20T13:14:58Z |
Add defensive check for argument errors keyword in to_numeric | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index b2d1aa299a45a..9e04dcaa41416 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -41,6 +41,7 @@ Other Enhancements
- :meth:`DataFrame.query` and :meth:`DataFrame.eval` now supports quoting column name... | - [x] closes #26394
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Added defensive check for argument `errors` in func `to_numeric`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26466 | 2019-05-20T06:59:11Z | 2019-05-20T11:11:37Z | 2019-05-20T11:11:36Z | 2019-05-20T11:11:50Z |
DOC: #25723 passing kwargs to excel document engine | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 0abd073c7dc07..88d8ccbbe036e 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2341,10 +2341,10 @@ round-trippable manner.
.. ipython:: python
df = pd.DataFrame({'foo': [1, 2, 3, 4],
- 'bar': ['... | - [x] closes #25723
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This pr tries to address #25723.
Made a small addition to the ExcelFile section of user_guide/io.rst regarding the discussion in #25723.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26465 | 2019-05-20T06:31:35Z | 2019-05-20T16:31:05Z | 2019-05-20T16:31:05Z | 2019-05-20T16:31:13Z |
CLN: Remove ExcelWriter.sheetname | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index ac9857715dde4..c51441f701a45 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -312,7 +312,7 @@ Deprecations
Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | - [x] xref https://github.com/pandas-dev/pandas/issues/6581
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
cc @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/26464 | 2019-05-20T02:57:43Z | 2019-05-25T01:18:05Z | 2019-05-25T01:18:05Z | 2019-05-25T15:51:35Z |
Fix 'observed' kwarg not doing anything on SeriesGroupBy | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2c66d3e4db321..2e9709f7bdd8f 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -512,6 +512,7 @@ Groupby/Resample/Rolling
- Bug in :func:`pandas.core.groupby.GroupBy.agg` when applying a aggregation ... | - [x] closes #24880
- [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/26463 | 2019-05-19T21:13:24Z | 2019-05-30T01:33:50Z | 2019-05-30T01:33:50Z | 2019-06-17T14:10:26Z |
Fix 'observed' kwarg not doing anything on SeriesGroupBy | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 2f665975f96bd..dc414a588a2ce 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -25,7 +25,6 @@
from pandas.core.dtypes.missing import isna, notna
import pandas.core.algorithms as algorithms
-from pand... | - [x] closes #24880
- [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/26461 | 2019-05-19T20:42:13Z | 2019-05-19T21:38:09Z | null | 2019-05-19T22:09:05Z |
Remove py.path special handling from io.common | diff --git a/pandas/io/common.py b/pandas/io/common.py
index f9cd1806763e2..34635ebf64ad6 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -9,6 +9,7 @@
import lzma
import mmap
import os
+import pathlib
from urllib.error import URLError # noqa
from urllib.parse import ( # noqa
urlencode, urljoin... | - [x] closes #26450
- [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/26458 | 2019-05-19T05:18:58Z | 2019-05-26T01:48:03Z | 2019-05-26T01:48:03Z | 2019-05-26T05:34:25Z |
WIP: Add indent support in to_json | diff --git a/pandas/_libs/src/ujson/lib/ultrajson.h b/pandas/_libs/src/ujson/lib/ultrajson.h
index 0470fef450dde..51c482da67943 100644
--- a/pandas/_libs/src/ujson/lib/ultrajson.h
+++ b/pandas/_libs/src/ujson/lib/ultrajson.h
@@ -244,6 +244,10 @@ typedef struct __JSONObjectEncoder {
If true, '<', '>', and '&' charact... | - [X] closes #12004
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a WIP and requires a little more refinement (namely around how `level` is incremented in the extension module, testing arrays) but is more or less the direction I think ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26457 | 2019-05-19T04:31:48Z | 2019-05-20T19:40:28Z | null | 2020-01-16T00:34:47Z |
BUG-26214 fix colors parameter in DataFrame.boxplot | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 75b705372c747..0144ec211fd03 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -229,6 +229,7 @@ Plotting
- Bug in :meth:`DataFrame.plot` producing incorrect legend markers when plotting multiple series ... | - [X] closes #26214
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This PR fixes issues in the handling of the `color` parameter in the implementation of `DataFrame.boxplot` that do not exist in `DataFrame.plot.box`
- the `color` parameter i... | https://api.github.com/repos/pandas-dev/pandas/pulls/26456 | 2019-05-19T04:30:48Z | 2019-09-20T03:36:34Z | 2019-09-20T03:36:34Z | 2019-09-20T03:36:41Z |
BUG: Fix for pd.read_fwf not reading addinfourl object | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index b89646d465fff..637e8c16aeb79 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -417,6 +417,7 @@ I/O
- Fixed memory leak in :meth:`DataFrame.to_json` when dealing with numeric data (:issue:`24889`)
... | - [x] closes #26376
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
----
Not sure, how to add a new test for this particular case. Is it is possible without creating a `addinfourl` object with a specific URL? Thanks.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26455 | 2019-05-19T04:26:59Z | 2019-06-27T03:34:39Z | null | 2019-06-27T03:34:39Z |
TST/DEPR: remove .ix from tests\indexing\multiindex\test_loc.py | diff --git a/pandas/tests/indexing/multiindex/test_ix.py b/pandas/tests/indexing/multiindex/test_ix.py
index 6b6e1dbd859a2..5ea172f14f6f6 100644
--- a/pandas/tests/indexing/multiindex/test_ix.py
+++ b/pandas/tests/indexing/multiindex/test_ix.py
@@ -1,5 +1,6 @@
from warnings import catch_warnings, simplefilter
+impor... | follow on from #26438
i leave this as draft until #26438 is merged, to prevent this one being merged first.
not used `iloc` for the expected where dropping levels would be required, used df.values instead. | https://api.github.com/repos/pandas-dev/pandas/pulls/26451 | 2019-05-18T23:52:46Z | 2019-05-19T20:28:39Z | 2019-05-19T20:28:39Z | 2019-05-19T20:45:40Z |
Annotate to_json | diff --git a/pandas/io/common.py b/pandas/io/common.py
index f9cd1806763e2..79c4f1ca4f83c 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -9,12 +9,14 @@
import lzma
import mmap
import os
+import pathlib
from urllib.error import URLError # noqa
from urllib.parse import ( # noqa
urlencode, urljo... | Simple annotations as I was looking at the code
@gwrome and @vaibhavhrt | https://api.github.com/repos/pandas-dev/pandas/pulls/26449 | 2019-05-18T20:15:32Z | 2019-05-27T00:11:19Z | null | 2020-01-16T00:34:46Z |
CLN: remove __bytes__ | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index dc87ae8f48b8a..cf46a7f193b5a 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -250,6 +250,7 @@ Other API Changes
- Bug in :meth:`DatetimeIndex.snap` which didn't preserving the ``name`` of the inpu... | - [x] xref #25725
Remove ``__bytes__`` method from ``StringMixin`` and ``PandasExtensionDtype``. These are the only uses of ``__bytes__`` in the code base.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26447 | 2019-05-18T16:25:17Z | 2019-05-19T17:08:08Z | 2019-05-19T17:08:08Z | 2019-05-19T17:08:14Z |
Clean Up src/parsers | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 2eb19ef1dd082..88b918e9cc515 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -149,9 +149,6 @@ cdef extern from "parser/tokenizer.h":
int skipinitialspace # ignore spaces following delimiter? */
int quo... | Looking at this in detail noticed quite a few unused functions and pre-processor directives. There was also a mismatch in types between the .pyx and C structs | https://api.github.com/repos/pandas-dev/pandas/pulls/26445 | 2019-05-18T15:33:25Z | 2019-05-18T16:15:55Z | 2019-05-18T16:15:55Z | 2019-05-18T16:35:01Z |
DEPR: deprecate __bytes__ methods | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 895af0cd5b89a..b2994c5be4047 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -258,7 +258,7 @@ Deprecations
- Deprecated the ``units=M`` (months) and ``units=Y`` (year) parameters for ``units`` of ... | - [x] xref #25725
Deprecate the use of ``__bytes__`` method from ``StringMixin`` and ``PandasExtensionDtype``. These are the only uses of ``__bytes__`` in the code base.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26444 | 2019-05-18T00:05:24Z | 2019-05-18T00:24:36Z | null | 2019-05-18T00:49:35Z |
TST/CLN: remove try/except from test_column_contains_typeerror | diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py
index 8013ddfeb38f9..d1b009a7fa8e2 100644
--- a/pandas/tests/frame/test_api.py
+++ b/pandas/tests/frame/test_api.py
@@ -111,11 +111,9 @@ def test_keys(self, float_frame):
getkeys = float_frame.keys
assert getkeys() is float_f... | https://api.github.com/repos/pandas-dev/pandas/pulls/26442 | 2019-05-17T20:53:35Z | 2019-05-18T00:42:23Z | 2019-05-18T00:42:23Z | 2019-05-18T01:50:16Z | |
TST: Iterrows making incorrect assumptions about datetime | diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py
index d1b009a7fa8e2..ce841b302a037 100644
--- a/pandas/tests/frame/test_api.py
+++ b/pandas/tests/frame/test_api.py
@@ -1,4 +1,5 @@
from copy import deepcopy
+import datetime
import pydoc
import numpy as np
@@ -222,6 +223,17 @@ def test_i... | - [x] closes #12222
- [x] 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/26441 | 2019-05-17T19:39:00Z | 2019-05-18T14:16:55Z | 2019-05-18T14:16:55Z | 2019-05-18T21:18:38Z |
ERR: User-facing AssertionError in DataFrame Constructor | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 2ee49c30b226d..2cd53d2ce9cee 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -424,8 +424,13 @@ def _list_to_arrays(data, columns, coerce_float=False, dtype=None):
else:... | - [x] closes #26429
- [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/26440 | 2019-05-17T15:00:15Z | 2019-05-18T14:12:47Z | 2019-05-18T14:12:46Z | 2019-05-18T21:19:29Z |
DEPR: Change .ix DeprecationWarning -> FutureWarning | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index d38ee7b8b589a..5f43512b69098 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -255,6 +255,7 @@ Other API Changes
Deprecations
~~~~~~~~~~~~
+- The deprecated ``.ix[]`` indexer now raises a more v... | closes https://github.com/pandas-dev/pandas/issues/15152 | https://api.github.com/repos/pandas-dev/pandas/pulls/26438 | 2019-05-17T06:27:15Z | 2019-05-19T17:15:07Z | 2019-05-19T17:15:07Z | 2019-05-19T17:15:10Z |
DOC: Test doctests in pandas/core/reshape/concat.py | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 3d1ec637ae202..a3943f11c2e72 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -243,6 +243,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pytest -q --doctest-modules pandas/core/tools/datetimes.py
RET=$(($RET + $?)) ; echo $MSG "DONE... | - [x] closes #26436
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26437 | 2019-05-17T01:58:25Z | 2019-05-17T01:59:15Z | null | 2019-05-17T02:04:37Z |
CLN: remove unused code check for pytest.raises | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 3d1ec637ae202..a16580679ff54 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -169,15 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -r -E --include '*.py' '(unittest(\.| import )mock|mock\.Mock\(\)|mock\.patch)' pandas/tests... | xref #25866
| https://api.github.com/repos/pandas-dev/pandas/pulls/26435 | 2019-05-16T22:52:42Z | 2019-05-17T12:51:08Z | 2019-05-17T12:51:08Z | 2019-05-17T13:50:50Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.