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 |
|---|---|---|---|---|---|---|---|
DOC: Adding examples to Series.eq | diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py
index 93f197366cf32..6240864086d5b 100644
--- a/pandas/core/ops/docstrings.py
+++ b/pandas/core/ops/docstrings.py
@@ -233,6 +233,43 @@ def _make_flex_doc(op_name, typ):
dtype: float64
"""
+_eq_example_SERIES = """
+Examples
+--------
+>>> s1... | Firstimer, let me know of any changes need to be done
- [ ] 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/28500 | 2019-09-18T15:11:49Z | 2019-11-11T07:10:53Z | null | 2019-11-11T07:10:53Z |
WEB: Adding governance document to the website | diff --git a/web/pandas/about/team.md b/web/pandas/about/team.md
index 8eb2edebec817..b27433bb6a5e2 100644
--- a/web/pandas/about/team.md
+++ b/web/pandas/about/team.md
@@ -50,7 +50,7 @@ If you want to support pandas development, you can find information in the [dona
Wes McKinney is the Benevolent Dictator for Life ... | This adds the governance document to the new website.
The rest of the information in the governance repo should already be in the website, so we shouldn't need that repo anymore.
Advantages I see on having this in the website:
- Users can see the governance information from the website, with the same look and fe... | https://api.github.com/repos/pandas-dev/pandas/pulls/28499 | 2019-09-18T14:33:27Z | 2019-11-14T16:53:46Z | null | 2019-11-14T16:53:46Z |
TST: added a test case for special character in file name | diff --git a/pandas/tests/io/parser/test_common.py b/pandas/tests/io/parser/test_common.py
index 756463e9d8d33..3d657418e43cd 100644
--- a/pandas/tests/io/parser/test_common.py
+++ b/pandas/tests/io/parser/test_common.py
@@ -2167,7 +2167,7 @@ def test_suppress_error_output(all_parsers, capsys):
compat.is_platform_... | Added special character use case in the existing function "test_filename_with_special_chars"
- [x] closes #26074
- [x] 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/28498 | 2019-09-18T14:19:29Z | 2019-09-19T05:17:22Z | 2019-09-19T05:17:22Z | 2019-09-19T09:58:03Z |
WEB: Deployment of development website with the docs | diff --git a/README.md b/README.md
index d5e71fc4740cf..7786eeb0ec5c7 100644
--- a/README.md
+++ b/README.md
@@ -225,7 +225,7 @@ Most development discussion is taking place on github in this repo. Further, the
All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.
... | After this is merged, https://dev.pandas.io will have the new website, and the dev docs will be in https://dev.pandas.io/docs
| https://api.github.com/repos/pandas-dev/pandas/pulls/28497 | 2019-09-18T14:09:07Z | 2019-09-19T14:00:03Z | 2019-09-19T14:00:03Z | 2019-09-19T14:00:03Z |
DOC: add example of pyarrow usage favored over the deprecated to_msgpack | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 42de85945cbcb..728ececd59f6c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2524,6 +2524,17 @@ def to_msgpack(self, path_or_buf=None, encoding="utf-8", **kwargs):
It is recommended to use pyarrow for on-the-wire transmissi... | - [ ] closes #xxxx
- no issue opened
- [ ] tests added / passed
- no, only docs modified
- [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/28494 | 2019-09-18T06:22:12Z | 2019-09-18T13:48:44Z | 2019-09-18T13:48:44Z | 2019-09-19T11:55:04Z |
TST: parametrize test_expressions | diff --git a/pandas/tests/io/excel/test_xlsxwriter.py b/pandas/tests/io/excel/test_xlsxwriter.py
index 4dae3db2e7abd..63e41c59ecb89 100644
--- a/pandas/tests/io/excel/test_xlsxwriter.py
+++ b/pandas/tests/io/excel/test_xlsxwriter.py
@@ -50,7 +50,7 @@ def test_column_format(ext):
try:
read_num_fo... | and an unrelated excel test cleanup that slipped in somehow | https://api.github.com/repos/pandas-dev/pandas/pulls/28493 | 2019-09-18T03:20:36Z | 2019-09-20T12:51:24Z | 2019-09-20T12:51:24Z | 2019-09-20T14:14:37Z |
BUG: Raise when casting NaT to int | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 8755abe642068..4db4cab9ea91c 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -781,6 +781,7 @@ Datetimelike
- Bug in :class:`Timestamp` subtraction when subtracting a :class:`Timestamp` from a ``np.dat... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] whatsnew entry
Fixes a bug in `astype_nansafe` where `NaT` was ignored when casting a datetime or timedelta to `int`. I put the test in `pandas/tests/dtypes/test_common.py` since I couldn't find another place where `astype_nansafe` was tested. Also add... | https://api.github.com/repos/pandas-dev/pandas/pulls/28492 | 2019-09-18T03:17:27Z | 2020-01-01T17:02:11Z | 2020-01-01T17:02:11Z | 2020-01-01T18:52:11Z |
CI: Check for whitespaces before class | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 07c99b39e83e8..ab7bd7895a596 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -190,6 +190,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -R --include="*.rst" ".. ipython ::" doc/source
RET=$(($RET + $?)) ; echo $MSG "DONE"
... | xref #28209, https://github.com/python-sprints/pandas-mentoring/issues/161
Validate that we use
```python
class Foo:
"""
Doc.
"""
pass
```
instead of:
```python
class Bar:
"""
Doc.
"""
pass
```
(note the blank line between `class Bar:` and the docstring. | https://api.github.com/repos/pandas-dev/pandas/pulls/28489 | 2019-09-18T01:15:41Z | 2019-11-13T01:28:54Z | 2019-11-13T01:28:54Z | 2019-11-13T01:28:58Z |
REF: raise scalar_data_error to make mypy happy | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 2dbd592fc6787..f3ee6450cc3bc 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -452,7 +452,7 @@ def __new__(
elif hasattr(data, "__array__"):
return Index(np.asarray(data), dtype=dtype, copy=co... | @simonjayhawkins do I need to update a config file or enable something? | https://api.github.com/repos/pandas-dev/pandas/pulls/28484 | 2019-09-17T15:30:02Z | 2019-09-17T16:10:43Z | 2019-09-17T16:10:43Z | 2019-09-17T16:22:15Z |
CLN: Clean up of CI scripts | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index 6093df46ffb60..281107559a38c 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -60,15 +60,21 @@ jobs:
echo "Creating Environment"
ci/setup_env.sh
displayName: 'Setup environment and build pandas'
+
- script: |
so... | Making the CI scripts simpler, and fixing typos (this was part of #26949, which couldn't be merged because `--dist=loadfile` was making the tests much slower).
| https://api.github.com/repos/pandas-dev/pandas/pulls/28482 | 2019-09-17T12:52:40Z | 2019-09-19T15:19:35Z | 2019-09-19T15:19:35Z | 2019-09-19T15:19:35Z |
TST: Parametrize and cleanup Exception | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index bc7b979d2c7d0..6f7222f523579 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -78,17 +78,6 @@ def assert_invalid_comparison(left, right, box):
ri... | https://api.github.com/repos/pandas-dev/pandas/pulls/28478 | 2019-09-17T03:34:29Z | 2019-09-17T16:42:31Z | 2019-09-17T16:42:31Z | 2019-09-17T18:23:18Z | |
BUG: Raise when casting infinity to int | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index a9140fa20ceef..da8d88fe6cbb1 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -174,6 +174,7 @@ Indexing
- Bug in assignment using a reverse slicer (:issue:`26939`)
- Bug in reindexing a :meth:`PeriodI... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] whatsnew entry
Raises a `ValueError` when attempting to cast a `Float64Index` with infinite values to a (non-`ExtensionArray`) integer dtype. Currently this returns a garbage value:
```
idx ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28475 | 2019-09-17T01:54:13Z | 2019-09-17T22:10:54Z | 2019-09-17T22:10:54Z | 2019-09-19T13:40:57Z |
BUG: Check for duplicate names columns and index in crosstab | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8b18b56929acd..d2b732536d9e8 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -341,11 +341,11 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
+- Bug in :meth:`DataFrame.crosstab` when duplicated row... | - [x] closes #22529
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
**Problem:** Currently if you give two Series with the same name to pd.crosstab it will ignore one of the columns. By minimally modifying a current ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28474 | 2019-09-17T01:32:07Z | 2020-11-22T05:14:07Z | null | 2022-12-15T15:02:53Z |
pyperclip upgrade | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index b40a64420a0be..370e1c09d33aa 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -396,6 +396,7 @@ I/O
- Bug in :meth:`pandas.io.formats.style.Styler` formatting for floating values not displaying decimals... | - [x] closes https://github.com/pandas-dev/pandas/issues/22707
- [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/28471 | 2019-09-16T21:49:44Z | 2019-11-07T15:41:30Z | 2019-11-07T15:41:30Z | 2019-11-07T18:27:25Z |
POC: deprecation with strict removal version | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index eb8eae7034f39..699fe390ff6d9 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -30,7 +30,12 @@
from pandas.compat._optional import import_optional_dependency
from pandas.compat.numpy import function as nv
from pandas.errors import A... | xref #28415
Decorator that just registers the deprecation in a dict that we can check and test-time. | https://api.github.com/repos/pandas-dev/pandas/pulls/28470 | 2019-09-16T21:36:24Z | 2019-09-17T22:01:56Z | null | 2019-09-17T22:02:00Z |
ENH: Explode multiple columns of DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f1ed3a125f60c..72ea208a8b801 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6205,7 +6205,7 @@ def stack(self, level=-1, dropna=True):
else:
return stack(self, level, dropna=dropna)
- def explode(self, column: Uni... | Now .explode() can take a list of column names and will explode multiple at the same time (given that each element across all the columns have the same length in every single row
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --... | https://api.github.com/repos/pandas-dev/pandas/pulls/28465 | 2019-09-16T16:36:51Z | 2019-09-18T13:35:59Z | null | 2019-09-18T13:35:59Z |
ENH: DataFrame.explode() multiple columns | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f1ed3a125f60c..af85888cc7cd0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6205,16 +6205,16 @@ def stack(self, level=-1, dropna=True):
else:
return stack(self, level, dropna=dropna)
- def explode(self, column: U... | - [ ] 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/28464 | 2019-09-16T16:15:56Z | 2019-09-16T16:16:22Z | null | 2019-09-16T16:26:11Z |
Pandas get_dummies validate `columns` input | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index ea52736cb11a7..e6c2db152d75c 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -346,6 +346,7 @@ Reshaping
- Bug in :func:`merge`, did not append suffixes correctly with MultiIndex (:issue:`28518`)
- :f... | - [x] closes #28383
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The Test code is inspired from a similar tests in
`RaiseError`: https://github.com/pandas-dev/pandas/blob/master/pandas/tests/arrays/categorical/te... | https://api.github.com/repos/pandas-dev/pandas/pulls/28463 | 2019-09-16T15:16:31Z | 2019-10-22T01:31:32Z | 2019-10-22T01:31:31Z | 2019-10-22T13:29:41Z |
BUG: fix size()/count() when resamping empty series (#28427) | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 0027343a13b60..26d794045daa7 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -433,6 +433,7 @@ Groupby/resample/rolling
-
- Bug in :meth:`DataFrame.groupby` with multiple groups where an ``IndexErro... | - [X] closes #28427
- [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/28459 | 2019-09-16T14:54:32Z | 2019-11-19T13:42:59Z | 2019-11-19T13:42:58Z | 2019-11-19T13:44:24Z |
Build table schema version fix | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index de411ef63680a..8005748dfbc52 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -100,7 +100,7 @@ Other
^^^^^
- Compatibility with Python 3.8 in :meth:`DataFrame.query` (:issue:`27261`)
--
+- Bug i... | - [x] Issue #28455
- [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/28457 | 2019-09-16T14:38:35Z | 2019-09-16T16:03:49Z | null | 2019-09-16T16:03:50Z |
REF: Refactor sparse HDF5 read / write | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index c78e27f098f13..53c1d8c6c5777 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -69,7 +69,7 @@ Other API changes
^^^^^^^^^^^^^^^^^
- :meth:`pandas.api.types.infer_dtype` will now return "integer-na" f... | In preparation for the removal of SparseSeries and SparseDataFrame, we
read into a Series[sparse] / DataFrame[sparse]. https://github.com/pandas-dev/pandas/pull/28425
cc @jreback @jorisvandenbossche.
I've just done the minimal amount to get this working. It may shed some light on how we can design an API for dis... | https://api.github.com/repos/pandas-dev/pandas/pulls/28456 | 2019-09-16T14:34:49Z | 2019-09-18T14:23:40Z | null | 2019-09-18T14:23:40Z |
Annotate DataFrame Part 2 (Rendering Methods) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 44d3d840016fe..b7961b28f0252 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -15,7 +15,7 @@
import itertools
import sys
from textwrap import dedent
-from typing import FrozenSet, List, Optional, Set, Tuple, Type, Union
+from typing import... | - [x] part of #26792
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] annotate all rendering methods of `pandas.core.frame.DataFrame`
| https://api.github.com/repos/pandas-dev/pandas/pulls/28453 | 2019-09-16T09:08:55Z | 2019-09-20T14:32:33Z | 2019-09-20T14:32:33Z | 2019-09-20T14:38:51Z |
TST: Fix sqlite3 transactions test | diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py
index 25727447b4c6f..89bc98b5a1006 100644
--- a/pandas/tests/io/test_sql.py
+++ b/pandas/tests/io/test_sql.py
@@ -26,8 +26,6 @@
import numpy as np
import pytest
-from pandas.compat import PY36
-
from pandas.core.dtypes.common import is_datetime... | The sqlite connection is already in transaction when the test starts, so
when the test intentionally raises an exception, the entire transaction,
including the table creation, gets rolled back, so there is no table
to query. Wrapping the table CREATE statement in its own transaction
avoids the issue.
- [x] clos... | https://api.github.com/repos/pandas-dev/pandas/pulls/28450 | 2019-09-14T19:05:54Z | 2019-09-15T13:14:00Z | 2019-09-15T13:14:00Z | 2019-09-15T15:23:56Z |
DOC: fix docstring of core.comon.pipe (PR02) | diff --git a/pandas/core/common.py b/pandas/core/common.py
index cf113c8aecbfe..565f5076fdddb 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -445,15 +445,15 @@ def pipe(obj, func, *args, **kwargs):
Parameters
----------
- func : callable or tuple of (callable, string)
+ func : calla... | Solves:
- Unknown parameters {kwargs, args}
- Parameter "func" type should use "str" instead of "string"
- Parameter "*args" description should start with a capital letter
- Parameter "**kwargs" description should start with a capital letter
- pandas.core.common.pipe : Unknown parameters {kwargs, args} in #27976
... | https://api.github.com/repos/pandas-dev/pandas/pulls/28449 | 2019-09-14T18:23:34Z | 2019-09-15T13:11:32Z | 2019-09-15T13:11:32Z | 2019-09-15T13:11:45Z |
[PERF] Vectorize select_dtypes | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 05f98c66faa2b..eb9a0e83271f1 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -609,4 +609,15 @@ def time_dataframe_describe(self):
self.df.describe()
+class Sele... | - [x] closes #28317
- [x] tests added / passed (no new tests added, test_dtypes.py, passes locally)
- [x] passes `black pandas` (passed locally)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (passed locally)
- [x] whatsnew entry
- [x] ASV Benchmark
- [x] final refactoring
I was able to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28447 | 2019-09-14T14:23:46Z | 2019-09-20T12:42:53Z | 2019-09-20T12:42:52Z | 2019-09-20T12:42:58Z |
DOC: fix the editable install command | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index c66ae5e4bc36f..3cdf9b83e96f3 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -208,7 +208,7 @@ We'll now kick off a three-step process:
# Build and install pand... | See https://github.com/pandas-dev/pandas/pull/28374#discussion_r324367518 | https://api.github.com/repos/pandas-dev/pandas/pulls/28445 | 2019-09-14T08:24:24Z | 2019-09-14T09:00:44Z | 2019-09-14T09:00:44Z | 2019-09-14T09:00:57Z |
TST: Fix makeObjectSeries data as object type | diff --git a/pandas/tests/series/conftest.py b/pandas/tests/series/conftest.py
index f5b401398d6d6..18d3c87a01f87 100644
--- a/pandas/tests/series/conftest.py
+++ b/pandas/tests/series/conftest.py
@@ -26,7 +26,7 @@ def string_series():
@pytest.fixture
def object_series():
"""
- Fixture for Series of dtype dat... | - [x] closes #28378
- [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/28444 | 2019-09-14T04:39:40Z | 2019-09-17T12:59:25Z | 2019-09-17T12:59:25Z | 2019-09-17T13:02:26Z |
CLN: catch less in Block._astype | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 29d225443d18a..01399a23e810e 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -600,41 +600,42 @@ def _astype(self, dtype, copy=False, errors="raise", **kwargs):
return self.copy()
... | https://api.github.com/repos/pandas-dev/pandas/pulls/28443 | 2019-09-14T04:02:56Z | 2019-09-17T12:39:31Z | 2019-09-17T12:39:31Z | 2019-09-17T13:57:52Z | |
CLN: remove merge-pr script, clean Exception in tm, doc | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index f6b0c55d39f65..d5a30f98e07b1 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4845,7 +4845,7 @@ The above example creates a partitioned dataset that may look like:
from shutil import rmtree
try:
... | I count 131 of these ATM, some of which we'll end up marking as intentionally non-specific. | https://api.github.com/repos/pandas-dev/pandas/pulls/28442 | 2019-09-14T03:28:24Z | 2019-09-16T20:13:33Z | 2019-09-16T20:13:33Z | 2019-09-16T20:56:09Z |
BUG: Fix for fillna ignoring axis=1 parameter (issues #17399 #17409) | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 9840e4e94d28c..f24bfe25cc6ef 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -233,7 +233,7 @@ Other
- Trying to set the ``display.precision``, ``display.max_rows`` or ``display.max_columns`` using :me... | - [x] closes #17399 #17409
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/28441 | 2019-09-14T02:43:19Z | 2019-11-07T23:23:52Z | null | 2020-02-03T16:11:29Z |
BUG: Don't cast categorical nan to int | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index bc77553924dfa..11a29fdf90f93 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -110,6 +110,7 @@ Categorical
^^^^^^^^^^^
- Added test to assert the :func:`fillna` raises the correct ValueError message... | - [x] closes #28406
- [x] passes `black pandas`
- [x] tests added / passed
- [x] whatsnew entry
This raises an error when attempting to cast a `Categorical` or `CategoricalIndex` containing `nans` to an integer dtype. Also had to remove the casting within `get_indexer_non_unique` since this won't always be possi... | https://api.github.com/repos/pandas-dev/pandas/pulls/28438 | 2019-09-13T21:42:13Z | 2019-09-18T12:35:04Z | 2019-09-18T12:35:04Z | 2019-09-19T13:41:08Z |
PERF: make io imports lazy in PY37+ | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 6351b508fb0e5..442fc88fa5e60 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -144,38 +144,38 @@
from pandas.util._print_versions import show_versions
-from pandas.io.api import (
+__io_names = (
# excel
- ExcelFile,
- ExcelWriter,
- ... | This shaves about 3.5-4% off of our import time.
If we want to continue down this path, we can do the same thing for `eval` and `reshape.api` pretty easily. Probably more than that, but I haven't looked that far.
FWIW: a full run of `asv` (on one commit, not `continuous`) imports pandas just over 5000 times, so ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28437 | 2019-09-13T20:56:55Z | 2019-09-15T17:30:22Z | null | 2019-09-15T17:30:27Z |
BUG: Fix merging non-indexes causes Index dtype promotion in when keys are missing | diff --git a/doc/source/whatsnew/v0.25.4.rst b/doc/source/whatsnew/v0.25.4.rst
new file mode 100644
index 0000000000000..e1e651dd414c3
--- /dev/null
+++ b/doc/source/whatsnew/v0.25.4.rst
@@ -0,0 +1,6 @@
+
+Reshaping
+^^^^^^^^^
+
+- Added new option to allow user to specify NA value for certain joins when missing keys w... | ... from left or right side. (GH28220)
Also closes GH24897, GH24212, and GH17257
- [x] closes #28220, #24897, #24212, and #17257
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Probably requires a bit more cleanu... | https://api.github.com/repos/pandas-dev/pandas/pulls/28436 | 2019-09-13T20:28:31Z | 2020-01-01T18:06:43Z | null | 2020-01-03T14:44:03Z |
CLN: Exception in generic, series | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 68308b2f83b60..801902a7aa4b7 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -33,7 +33,6 @@
from pandas.util._decorators import Appender, Substitution, rewrite_axis_style_signature
from pandas.util._validators import validate_bool_... | https://api.github.com/repos/pandas-dev/pandas/pulls/28434 | 2019-09-13T17:49:51Z | 2019-09-17T12:36:35Z | 2019-09-17T12:36:35Z | 2019-09-17T13:57:19Z | |
CLN: Exception in nanops | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 4db0f75586ead..fe88622a04bb4 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -1300,10 +1300,12 @@ def _ensure_numeric(x):
elif not (is_float(x) or is_integer(x) or is_complex(x)):
try:
x = float(x)
- exc... | https://api.github.com/repos/pandas-dev/pandas/pulls/28433 | 2019-09-13T16:30:03Z | 2019-09-17T12:35:52Z | 2019-09-17T12:35:52Z | 2019-09-17T13:58:44Z | |
BLD: clean-up sdist creation | diff --git a/MANIFEST.in b/MANIFEST.in
index d82e64d0a68b8..adaad1dc1c864 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -15,6 +15,7 @@ graft pandas
global-exclude *.bz2
global-exclude *.csv
global-exclude *.dta
+global-exclude *.feather
global-exclude *.gz
global-exclude *.h5
global-exclude *.html
@@ -24,7 +25,10... | I messed up in https://github.com/pandas-dev/pandas/pull/28374/files#diff-2eeaed663bd0d25b7e608891384b7298R531. I meant to revert the lines that excluded cythonized files in the sdist to save it for a followup.
So I'm using this to clean up the sdist logic a bit, and exclude a few test data files that have snuck int... | https://api.github.com/repos/pandas-dev/pandas/pulls/28432 | 2019-09-13T16:29:52Z | 2019-09-17T05:45:38Z | 2019-09-17T05:45:38Z | 2019-09-17T05:45:39Z |
REF: implement arithmetic, comparison, logical ops on arrays | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index f53b5045abff3..0c1e1e90c003b 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -9,14 +9,11 @@
import numpy as np
-from pandas._libs import Timedelta, Timestamp, lib, ops as libops
+from pandas._libs import Time... | Following #28413, #28396, and #28395, these are all pretty straightforward refactors.
`arithmetic_op`, `comparison_op`, and `logical_op` are going to become the ops that we call `Block`-wise. Hopefully also `PandasArray` will use them directly.
Other follow-ups I have in mind:
- Move `should_extension_dispatch`... | https://api.github.com/repos/pandas-dev/pandas/pulls/28431 | 2019-09-13T16:20:35Z | 2019-09-23T12:55:02Z | 2019-09-23T12:55:02Z | 2019-09-23T14:29:13Z |
BUG: close hdf store on any error | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 4eb5f350cad8e..14946ba43a580 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -727,6 +727,7 @@ I/O
- Bug in :meth:`DataFrame.to_clipboard` which did not work reliably in ipython (:issue:`22707`)
- Bug... | NOTE: I'm opening the PR mainly to open a discussion about the current behaviour. If this is intended, please tell me. If not and you need me to write some tests, I'll do it :)
In `read_hdf`, if the `store.select()` call throws either a
`ValueError`, a `TypeError` or a `KeyError` then the store is closed.
Howeve... | https://api.github.com/repos/pandas-dev/pandas/pulls/28429 | 2019-09-13T16:03:15Z | 2020-02-02T01:03:53Z | null | 2020-02-02T01:03:53Z |
BUG: Remove error raise to allow same input function on the same column in named aggregation | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 470209a7f4a33..38e3f1316302d 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -752,6 +752,8 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` not offering selection by column name when ``a... | - [x] closes #28426
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
https://github.com/pandas-dev/pandas/pull/27921#issuecomment-521794197
this was kind of mentioned in the PR27921, and the case used in the iss... | https://api.github.com/repos/pandas-dev/pandas/pulls/28428 | 2019-09-13T15:57:42Z | 2019-12-08T18:01:22Z | 2019-12-08T18:01:22Z | 2019-12-08T18:01:25Z |
Remove SparseSeries and SparseDataFrame | diff --git a/doc/redirects.csv b/doc/redirects.csv
index a7886779c97d5..a1504f9175480 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -503,7 +503,6 @@ generated/pandas.DataFrame.to_parquet,../reference/api/pandas.DataFrame.to_parqu
generated/pandas.DataFrame.to_period,../reference/api/pandas.DataFrame.to_per... | As discussed on the dev call.
Closes https://github.com/pandas-dev/pandas/issues/28407
Closes https://github.com/pandas-dev/pandas/issues/28025
Closes https://github.com/pandas-dev/pandas/issues/26777
Closes https://github.com/pandas-dev/pandas/issues/26227
~Not https://github.com/pandas-dev/pandas/issues/26123~... | https://api.github.com/repos/pandas-dev/pandas/pulls/28425 | 2019-09-13T03:22:18Z | 2019-09-18T14:02:18Z | 2019-09-18T14:02:12Z | 2019-09-18T14:06:26Z |
CLN: Exception in dtypes.cast | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 06525fbe98cf4..0f1657480e4b3 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -613,7 +613,7 @@ cpdef array_to_datetime(ndarray[object] values, str errors='raise',
# to check if all arguments have the same ... | There's a couple more in this file that aren't hit in tests but that I'm not yet ready to remove. | https://api.github.com/repos/pandas-dev/pandas/pulls/28420 | 2019-09-12T17:28:29Z | 2019-09-12T19:42:20Z | 2019-09-12T19:42:20Z | 2019-09-12T21:07:02Z |
BUG: inconsistency when passing dict to Series with index | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 10d50e89ca92e..07ebbf40b4809 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -348,6 +348,13 @@ def _init_dict(self, data, index=None, dtype=None):
else:
keys, values = [], []
+ # Check that keys and index a... | * Adds ValueError if passing a dict into pd.Series with a different size than the passed index parameter. Closes #28418
- [x] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
(Will add whatsnew /... | https://api.github.com/repos/pandas-dev/pandas/pulls/28419 | 2019-09-12T17:07:19Z | 2019-09-12T19:19:45Z | null | 2019-09-12T19:19:51Z |
ENH: MultiIndex.from_product infers names from inputs if not explicitly provided | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index bc77553924dfa..2a5d9286a7da2 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -27,6 +27,7 @@ Enhancements
Other enhancements
^^^^^^^^^^^^^^^^^^
+- :meth:`MultiIndex.from_product` infers level names ... | - [x] closes #27292
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Infers names in `MultiIndex.from_product` and normalizes handing of `names=None` between `from_arrays` and `from_product` | https://api.github.com/repos/pandas-dev/pandas/pulls/28417 | 2019-09-12T16:51:32Z | 2019-09-18T13:42:37Z | 2019-09-18T13:42:37Z | 2019-09-18T17:16:24Z |
BUG: Fixed bug where Series.append raised TypeError with tuple of Series | diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst
index 69f324211e5b2..627ba0d895dee 100644
--- a/doc/source/whatsnew/v0.25.2.rst
+++ b/doc/source/whatsnew/v0.25.2.rst
@@ -101,7 +101,7 @@ Other
^^^^^
- Compatibility with Python 3.8 in :meth:`DataFrame.query` (:issue:`27261`)
--
+- Bug i... | - [ ] 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/28416 | 2019-09-12T16:46:22Z | 2019-09-13T01:06:36Z | null | 2019-09-13T08:19:16Z |
Added version policy | diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst
index c7710ff19f078..1228f00667f3a 100644
--- a/doc/source/development/index.rst
+++ b/doc/source/development/index.rst
@@ -16,4 +16,5 @@ Development
internals
extending
developer
+ policies
roadmap
diff --git a/doc/... | This tries to codify the discussion about versioning from yesterday. I tried to summarize the group's thoughts. Let me know if any of my biases slipped through.
cc @pandas-dev/pandas-core
| https://api.github.com/repos/pandas-dev/pandas/pulls/28415 | 2019-09-12T16:00:54Z | 2019-09-20T12:04:13Z | 2019-09-20T12:04:13Z | 2019-09-20T12:04:31Z |
REF: remove unnecessary SparseDataFrame arith methods | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index c12208db983e2..b3b9e53f48271 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -77,6 +77,7 @@
ABCIndexClass,
ABCMultiIndex,
ABCSeries,
+ ABCSparseDataFrame,
)
from pandas.core.dtypes.missing import isna, notna
@@ -5334,6 ... | this sits on top of #28027. | https://api.github.com/repos/pandas-dev/pandas/pulls/28414 | 2019-09-12T15:30:08Z | 2019-09-18T14:26:38Z | null | 2019-09-18T14:26:41Z |
REF: prepare Series arith op to be refactored to array op | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 90fb3b8685c93..baa978c32b2c3 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -40,7 +40,11 @@
from pandas._typing import ArrayLike
from pandas.core.construction import array, extract_array
-from pandas.core.ops... | Companion to #28396 and #28395. | https://api.github.com/repos/pandas-dev/pandas/pulls/28413 | 2019-09-12T15:14:13Z | 2019-09-13T13:21:11Z | 2019-09-13T13:21:11Z | 2019-09-13T14:35:36Z |
BUG: Fix Series.append raises TypeError with tuple of Series | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 71374a3bff692..5f46a815c65dc 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -234,7 +234,7 @@ Other
- Trying to set the ``display.precision``, ``display.max_rows`` or ``display.max_columns`` using :me... | - [x] closes #28410
- [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/28412 | 2019-09-12T14:41:37Z | 2019-09-13T01:05:32Z | 2019-09-13T01:05:32Z | 2019-09-13T01:05:38Z |
Backport PR #28391 on branch 0.25.x | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index 97c45b2be27d7..dd54001984ec7 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -18,13 +18,13 @@ dependencies:
- xlsxwriter=0.9.8
- xlwt=1.2.0
# universal
- - cython=0.28.2
- hypothesis>=3.58.0
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28411 | 2019-09-12T12:59:38Z | 2019-09-12T17:13:41Z | 2019-09-12T17:13:41Z | 2019-09-12T17:13:46Z | |
Revert "TMP: pin openssl for doc build" | diff --git a/environment.yml b/environment.yml
index ade0bb8f7fa3a..d72972ffc4da4 100644
--- a/environment.yml
+++ b/environment.yml
@@ -82,7 +82,3 @@ dependencies:
- xlwt # pandas.read_excel, DataFrame.to_excel, pandas.ExcelWriter, pandas.ExcelFile
- odfpy # pandas.read_excel
- pyreadstat # pandas.read_sps... | Reverts pandas-dev/pandas#28404
Closes https://github.com/pandas-dev/pandas/issues/28402 | https://api.github.com/repos/pandas-dev/pandas/pulls/28405 | 2019-09-12T09:55:18Z | 2019-09-13T14:15:23Z | 2019-09-13T14:15:23Z | 2019-09-13T14:15:28Z |
TMP: pin openssl for doc build | diff --git a/environment.yml b/environment.yml
index d72972ffc4da4..ade0bb8f7fa3a 100644
--- a/environment.yml
+++ b/environment.yml
@@ -82,3 +82,7 @@ dependencies:
- xlwt # pandas.read_excel, DataFrame.to_excel, pandas.ExcelWriter, pandas.ExcelFile
- odfpy # pandas.read_excel
- pyreadstat # pandas.read_sps... | Temporary solution for https://github.com/pandas-dev/pandas/issues/28402 | https://api.github.com/repos/pandas-dev/pandas/pulls/28404 | 2019-09-12T08:34:58Z | 2019-09-12T09:54:45Z | 2019-09-12T09:54:45Z | 2019-09-12T09:55:36Z |
Fix a `np.random.np.random` typo in "computation.rst" in document. | diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst
index cfce7c40c477f..4beac5e035efc 100644
--- a/doc/source/user_guide/computation.rst
+++ b/doc/source/user_guide/computation.rst
@@ -182,7 +182,7 @@ assigned the mean of the ranks (by default) for the group:
.. ipython:: pyth... | There's `np.random.np.random` in /doc/source/user_guide/computation.rst, which I believe is a typo. But the weird thing is there's actually `np.random.np` in numpy (1.16.4), but not in numpy (1.17.2). That's maybe why the doc build passed before. While I'm trying to build the doc locally with numpy 1.17.2, it failed.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/28400 | 2019-09-12T06:24:43Z | 2019-09-12T12:51:16Z | 2019-09-12T12:51:16Z | 2019-10-01T18:43:42Z |
BUG: Fix Series(List[Interval]) to infer interval dtype | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 6c75b3d8cfa0b..5b1ce6140bb5a 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -884,6 +884,7 @@ Interval
- Bug in :meth:`IntervalIndex.get_indexer` where a :class:`Categorical` or :class:`CategoricalI... | - [X] closes #23563
- [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/28399 | 2019-09-12T04:56:42Z | 2020-01-06T13:29:36Z | 2020-01-06T13:29:36Z | 2020-01-06T15:41:43Z |
CLN: Update cpython imports in Cython Code GH28382 | diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx
index b8df78e600a46..8179822b9e10c 100644
--- a/pandas/_libs/hashtable.pyx
+++ b/pandas/_libs/hashtable.pyx
@@ -1,7 +1,7 @@
cimport cython
-from cpython cimport (PyObject, Py_INCREF,
- PyMem_Malloc, PyMem_Realloc, PyMem_Free)
+... | - [x] closes #28382
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Apologies if anything is not ideal, as this is my first pull request here. Any suggestions or comments are much appreciated! | https://api.github.com/repos/pandas-dev/pandas/pulls/28398 | 2019-09-12T03:23:28Z | 2019-09-13T00:56:42Z | 2019-09-13T00:56:41Z | 2019-09-13T00:57:00Z |
REF: prepare Series comparison op to be refactored to array op | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 90fb3b8685c93..3d4be809d6bff 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -663,27 +663,9 @@ def _comp_method_SERIES(cls, op, special):
"""
op_name = _get_op_name(op, special)
- def na_op(x, y):
-... | Companion to #28395 (independent) | https://api.github.com/repos/pandas-dev/pandas/pulls/28396 | 2019-09-11T22:19:43Z | 2019-09-12T13:00:03Z | 2019-09-12T13:00:03Z | 2019-09-12T15:06:47Z |
REF: prepare Series logical op to be refactored to array op | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 90fb3b8685c93..141aac51a624f 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -787,11 +787,17 @@ def na_op(x, y):
return result
- fill_int = lambda x: x.fillna(0)
+ fill_int = lambda x: x
... | With this, L823-849 is not-Series-specific, so the next step will be to refactor this out to array_ops and we'll be able to to share it between the Series op and the upcoming block-wise op.
Change to `fill_bool` makes it work on `ndarray` instead of `Series`.
`other = lib.item_from_zerodim` is added for consisten... | https://api.github.com/repos/pandas-dev/pandas/pulls/28395 | 2019-09-11T22:13:52Z | 2019-09-12T12:52:48Z | 2019-09-12T12:52:48Z | 2019-09-12T15:05:15Z |
Optionally disallow duplicate labels | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 4d9d18e3d204e..9a1ebc8d670dc 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -37,6 +37,7 @@ Attributes and underlying data
DataFrame.shape
DataFrame.memory_usage
DataFrame.empty
+ DataFra... | This adds a property to NDFrame to disallow duplicate labels. This fixes a vexing issue with using pandas for ETL pipelines, where accidentally introducing duplicate labels can lead to confusing downstream behavior (e.g. `NDFrame.__getitem__` not reducing dimensionality).
When set (via the construction with `allow_d... | https://api.github.com/repos/pandas-dev/pandas/pulls/28394 | 2019-09-11T22:13:09Z | 2020-09-03T03:00:00Z | 2020-09-03T03:00:00Z | 2020-09-08T16:44:37Z |
CLN: use newer conventions in logical ops | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 90fb3b8685c93..75804c62709e2 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -575,8 +575,12 @@ def _align_method_SERIES(left, right, align_asobject=False):
if align_asobject:
# to k... | I'm working on a larger refactor that will let us use these directly in block-wise ops, trying to get unrelated changes in separately. | https://api.github.com/repos/pandas-dev/pandas/pulls/28393 | 2019-09-11T21:14:52Z | 2019-09-11T22:06:11Z | null | 2019-09-11T22:06:15Z |
DEP: Bump Cython to 0.29.13 | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index 97c45b2be27d7..dd54001984ec7 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -18,13 +18,13 @@ dependencies:
- xlsxwriter=0.9.8
- xlwt=1.2.0
# universal
- - cython=0.28.2
- hypothesis>=3.58.0
- ... | In preperation for Python 3.8, we need to ensure we compile the sdist
with new enough versions of Cython. This is the latest current release.
xref https://github.com/pandas-dev/pandas/issues/28341 | https://api.github.com/repos/pandas-dev/pandas/pulls/28391 | 2019-09-11T19:14:33Z | 2019-09-12T12:49:22Z | 2019-09-12T12:49:22Z | 2019-09-12T12:54:05Z |
EA: require size instead of __len__ | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index fd1c1271a5e37..0fbe5593f69fb 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -123,6 +123,7 @@ source, you should no longer need to install Cython into your build environment
Backwards incompatible API... | Discussed [here](https://github.com/jbrockmendel/pandas/pull/3)
Change the EA interface to require `size` instead of `__len__`.
Doing this separately from #27142 makes it much simpler to explain to downstream authors what is changing for them. After this, the rest of the changes necessary for (limited) 2D suppor... | https://api.github.com/repos/pandas-dev/pandas/pulls/28389 | 2019-09-11T16:00:47Z | 2019-11-02T03:09:57Z | null | 2021-11-20T23:21:59Z |
CLN: Exception in core.dtypes | diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py
index 201174b6b1995..24dafd11ae2b7 100644
--- a/pandas/core/arrays/sparse.py
+++ b/pandas/core/arrays/sparse.py
@@ -245,10 +245,10 @@ def construct_from_string(cls, string):
if string.startswith("Sparse"):
try:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/28387 | 2019-09-11T14:41:50Z | 2019-09-13T20:13:45Z | 2019-09-13T20:13:45Z | 2019-09-13T22:28:15Z | |
TST: add test for #9107 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 9840e4e94d28c..f36f312b1299e 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -118,7 +118,6 @@ Datetimelike
- Bug in :meth:`pandas.core.groupby.SeriesGroupBy.nunique` where ``NaT`` values were interfer... | test to ensure OutOfBoundsDatetime exception is raised when calling
pd.to_datetime with out-of-bounds date strings
As discussed briefly in #28367
- [x] closes #9107 ? the issue is no longer truly reproducible, this PR adds a test around the new behaviour
- [x] tests added / passed
- [x] passes `black pandas`... | https://api.github.com/repos/pandas-dev/pandas/pulls/28386 | 2019-09-11T13:40:25Z | 2019-09-12T12:50:30Z | 2019-09-12T12:50:29Z | 2019-09-12T12:50:33Z |
CLN: small ops cleanup | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 0b85c94f4b90c..90fb3b8685c93 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -18,7 +18,6 @@
ensure_object,
is_bool_dtype,
is_datetime64_dtype,
- is_datetimelike_v_numeric,
is_extension_array... | https://api.github.com/repos/pandas-dev/pandas/pulls/28379 | 2019-09-10T21:40:25Z | 2019-09-11T12:21:43Z | 2019-09-11T12:21:43Z | 2019-09-11T14:27:11Z | |
BLD: Add pyproject.toml | diff --git a/.gitignore b/.gitignore
index e85da9c9b976b..6c3c275c48fb7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,6 +57,7 @@ dist
# wheel files
*.whl
**/wheelhouse/*
+pip-wheel-metadata
# coverage
.coverage
coverage.xml
diff --git a/MANIFEST.in b/MANIFEST.in
index b417b8890fa24..d82e64d0a68b8 100644
--- a/M... | * Adds pyproject.toml to support this.
* Bumps minimum Cython version to the version supporting Python 3.8.
Closes https://github.com/pandas-dev/pandas/issues/20775
xref https://github.com/pandas-dev/pandas/issues/27435 (check if closes)
xref https://github.com/pandas-dev/pandas/pull/25227, https://github.com/p... | https://api.github.com/repos/pandas-dev/pandas/pulls/28374 | 2019-09-10T18:43:58Z | 2019-09-13T16:11:48Z | 2019-09-13T16:11:47Z | 2019-09-14T08:24:49Z |
ENH: Fix `by` in DataFrame.plot.hist and DataFrame.plot.box | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index d114f26788f00..26dac44f0d15f 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -29,6 +29,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
+- Add support for assigning values to ``by`` argument... | - [x] closes #15079
- [x] xref: #11053, #28177
- [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/28373 | 2019-09-10T16:41:14Z | 2021-07-12T13:10:45Z | 2021-07-12T13:10:44Z | 2021-07-12T18:32:51Z |
ENH: add and register Arrow extension types for Period and Interval | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index f6315ea894e62..fcf68522bd338 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4648,10 +4648,10 @@ Several caveats.
* Index level names, if specified, must be strings.
* In the ``pyarrow`` engine, categorical... | Related to https://github.com/pandas-dev/pandas/pull/28368, but now for Period and Interval for which we define extension types to store them with metadata in arrow.
Still needs some more tests and fixing corner cases.
We probably also want to consolidate the pyarrow import checking somewhat.
I think a main que... | https://api.github.com/repos/pandas-dev/pandas/pulls/28371 | 2019-09-10T15:33:31Z | 2020-01-09T08:34:23Z | 2020-01-09T08:34:23Z | 2020-01-09T08:34:28Z |
CLN: avoid catching Exception in generic | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 831543ee66039..68308b2f83b60 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -44,6 +44,7 @@
is_datetime64tz_dtype,
is_dict_like,
is_extension_array_dtype,
+ is_float,
is_integer,
is_list_like,
is_numb... | https://api.github.com/repos/pandas-dev/pandas/pulls/28370 | 2019-09-10T15:16:44Z | 2019-09-11T01:10:56Z | 2019-09-11T01:10:56Z | 2019-09-11T01:24:04Z | |
ENH: Add IntegerArray.__arrow_array__ for custom conversion to Arrow | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 2d15a7e5ccadd..1e03d9df82dd7 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -20,15 +20,19 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
-- :meth:`DataFrame.to_latex` now accepts... | Adding custom conversion of IntegerArray to an Arrow array, which makes that this can also be written to parquet.
Currently it is only one way, for read_parquet it will come back as int or float (depending on presence of missing values), but fixing this is also being discussed (https://issues.apache.org/jira/browse/A... | https://api.github.com/repos/pandas-dev/pandas/pulls/28368 | 2019-09-10T14:29:25Z | 2019-09-12T20:57:00Z | 2019-09-12T20:57:00Z | 2019-10-23T13:51:01Z |
BUG: Fix to_datetime(errors='coerce') not swallowing all parser exceptions... | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 9840e4e94d28c..bff0eaee96ff5 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -115,10 +115,10 @@ Datetimelike
- Bug in :meth:`Series.__setitem__` incorrectly casting ``np.timedelta64("NaT")`` to ``np.d... | … (#28299)
- [x] closes #28299
- [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/28367 | 2019-09-10T09:44:53Z | 2019-09-12T12:45:22Z | 2019-09-12T12:45:21Z | 2019-09-12T17:44:56Z |
BUG: same behavior for Series/Index vs ndarray/list in Series logical ops | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index f1f4777cedbc5..0b85c94f4b90c 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -829,15 +829,19 @@ def wrapper(self, other):
is_other_int_dtype = is_integer_dtype(other.dtype)
other = other ... | https://api.github.com/repos/pandas-dev/pandas/pulls/28364 | 2019-09-09T21:49:04Z | 2019-09-10T11:42:07Z | 2019-09-10T11:42:07Z | 2019-09-10T15:01:12Z | |
BUG: DataFrame[int] +/- datetime64 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 71374a3bff692..9998a9a847643 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -119,6 +119,8 @@ Datetimelike
- Bug in :meth:`pandas.core.groupby.SeriesGroupBy.nunique` where ``NaT`` values were interfer... | - [x] closes #28080
- [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/28362 | 2019-09-09T18:12:46Z | 2019-09-12T17:00:26Z | 2019-09-12T17:00:26Z | 2019-09-12T17:05:05Z |
CLN: Exception catching | diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx
index ae0d3ac1a61ca..c407de4cf7465 100644
--- a/pandas/_libs/testing.pyx
+++ b/pandas/_libs/testing.pyx
@@ -139,7 +139,7 @@ cpdef assert_almost_equal(a, b,
obj, '{0} shapes are different'.format(obj),
a.shape, b.s... | https://api.github.com/repos/pandas-dev/pandas/pulls/28361 | 2019-09-09T15:31:56Z | 2019-09-10T11:41:06Z | 2019-09-10T11:41:06Z | 2019-09-10T14:59:48Z | |
Change conda channel order for Windows builds | diff --git a/ci/deps/azure-windows-36.yaml b/ci/deps/azure-windows-36.yaml
index ff9264a36cb12..6f4467b2880ba 100644
--- a/ci/deps/azure-windows-36.yaml
+++ b/ci/deps/azure-windows-36.yaml
@@ -1,17 +1,15 @@
name: pandas-dev
channels:
- - defaults
- conda-forge
+ - defaults
dependencies:
- blosc
- bottlene... | - [x] closes #28356
- [ ] 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/28357 | 2019-09-09T05:20:01Z | 2019-09-11T18:57:08Z | 2019-09-11T18:57:07Z | 2019-09-26T06:40:45Z |
GH28337: Period index doesn't handle reindexing with a non-period index | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index e1fe2f7fe77e2..e6272b2a97dc1 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -145,7 +145,7 @@ Indexing
^^^^^^^^
- Bug in assignment using a reverse slicer (:issue:`26939`)
--
+- Bug in reindexing a... | closes #28323
closes #28337
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adds a workaround to allow period indexes to be reindexed with non-period indexes. | https://api.github.com/repos/pandas-dev/pandas/pulls/28354 | 2019-09-09T03:29:36Z | 2019-09-10T12:06:25Z | 2019-09-10T12:06:25Z | 2019-09-10T14:15:48Z |
CLN: raise ValueError instead of Exception | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index e514162f84c37..e731cffea0671 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -324,7 +324,11 @@ def _aggregate_item_by_item(self, func, *args, **kwargs):
if cast:
r... | This is necessary for tightening up a bunch of Exception catching in groupby/apply/resample. Doing this as a separate step because I find the isolation clearer. | https://api.github.com/repos/pandas-dev/pandas/pulls/28352 | 2019-09-08T23:48:01Z | 2019-09-09T11:57:21Z | 2019-09-09T11:57:21Z | 2019-09-09T14:24:00Z |
CLN: catch stricter in json | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 4af362d8343f2..b04e540ef81eb 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -972,10 +972,8 @@ def _try_convert_to_date(self, data):
for date_unit in date_units:
try:
new_data = to_datetime(... | @WillAyd think there is a compelling reason to keep this as `break` instead of lumping it into the `continue` clause above?
(obviously the TODO comment will be removed/resolved before merge) | https://api.github.com/repos/pandas-dev/pandas/pulls/28351 | 2019-09-08T23:29:01Z | 2019-09-10T20:19:27Z | 2019-09-10T20:19:27Z | 2019-09-10T20:52:01Z |
CLN: Exception in pd.plotting | diff --git a/pandas/plotting/_matplotlib/converter.py b/pandas/plotting/_matplotlib/converter.py
index 446350cb5d915..b2bc9b2e4abf3 100644
--- a/pandas/plotting/_matplotlib/converter.py
+++ b/pandas/plotting/_matplotlib/converter.py
@@ -264,9 +264,11 @@ def convert(values, unit, axis):
def _convert_1d(values, unit... | https://api.github.com/repos/pandas-dev/pandas/pulls/28350 | 2019-09-08T23:22:07Z | 2019-09-15T17:40:48Z | null | 2019-09-15T17:40:52Z | |
CLN: Exception catching in io | diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py
index 11b6cb2ca3ed4..cc8ecc0e64684 100644
--- a/pandas/core/indexes/accessors.py
+++ b/pandas/core/indexes/accessors.py
@@ -326,18 +326,15 @@ def __new__(cls, data):
if orig is not None:
data = Series(orig.values.cate... | https://api.github.com/repos/pandas-dev/pandas/pulls/28349 | 2019-09-08T23:11:15Z | 2019-09-09T11:56:16Z | 2019-09-09T11:56:16Z | 2019-09-09T14:26:05Z | |
CLN/BUG: array_equivalent on nested objects | diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx
index c407de4cf7465..7ad5ea189763c 100644
--- a/pandas/_libs/testing.pyx
+++ b/pandas/_libs/testing.pyx
@@ -143,11 +143,9 @@ cpdef assert_almost_equal(a, b,
from pandas.util.testing import assert_attr_equal
assert_attr_eq... | 5/5
The included code check won't pass until the others in this sequence are merged. | https://api.github.com/repos/pandas-dev/pandas/pulls/28347 | 2019-09-08T18:17:34Z | 2019-09-17T22:09:47Z | 2019-09-17T22:09:47Z | 2019-09-17T22:10:39Z |
CLN: handle bare exceptions im timedeltas, timestamps, reduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index c892c1cf1b8a3..bf940eb03e06f 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -528,7 +528,8 @@ def apply_frame_axis0(object frame, object f, object names,
try:
piece = f(chunk)
- ... | 4/n, I think just one more after this | https://api.github.com/repos/pandas-dev/pandas/pulls/28346 | 2019-09-08T17:51:16Z | 2019-09-08T19:36:56Z | 2019-09-08T19:36:56Z | 2019-09-08T20:03:44Z |
CLN: avoid bare except in tslib and tslibs.parsing | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 01e500a80dcc4..dc06a30004d19 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -344,14 +344,13 @@ def array_with_unit_to_datetime(ndarray values, object unit,
# try a quick conversion to i8
# if we have nulls that are... | 3/n | https://api.github.com/repos/pandas-dev/pandas/pulls/28345 | 2019-09-08T17:44:49Z | 2019-09-09T11:55:06Z | 2019-09-09T11:55:06Z | 2019-09-09T14:21:48Z |
CLN: avoid bare except in libfrequencies | diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_libs/tslibs/frequencies.pyx
index f2dcd37b191ed..b29c841896072 100644
--- a/pandas/_libs/tslibs/frequencies.pyx
+++ b/pandas/_libs/tslibs/frequencies.pyx
@@ -138,6 +138,10 @@ cpdef get_freq_code(freqstr):
-------
return : tuple of base frequency code ... | 2/n | https://api.github.com/repos/pandas-dev/pandas/pulls/28344 | 2019-09-08T17:38:34Z | 2019-09-09T11:54:42Z | 2019-09-09T11:54:41Z | 2019-09-09T14:25:09Z |
CLN: fix bare excepts on close | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 62a3568932def..0aab4fdc8c537 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -567,10 +567,8 @@ cdef class TextReader:
# we need to properly close an open derived
# filehandle here, e.g. and UTFRecoder
... | We're down to only a handful of bare `except`s. This is the first of ~4 PRs to handle them all more carefully. | https://api.github.com/repos/pandas-dev/pandas/pulls/28343 | 2019-09-08T17:33:06Z | 2019-09-10T11:43:53Z | 2019-09-10T11:43:53Z | 2019-09-10T14:59:14Z |
PERF: lazify type-check import | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index f8db1b19dadfa..4a66ad48d1318 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -5,6 +5,7 @@
import codecs
from contextlib import contextmanager
+from datetime import tzinfo
import decimal
from functools import... | These imports in io.formats.format take about 1.6ms, out of a total of about 470ms and (7.8ms total for formats.format). So its not massive, but it is easy to avoid and we are running out of lower-hanging fruit. | https://api.github.com/repos/pandas-dev/pandas/pulls/28342 | 2019-09-08T16:59:00Z | 2019-09-09T11:53:38Z | 2019-09-09T11:53:38Z | 2019-09-09T14:21:23Z |
Pandas.series.astype docstring PR02 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b427b1f0ac858..831543ee66039 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5780,11 +5780,11 @@ def astype(self, dtype, copy=True, errors="raise", **kwargs):
Control raising of exceptions on invalid data for provided d... | Solves:
- Unknown parameters {kwargs}
- Parameter "errors" description should finish with "."
- flake8 error: E126 continuation line over-indented for hanging indent
- flake8 error: E231 missing whitespace after ','
pandas.Series.astype: Unknown parameters {kwargs} in #27976 | https://api.github.com/repos/pandas-dev/pandas/pulls/28340 | 2019-09-08T13:39:20Z | 2019-09-08T17:08:19Z | 2019-09-08T17:08:19Z | 2019-09-08T17:08:23Z |
[WIP] fix --check-untyped-defs for MyPy | diff --git a/pandas/_typing.py b/pandas/_typing.py
index e1b6a5e2e6876..977812e5286af 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -75,3 +75,5 @@
# to maintain type information across generic functions and parametrization
T = TypeVar("T")
+FuncType = Callable[..., Any]
+F = TypeVar("F", bound=FuncType)... | **tl;dr No need for review!**
no intention of merging this so using patterns that probably won't be accepted.
PR is for visibility and reference only.
using http://blog.zulip.org/2016/10/13/static-types-in-python-oh-mypy/ as a suitable template for a project plan. resolution of #27568 would come before too muc... | https://api.github.com/repos/pandas-dev/pandas/pulls/28339 | 2019-09-08T12:04:36Z | 2020-04-10T11:20:26Z | null | 2020-10-12T17:32:43Z |
DOC: Add pyjanitor to ecosystem.rst | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index b1e3d8dc8a1ad..aaf2040156a45 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -23,6 +23,21 @@ or `search pypi for pandas <https://pypi.org/search/?q=pandas>`_.
We'd like to make it easier for users to find these projects, if ... | [pyjanitor](https://github.com/ericmjl/pyjanitor) is a quite nice pandas data cleaning library and gives its users some useful method on data frames. It's pipe oriented, so it can be helpful in data cleaning/transformation work.
Adding pyjanitor to the ecosystem page gives it visibility to our users and makes it eas... | https://api.github.com/repos/pandas-dev/pandas/pulls/28338 | 2019-09-08T11:26:51Z | 2019-09-11T15:51:34Z | 2019-09-11T15:51:34Z | 2019-09-11T17:17:09Z |
GH28301 check for non-unique index in stack_multi_columns | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 58892b316c940..e3db8edee8521 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -184,7 +184,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
--
+- Bug in :meth:`DataFrame.stack` not handling non-uniq... | - [x] closes #28301
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The old implementation used `arange` to generate codes for a non-multiindex, which ended up creating bad codes if the index was not unique. The fix... | https://api.github.com/repos/pandas-dev/pandas/pulls/28336 | 2019-09-07T21:07:02Z | 2019-09-10T12:05:09Z | 2019-09-10T12:05:08Z | 2019-09-10T14:16:01Z |
REF/ENH: Refactor NDFrame finalization | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 831543ee66039..3eabeafe296ae 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -76,6 +76,7 @@
from pandas.core.indexes.period import Period, PeriodIndex
import pandas.core.indexing as indexing
from pandas.core.internals import Block... | In preperation for https://github.com/pandas-dev/pandas/issues/27108
(disallowing duplicates), we need to enhance our metadata propagation.
*We need a way for a particiular attribute to deterimine how it's
propagated for a particular method*. Our current method of metadata
propagation lacked two features
1. It... | https://api.github.com/repos/pandas-dev/pandas/pulls/28334 | 2019-09-07T19:01:13Z | 2019-09-13T18:35:12Z | null | 2019-09-13T18:35:12Z |
CLN: eval_kwargs | diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py
index 29c8239fa518f..90bb12b4cd727 100644
--- a/pandas/core/computation/expressions.py
+++ b/pandas/core/computation/expressions.py
@@ -62,8 +62,9 @@ def set_numexpr_threads(n=None):
ne.set_num_threads(n)
-def _eva... | A bunch of what we do in _gen_eval_kwargs is no longer necessary. | https://api.github.com/repos/pandas-dev/pandas/pulls/28328 | 2019-09-06T23:48:38Z | 2019-09-07T17:17:48Z | 2019-09-07T17:17:48Z | 2019-09-07T17:30:41Z |
CLN: split_and_operate | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 33698d245e9ff..2a44177d445df 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -416,15 +416,16 @@ def fillna(self, value, limit=None, inplace=False, downcast=None):
return self if inplac... | In the branch I've got going that implements block-wise ops I found a bug in Block.split_and_operate. This doesn't fix that bug (since I don't have a test case that is independent of the rest of ops branch), just upstreams the cleanups that go along along with it. Small optimizations. | https://api.github.com/repos/pandas-dev/pandas/pulls/28327 | 2019-09-06T22:39:05Z | 2019-09-07T17:17:32Z | 2019-09-07T17:17:32Z | 2019-09-07T17:28:23Z |
BUG: Fix FastParquetImpl.write for non-existent file | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index a5af4e727391a..75b705372c747 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -218,6 +218,7 @@ I/O
- Bug in :meth:`DataFrame.to_csv` where values were truncated when the length of ``na_rep`` was shorte... | `PyArrowImpl` already correctly opens a non-existent file for writing (https://github.com/pandas-dev/pandas/blob/master/pandas/io/parquet.py#L95), with `engine='fastparquet'` this fails for e.g. a GCS URL (though it looks like S3 is already correct):
```
[nav] In [1]: pd.DataFrame().to_parquet('gs://city_data/test/bl... | https://api.github.com/repos/pandas-dev/pandas/pulls/28326 | 2019-09-06T22:32:14Z | 2019-09-19T15:46:14Z | 2019-09-19T15:46:13Z | 2019-10-09T21:24:02Z |
Clean groupby error message | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index bcda25bf3ce39..1a3f0da3cf92b 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -463,9 +463,7 @@ def _cython_operation(self, kind, values, how, axis, min_count=-1, **kwargs):
# categoricals are only 1d, so we
... | Cleans an error message from `groupby.ops`. | https://api.github.com/repos/pandas-dev/pandas/pulls/28324 | 2019-09-06T22:01:37Z | 2019-09-07T17:18:54Z | 2019-09-07T17:18:54Z | 2019-09-12T01:10:16Z |
Removed PyString refs from extension modules | diff --git a/pandas/_libs/src/parse_helper.h b/pandas/_libs/src/parse_helper.h
index 1db4c813bb493..0a767dd27b658 100644
--- a/pandas/_libs/src/parse_helper.h
+++ b/pandas/_libs/src/parse_helper.h
@@ -25,11 +25,6 @@ int to_double(char *item, double *p_value, char sci, char decimal,
return (error == 0) && (!*p_end)... | We have some old PyString references hanging around in our extension modules. These are a relic of the old Py2 string handling and will be removed in Python 4 I think, so figured worth modernizing
https://docs.python.org/3/howto/cporting.html | https://api.github.com/repos/pandas-dev/pandas/pulls/28322 | 2019-09-06T17:01:05Z | 2019-09-07T17:20:03Z | 2019-09-07T17:20:03Z | 2020-01-16T00:33:53Z |
Added cpp files to build clean | diff --git a/setup.py b/setup.py
index a86527ace092b..c5cd9afe3f9bb 100755
--- a/setup.py
+++ b/setup.py
@@ -277,6 +277,7 @@ def initialize_options(self):
".pyo",
".pyd",
".c",
+ ".cpp",
".orig",
):
... | Looks like the Cython-compiled `window.cpp` hangs around after running `python setup.py clean --all` - this should take care of that
| https://api.github.com/repos/pandas-dev/pandas/pulls/28320 | 2019-09-06T16:16:58Z | 2019-09-07T17:43:02Z | 2019-09-07T17:43:02Z | 2020-01-16T00:33:53Z |
FIX: add additional condition to check invalid type(#28277) | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 25350119f9df5..c388db8219a1d 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2107,7 +2107,9 @@ def _get_series_list(self, others):
elif isinstance(others, np.ndarray) and others.ndim == 2:
others = DataFrame(ot... | - [ ] closes #28277
- [ ] 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/28319 | 2019-09-06T16:07:23Z | 2019-09-10T12:18:41Z | null | 2019-09-10T12:19:12Z |
DOC: Improve compiler installation instructions | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index be6555b2ab936..21fb1baf7db34 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -135,9 +135,44 @@ operations. To install pandas from source, you need to compile these C... | - [x] further improves #27717 - Currently the 'Contributing to pandas', 'Installing a C compiler' section provides links to pages that DO NOT give information about how to install a C compiler.
Note:
- For Linux, we have recommended to install a group of packages, along with GCC:
``sudo apt-get install build-esse... | https://api.github.com/repos/pandas-dev/pandas/pulls/28316 | 2019-09-06T14:26:12Z | 2019-09-11T06:34:15Z | 2019-09-11T06:34:14Z | 2019-09-11T06:34:15Z |
ENH: add way to check for sparse data (#26706) | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index b1c6172fb1261..aa6663597d468 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -330,6 +330,7 @@ Sparse-dtype specific methods and attributes are provided under the
DataFrame.sparse.from_spmatrix
... | - [X] closes #26706
- [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/28314 | 2019-09-06T12:53:08Z | 2019-11-06T17:55:29Z | null | 2019-11-06T17:55:29Z |
CLN: catch specific Exceptions in _config | diff --git a/pandas/_config/display.py b/pandas/_config/display.py
index 6e5fabe2706e5..067b7c503baab 100644
--- a/pandas/_config/display.py
+++ b/pandas/_config/display.py
@@ -28,7 +28,10 @@ def detect_console_encoding():
if not encoding or "ascii" in encoding.lower():
try:
encoding = locale... | https://api.github.com/repos/pandas-dev/pandas/pulls/28310 | 2019-09-06T01:57:49Z | 2019-09-07T19:39:08Z | 2019-09-07T19:39:08Z | 2019-09-07T21:25:03Z | |
CLN: catch Exception less | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index b96b3c7572031..e6766a33a613b 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -199,20 +199,21 @@ def apply_empty_result(self):
return self.obj.copy()
# we may need to infer
- reduce = self.result_type == "reduce... | https://api.github.com/repos/pandas-dev/pandas/pulls/28309 | 2019-09-06T01:35:34Z | 2019-09-07T17:23:08Z | 2019-09-07T17:23:08Z | 2019-09-07T17:29:26Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.