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: Clarify DataFrame column argument in API documentation | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 46501c97cf38a..60eb0339b1f1d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -472,8 +472,9 @@ class DataFrame(NDFrame, OpsMixin):
Index to use for resulting frame. Will default to RangeIndex if
no indexing information part ... | - [x] closes #39904
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/40658 | 2021-03-27T18:01:02Z | 2021-04-01T07:15:12Z | 2021-04-01T07:15:11Z | 2021-04-01T08:36:18Z |
CLN: move pytest config to pyproject.toml | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d6744f578560c..ca0c75f9de94f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -65,7 +65,7 @@ jobs:
if: always()
- name: Testing docstring validation script
- run: pytest --capture=no --strict-markers scripts... | According to https://docs.pytest.org/en/stable/customize.html, using `setup.cfg`as pytest config file is not recommended. So moved everything to `pyproject.toml`
| https://api.github.com/repos/pandas-dev/pandas/pulls/40656 | 2021-03-27T14:23:24Z | 2021-04-25T11:57:19Z | 2021-04-25T11:57:19Z | 2022-11-18T02:21:44Z |
[ENH] introducing IntpHashMap and making unique_label_indices use intp | diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi
index bf7df5776896b..9c1de67a7ba2a 100644
--- a/pandas/_libs/hashtable.pyi
+++ b/pandas/_libs/hashtable.pyi
@@ -192,6 +192,7 @@ class UInt16HashTable(HashTable): ...
class UInt8HashTable(HashTable): ...
class StringHashTable(HashTable): ...
class P... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Introduces IntpHashMap. Instead of making it from the scratch, we map the functionality either to Int32HashMap or Int64HashMap depend... | https://api.github.com/repos/pandas-dev/pandas/pulls/40653 | 2021-03-27T06:47:28Z | 2021-10-07T00:36:48Z | 2021-10-07T00:36:47Z | 2021-10-07T00:37:01Z |
PERF/BUG: use masked algo in groupby cummin and cummax | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index b4b20553ec460..27761ccd0d917 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -505,6 +505,34 @@ def time_frame_agg(self, dtype, method):
self.df.groupby("key").agg(method)
+class Cummin... | Potential first step towards #37493
ASV's (on `N = 5_000_000` instead of `N = 1_000_000` on the added benchmark to get more stable results):
<details>
```
before after ratio
[3a973b6d] [2fa80ad0]
<master> <perf/masked_cummin/max>
- 297±10ms 241... | https://api.github.com/repos/pandas-dev/pandas/pulls/40651 | 2021-03-27T00:28:20Z | 2021-04-21T12:39:20Z | 2021-04-21T12:39:20Z | 2021-04-21T12:57:52Z |
BUG: read_excel failed with empty rows after MultiIndex header | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 2b0b62ab7facf..96a702622b1dc 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -750,6 +750,7 @@ I/O
- Bug in :func:`read_hdf` returning unexpected records when filtering on categorical string columns us... | - [x] closes #40442
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Prior to this fix, a blank data row after a MultiIndex header was a interpreted as contain... | https://api.github.com/repos/pandas-dev/pandas/pulls/40649 | 2021-03-26T17:49:29Z | 2021-04-23T00:07:08Z | 2021-04-23T00:07:08Z | 2021-04-23T17:23:05Z |
Backport PR #40604: REGR: replace with multivalued regex raising | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index 45d131327630e..26d768f830830 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greater than the :class:`Da... | Backport PR #40604 | https://api.github.com/repos/pandas-dev/pandas/pulls/40648 | 2021-03-26T11:23:41Z | 2021-03-26T13:04:25Z | 2021-03-26T13:04:25Z | 2021-03-26T13:18:07Z |
TYP: fix ignores in core.groupby | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index b407212fe6a50..74b79e82d033f 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -356,7 +356,7 @@ def _aggregate_multiple_funcs(self, arg):
# TODO: index should not be Optional - see GH 35490
def... | cc @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/40643 | 2021-03-25T23:18:38Z | 2021-03-26T20:20:21Z | 2021-03-26T20:20:21Z | 2021-03-26T22:01:33Z |
TYP: IndexOpsMixin | diff --git a/pandas/core/base.py b/pandas/core/base.py
index f30430dd394ca..18fc76fe79a5a 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -24,6 +24,7 @@
DtypeObj,
IndexLabel,
Shape,
+ final,
)
from pandas.compat import PYPY
from pandas.compat.numpy import function as nv
@@ -933,12 +93... | https://api.github.com/repos/pandas-dev/pandas/pulls/40642 | 2021-03-25T23:04:18Z | 2021-03-30T12:56:56Z | 2021-03-30T12:56:56Z | 2021-11-20T23:23:35Z | |
TST: move Styler format tests to own module | diff --git a/pandas/tests/io/formats/style/test_format.py b/pandas/tests/io/formats/style/test_format.py
new file mode 100644
index 0000000000000..09b18e1f71d76
--- /dev/null
+++ b/pandas/tests/io/formats/style/test_format.py
@@ -0,0 +1,199 @@
+import numpy as np
+import pytest
+
+from pandas import (
+ DataFrame,
+... | The following tests moved from `style/test_style.py` to their own module `style/test_format.py`.
def test_display_format(styler):
def test_format_dict(styler):
def test_format_string(styler): [added new]
def test_format_callable(styler): [added new]
def test_format_with_na_rep():
def test_format_non_numeric_n... | https://api.github.com/repos/pandas-dev/pandas/pulls/40641 | 2021-03-25T22:08:41Z | 2021-03-26T13:08:09Z | 2021-03-26T13:08:09Z | 2021-03-27T07:14:53Z |
DOC: release notes for 1.3.0 Styler | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 02c2228f013a9..6ea3e94f3df08 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -110,6 +110,31 @@ both XPath 1.0 and XSLT 1.0 is available. (:issue:`27554`)
For more, see :ref:`io.xml` in the user guid... | Added a note to the enhancements section detailing some different upgrades to `Styler` for 1.3.0
If this is not standard or unnecessary just close this PR - I'm only including it in case it is helpful (it is not for self-publication), so I am completely indifferent!
Hopefully there will be one or two more items t... | https://api.github.com/repos/pandas-dev/pandas/pulls/40637 | 2021-03-25T16:53:49Z | 2021-04-02T21:37:23Z | 2021-04-02T21:37:23Z | 2021-04-03T06:09:46Z |
add deltalake to eco system doc page | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index e72a9d86daeaf..47a17f5d0d666 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -368,6 +368,14 @@ far exceeding the performance of the native ``df.to_sql`` method. Internally, it
Microsoft's BCP utility, but the complexity is f... | - [x] relates to #35017
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/40636 | 2021-03-25T15:55:29Z | 2021-03-30T02:27:23Z | 2021-03-30T02:27:23Z | 2021-06-11T03:36:09Z |
TYP: libgroupby int64->intp | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 122a014604bf0..b5b90b4987a66 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -490,7 +490,7 @@ def nancorr_kendall(ndarray[float64_t, ndim=2] mat, Py_ssize_t minp=1) -> ndarra
int64_t total_discordant = 0
float64_t k... | @realead pushing this any further requires getting a HashTable for intp_t. Would that be difficult? | https://api.github.com/repos/pandas-dev/pandas/pulls/40635 | 2021-03-25T15:45:30Z | 2021-03-26T13:10:00Z | 2021-03-26T13:10:00Z | 2021-03-26T15:48:25Z |
Backport PR #40592: REGR: where not copying on no-op | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index c7bc337239faf..45d131327630e 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greater than the :class:`... | Backport PR #40592 | https://api.github.com/repos/pandas-dev/pandas/pulls/40634 | 2021-03-25T13:38:52Z | 2021-03-25T15:23:25Z | 2021-03-25T15:23:25Z | 2021-03-25T15:23:29Z |
Backport PR #40457: CI: fix failing script/tests | diff --git a/Makefile b/Makefile
index 2c968234749f5..ae1b082626629 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY : develop build clean clean_pyc doc lint-diff black
+.PHONY : develop build clean clean_pyc doc lint-diff black test-scripts
all: develop
@@ -38,3 +38,6 @@ check:
--included-file-exte... | Backport PR #40457 | https://api.github.com/repos/pandas-dev/pandas/pulls/40633 | 2021-03-25T11:21:11Z | 2021-03-25T12:13:47Z | 2021-03-25T12:13:47Z | 2021-03-25T12:13:52Z |
CI: fix pre-commit on 1.2.x | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 90d65327ea980..31c926233d5b6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -164,6 +164,7 @@ repos:
rev: v1.2.2
hooks:
- id: yesqa
+ additional_dependencies: [flake8==3.8.4]
- repo: https://github.com/... | https://github.com/pandas-dev/pandas/pull/40481#issuecomment-806522323 | https://api.github.com/repos/pandas-dev/pandas/pulls/40632 | 2021-03-25T10:40:12Z | 2021-03-25T11:53:56Z | 2021-03-25T11:53:56Z | 2021-03-25T11:54:00Z |
ENH: New boundary inputs | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b92e414f2055e..cb8df16d6c0fb 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -276,6 +276,7 @@ Other enhancements
- Add keyword ``dropna`` to :meth:`DataFrame.value_counts` to allow counting rows that ... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] tests added / passed
- [x] closes #40245
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40628 | 2021-03-25T05:52:36Z | 2021-06-25T09:23:15Z | 2021-06-25T09:23:14Z | 2022-10-29T01:47:19Z |
REF: SingleBlockManager dont subclass BlockManager | diff --git a/pandas/_typing.py b/pandas/_typing.py
index d6561176deb71..36441e620286d 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -185,7 +185,7 @@
]
# internals
-Manager = Union["ArrayManager", "BlockManager"]
+Manager = Union["ArrayManager", "BlockManager", "SingleBlockManager"]
SingleManager = Unio... | Instead, most of BlockManager becomes _BlockManager which is subclassed by SingleBlockManager and BlockManager, the latter holding only the 2d-specific BM methods.
Motivation: putting BlockManager constructor in cython gives a much bigger gain if we can define `__cinit__`, and we can't do that with the two subclasse... | https://api.github.com/repos/pandas-dev/pandas/pulls/40625 | 2021-03-25T03:54:12Z | 2021-04-08T20:16:27Z | 2021-04-08T20:16:27Z | 2021-04-08T20:57:12Z |
TYP: intp in libalgos | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 122a014604bf0..d3edcc4e57b2d 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -591,16 +591,17 @@ def validate_limit(nobs: int, limit=None) -> int:
@cython.boundscheck(False)
@cython.wraparound(False)
-def pad(ndarray[algos_t] old,... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40623 | 2021-03-25T01:03:13Z | 2021-03-26T13:05:46Z | 2021-03-26T13:05:46Z | 2021-03-26T15:24:11Z |
PERF: cache_readonly for Block properties | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 29175d0b20f92..09e214237b736 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -36,6 +36,7 @@
Shape,
final,
)
+from pandas.util._decorators import cache_readonly
from pandas.util._validat... | We'll be able to cache more aggressively following each of #35417, #40574, and #40263 | https://api.github.com/repos/pandas-dev/pandas/pulls/40620 | 2021-03-24T21:07:12Z | 2021-03-29T14:42:30Z | 2021-03-29T14:42:30Z | 2021-03-29T14:46:12Z |
REF: share _maybe_downcast between Block subclasses | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 7d8dcb34ed582..44af4aa767a08 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -510,8 +510,19 @@ def split_and_operate(self, func, *args, **kwargs) -> List[Block]:
res_blocks.extend(rbs)... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40619 | 2021-03-24T21:00:45Z | 2021-03-24T23:11:20Z | 2021-03-24T23:11:20Z | 2021-03-24T23:14:52Z |
REF: move repeated logic from Manager.insert to DataFrame.insert | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8d0c8e5f29413..32439af6db238 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4298,8 +4298,14 @@ def insert(self, loc, column, value, allow_duplicates: bool = False) -> None:
"Cannot specify 'allow_duplicates=True' when "
... | https://api.github.com/repos/pandas-dev/pandas/pulls/40618 | 2021-03-24T20:53:54Z | 2021-03-25T01:53:18Z | 2021-03-25T01:53:17Z | 2021-03-25T02:28:38Z | |
REF: share IntervalIndex._simple_new with ExtensionIndex | diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py
index 02fb6c6beb391..76c16dee1cda1 100644
--- a/pandas/core/indexes/extension.py
+++ b/pandas/core/indexes/extension.py
@@ -231,6 +231,38 @@ class ExtensionIndex(Index):
_data: Union[IntervalArray, NDArrayBackedExtensionArray]
+ ... | By not mixing IntervalMixin into IntervalIndex, mypy also starts taking it more seriously. | https://api.github.com/repos/pandas-dev/pandas/pulls/40617 | 2021-03-24T20:45:31Z | 2021-03-24T23:10:52Z | 2021-03-24T23:10:52Z | 2021-03-24T23:12:44Z |
DOC: Fix read_gbq docstring typo | diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py
index 215d966609ab4..562a62da369ae 100644
--- a/pandas/io/gbq.py
+++ b/pandas/io/gbq.py
@@ -159,7 +159,7 @@ def read_gbq(
Use the :func:`tqdm.tqdm_gui` function to display a
progress bar as a graphical dialog box.
- Note that his featur... | https://api.github.com/repos/pandas-dev/pandas/pulls/40615 | 2021-03-24T18:05:16Z | 2021-03-24T19:06:05Z | 2021-03-24T19:06:05Z | 2021-03-24T19:19:01Z | |
REF: remove DatetimeBlock, TimeDeltaBlock | diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py
index f0018928255e6..af1350f088b7a 100644
--- a/pandas/core/internals/__init__.py
+++ b/pandas/core/internals/__init__.py
@@ -9,12 +9,10 @@
)
from pandas.core.internals.blocks import ( # io.pytables, io.packers
Block,
- Dateti... | sits on top of #40456 | https://api.github.com/repos/pandas-dev/pandas/pulls/40614 | 2021-03-24T17:49:41Z | 2021-04-02T15:18:44Z | 2021-04-02T15:18:43Z | 2021-04-06T18:24:00Z |
TYP: get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 310ee4c3a63e3..7f141531e0d71 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -13,6 +13,7 @@
Sequence,
TypeVar,
cast,
+ overload,
)
import warnings
@@ -159,6 +160,8 @@
)
if TYPE_CHECKING:
... | @simonjayhawkins im at a loss on why im getting a mypy complaint:
```
error: Overloaded function signatures 1 and 2 overlap with incompatible return types [misc]
```
AFAICT they should be compatible. Am I missing something obvious? | https://api.github.com/repos/pandas-dev/pandas/pulls/40612 | 2021-03-24T15:42:31Z | 2021-04-19T18:54:32Z | 2021-04-19T18:54:32Z | 2021-04-19T19:00:57Z |
PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e6 | diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py
index ae1928b8535f9..8205534c9d48b 100644
--- a/pandas/core/computation/expressions.py
+++ b/pandas/core/computation/expressions.py
@@ -38,7 +38,7 @@
}
# the minimum prod shape that we will use numexpr
-_MIN_ELEMENTS = 1000... | Closes #40500, see that issue for the analysis of speedup vs size.
Another take of https://github.com/pandas-dev/pandas/pull/40502, but hopefully now without crashing the tests because of increased memory use. | https://api.github.com/repos/pandas-dev/pandas/pulls/40609 | 2021-03-24T08:42:22Z | 2021-03-24T14:08:52Z | 2021-03-24T14:08:51Z | 2021-03-24T14:10:22Z |
REGR: replace with multivalued regex raising | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index 45d131327630e..26d768f830830 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greater than the :class:`Da... | - [x] closes #39338
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Issue comes from the first pair in the `regex` arg hitting the simple replace path, which ... | https://api.github.com/repos/pandas-dev/pandas/pulls/40604 | 2021-03-24T02:29:31Z | 2021-03-25T01:51:54Z | 2021-03-25T01:51:54Z | 2021-03-26T11:24:25Z |
ENH: Categorical.empty | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index d4e5ca00b06dd..e97687de34273 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -15,6 +15,7 @@
F,
PositionalIndexer2D,
Shape,
+ type_t,
)
from pandas.compat.numpy import function as nv
fr... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
xref #39776
xref https://github.com/dask/fastparquet/issues/576#issuecomment-805220721 | https://api.github.com/repos/pandas-dev/pandas/pulls/40602 | 2021-03-23T23:28:00Z | 2021-04-13T14:17:30Z | 2021-04-13T14:17:29Z | 2021-04-13T14:25:57Z |
CLN libjoin int64->intp | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index 7888a15a7cb26..b69b89c0de019 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -231,7 +231,7 @@ cdef ndarray[intp_t] _get_result_indexer(
return res
-def ffill_indexer(const intp_t[:] indexer):
+def ffill_indexer(const intp_t[:] i... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40601 | 2021-03-23T23:26:23Z | 2021-03-24T22:23:34Z | 2021-03-24T22:23:34Z | 2021-03-24T23:00:15Z |
REF: deduplicate group cummin/max | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 9766b82b1e9d5..545d6a10232ab 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1249,26 +1249,30 @@ def group_min(groupby_t[:, ::1] out,
@cython.boundscheck(False)
@cython.wraparound(False)
-def group_cummin(groupby_t[:, ::... | After #40584, may as well do this one too. | https://api.github.com/repos/pandas-dev/pandas/pulls/40599 | 2021-03-23T21:45:48Z | 2021-03-24T23:37:42Z | 2021-03-24T23:37:42Z | 2021-03-25T00:04:15Z |
DOC: update guideline for installation development environment using pip | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 432584f0da746..b4fa6b008be74 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -325,7 +325,11 @@ Creating a Python environment (pip)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | - [x] closes #40595
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40598 | 2021-03-23T21:26:51Z | 2021-03-24T23:13:35Z | 2021-03-24T23:13:35Z | 2021-03-24T23:13:39Z |
ENH: add `decimal` and `thousands` args to `Styler.format()` | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index f51f81d7c3504..8bd4e0e50ced8 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -102,6 +102,16 @@ class Styler(StylerRenderer):
.. versionadded:: 1.2.0
+ decimal : str, default "."
+ Character used... | A PR for Europeans:

| https://api.github.com/repos/pandas-dev/pandas/pulls/40596 | 2021-03-23T20:51:09Z | 2021-04-20T23:01:03Z | 2021-04-20T23:01:03Z | 2021-04-21T06:09:13Z |
TYP: testing.pyi | diff --git a/pandas/_libs/testing.pyi b/pandas/_libs/testing.pyi
new file mode 100644
index 0000000000000..ac0c772780c5c
--- /dev/null
+++ b/pandas/_libs/testing.pyi
@@ -0,0 +1,8 @@
+
+
+def assert_dict_equal(a, b, compare_keys: bool = ...): ...
+
+def assert_almost_equal(a, b,
+ rtol: float = ..... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40594 | 2021-03-23T20:09:19Z | 2021-03-29T14:55:35Z | 2021-03-29T14:55:35Z | 2021-03-29T15:02:01Z |
TST Add test for loc on sparse dataframes | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 85accac5a8235..e6bc6e5a9ea38 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -1163,6 +1163,37 @@ def test_loc_getitem_listlike_all_retains_sparse(self):
result = df.loc[[0, 1]]
... | Adds a test for loc on sparse dataframes.
- [x] closes #34687
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/40593 | 2021-03-23T20:01:24Z | 2021-04-02T17:15:22Z | 2021-04-02T17:15:22Z | 2021-04-02T17:15:27Z |
REGR: where not copying on no-op | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index c7bc337239faf..45d131327630e 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greater than the :class:`... | - [x] closes #39595
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40592 | 2021-03-23T16:14:13Z | 2021-03-23T20:30:31Z | 2021-03-23T20:30:31Z | 2021-03-25T13:40:11Z |
Backport PR #40525 on branch 1.2.x (BUG: to_json failing on PyPy) | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index edf23bf89d7e1..c7bc337239faf 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.sum` when ``min_count`` greate... | Backport PR #40525: BUG: to_json failing on PyPy | https://api.github.com/repos/pandas-dev/pandas/pulls/40590 | 2021-03-23T15:19:33Z | 2021-03-25T12:49:32Z | 2021-03-25T12:49:32Z | 2021-03-25T12:49:33Z |
PERF: Define Block.__init__ in cython | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 5352ca53e1b54..31b6935e9b2ba 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -455,3 +455,53 @@ def get_blkno_placements(blknos, group: bool = True):
for blkno, indexer in get_blkno_indexers(blknos, group):
... | Shaves about 10% off the benchmark discussed in https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422 | https://api.github.com/repos/pandas-dev/pandas/pulls/40586 | 2021-03-23T14:53:20Z | 2021-03-23T20:28:33Z | 2021-03-23T20:28:33Z | 2021-03-23T21:13:58Z |
REF: deduplicate group min/max | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 89020f2078584..403720627bc7a 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1156,18 +1156,40 @@ ctypedef fused groupby_t:
@cython.wraparound(False)
@cython.boundscheck(False)
-def group_max(groupby_t[:, ::1] out,
- ... | ASVs look unaffected:
<details>
```
before after ratio
[05a0e98a] [16d06e22]
<master> <ref/deduplicate_grp_min_max>
33.0±3ms 33.3±1ms 1.01 gil.ParallelGroupbyMethods.time_loop(2, 'max')
32.2±0.4ms 34.5±3ms 1.07 gil.ParallelGrou... | https://api.github.com/repos/pandas-dev/pandas/pulls/40584 | 2021-03-23T14:48:05Z | 2021-03-23T20:29:08Z | 2021-03-23T20:29:08Z | 2021-03-23T20:31:10Z |
COMPAT: add back dummy CategoricalBlock class | diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py
index 18e584575bc97..f0018928255e6 100644
--- a/pandas/core/internals/__init__.py
+++ b/pandas/core/internals/__init__.py
@@ -26,6 +26,7 @@
__all__ = [
"Block",
+ "CategoricalBlock",
"NumericBlock",
"DatetimeBlock",
... | See https://github.com/pandas-dev/pandas/issues/40226#issuecomment-804903010
@jbrockmendel this is unfortunate, but short term I think we need to keep the CategoricalBlock class. I am not directly sure what would be the best way to actually deprecate this. | https://api.github.com/repos/pandas-dev/pandas/pulls/40582 | 2021-03-23T13:59:18Z | 2021-03-23T16:08:02Z | 2021-03-23T16:08:02Z | 2021-03-23T16:29:28Z |
COMPAT: make Categorical._codes settable again | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 1398db6960cc8..0c7ee2d43753e 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1756,6 +1756,10 @@ def to_dense(self):
def _codes(self) -> np.ndarray:
return self._ndarray
+ ... | This is a follow-up on https://github.com/pandas-dev/pandas/pull/40033, which changes the `_code` attribute of a Categorical into a property without a setter.
This broke dask / fastparquet, so this PR is making it settable again. We could deprecate the setter, though, at the same time. | https://api.github.com/repos/pandas-dev/pandas/pulls/40580 | 2021-03-23T12:56:54Z | 2021-03-24T07:28:47Z | 2021-03-24T07:28:47Z | 2021-03-24T07:31:08Z |
CLN: remove unused kwarg from IntervalIndex._searchsorted_monotonic | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 947c43f5f8001..e5e7b446d9cb2 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5678,7 +5678,7 @@ def _maybe_cast_slice_bound(self, label, side: str_t, kind):
return label
- def _searchsorted_monoton... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40578 | 2021-03-23T03:36:09Z | 2021-03-23T15:16:20Z | 2021-03-23T15:16:20Z | 2021-03-23T15:20:34Z |
TST/CLN: remove redundant to_json test | diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py
index c7aa56cae20be..3bd78d44a0b04 100644
--- a/pandas/tests/io/json/test_pandas.py
+++ b/pandas/tests/io/json/test_pandas.py
@@ -1730,11 +1730,6 @@ def test_to_s3(self, s3_resource, s3so):
timeout -= 0.1
as... | Should be covered by the test which follows it since `pd.NA` is in `nulls_fixture` | https://api.github.com/repos/pandas-dev/pandas/pulls/40577 | 2021-03-22T23:51:40Z | 2021-03-23T01:24:12Z | 2021-03-23T01:24:12Z | 2021-03-23T01:27:46Z |
BUG: Series.iteritems should be lazy | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 3f3e3e87133a0..79daf09083fc1 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -151,7 +151,7 @@ API Changes
- ``DataFrame.sort`` now places NaNs at the beginning or end of the sort according to the ``na_position`` parameter. (:issue:`... | Closes #6760
| https://api.github.com/repos/pandas-dev/pandas/pulls/6761 | 2014-04-01T19:07:10Z | 2014-04-01T20:36:23Z | 2014-04-01T20:36:23Z | 2014-06-30T14:03:50Z |
DOC: documented that .apply(func) executes func twice on the first time | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index cc5ebc730f94a..7412d25b33125 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -663,6 +663,25 @@ The dimension of the returned result can also change:
s
s.apply(f)
+
+.. warning::
+
+ In the current implementation apply ca... | Related issues are #2656, #2936 and #6753.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6756 | 2014-04-01T12:50:45Z | 2014-04-01T12:52:59Z | 2014-04-01T12:52:59Z | 2020-05-14T09:34:31Z |
PERF: perf improvements in timedelta conversions from integer dtypes | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 3f3e3e87133a0..cd5b0cbd23353 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -208,6 +208,7 @@ Improvements to existing features
- Performance improvement when converting ``DatetimeIndex`` to floating ordinals
using ``DatetimeConv... | ```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
timedelta_convert | 0.2253 | 71.0374 | 0.003... | https://api.github.com/repos/pandas-dev/pandas/pulls/6754 | 2014-04-01T12:15:16Z | 2014-04-01T13:03:04Z | 2014-04-01T13:03:04Z | 2014-06-12T08:05:49Z |
BUG: fix NDFrame.as_blocks() for sparse containers | diff --git a/doc/source/release.rst b/doc/source/release.rst
index c0d4c0c73296f..5e0593a2beec4 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -296,6 +296,7 @@ Bug Fixes
- Bug in consistency of groupby aggregation when passing a custom function (:issue:`6715`)
- Bug in resample when ``how=None`` ... | SparseBlocks don't consolidate, so previous implementation silently dropped all but the last blocks for given dtype:
``` python
In [1]: pd.__version__
Out[1]: '0.13.1-527-g73506cb'
In [2]: pd.SparseDataFrame({'a': [1,2,3, np.nan, np.nan], 'b': [1,2,3, np.nan, np.nan]})
Out[2]:
a b
0 1 1
1 2 2
2 3 3... | https://api.github.com/repos/pandas-dev/pandas/pulls/6748 | 2014-03-31T08:33:07Z | 2014-03-31T13:33:15Z | 2014-03-31T13:33:15Z | 2014-06-12T21:22:30Z |
Quick shift fixes | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index fc7883f789703..67f8694925dad 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3238,9 +3238,9 @@ def shift(self, periods=1, freq=None, axis=0, **kwds):
if periods == 0:
return self
- axis = self._get_axi... | Adjustments to the quick fix PR.
https://gist.github.com/dalejung/9731798#file-vb_suite-log
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/6747 | 2014-03-31T02:45:19Z | 2014-03-31T09:41:59Z | 2014-03-31T09:41:59Z | 2014-07-16T08:59:58Z |
Doc fixes | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 4d97c43e85de8..5856b4e293259 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1878,14 +1878,14 @@ to be parsed.
.. code-block:: python
- read_excel('path_to_file.xls', 'Sheet1', parse_cols=2, index_col=None, na_values=['NA'])
+ read_excel('path... | https://api.github.com/repos/pandas-dev/pandas/pulls/6746 | 2014-03-30T23:02:37Z | 2014-04-01T08:51:41Z | 2014-04-01T08:51:41Z | 2014-07-12T16:41:14Z | |
CLN: revisit & simplify Block/BlockManager, remove axes | diff --git a/pandas/core/format.py b/pandas/core/format.py
index 6d0b0596d08d2..43eb0e890aa62 100644
--- a/pandas/core/format.py
+++ b/pandas/core/format.py
@@ -1024,9 +1024,8 @@ def __init__(self, obj, path_or_buf=None, sep=",", na_rep='', float_format=None,
# preallocate data 2d list
self.blocks =... | This is a WIP request for Stage 1 deliverable of #6744.
Roadmap:
- [x] make ref_locs primary source of information (leaving items/ref_items in place to back it up and avoid breakage)
- [x] port groupby to loc-based implementation (there's quite a number of hacks a.t.m. that make this non-trivial)
- [x] ditto for merg... | https://api.github.com/repos/pandas-dev/pandas/pulls/6745 | 2014-03-30T18:16:10Z | 2014-04-25T14:22:31Z | 2014-04-25T14:22:30Z | 2020-05-01T19:33:53Z |
API: all offset operations now return Timestamp types (rather than datetime) (GH4069) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 2646dd33535a1..c0d4c0c73296f 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -150,6 +150,8 @@ API Changes
- ``DataFrame.sort`` now places NaNs at the beginning or end of the sort according to the ``na_position`` parameter. (:issue... | Business/Week frequencies were incorrect
closes #4069
| https://api.github.com/repos/pandas-dev/pandas/pulls/6743 | 2014-03-30T15:11:07Z | 2014-03-30T15:23:19Z | 2014-03-30T15:23:19Z | 2014-06-27T23:41:02Z |
DOC: small doc fixes (build warning in sym_diff + formatting in release notes) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 58232e226e277..f02b286365ea7 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -91,6 +91,7 @@ API Changes
- ``microsecond,nanosecond,qyear``
- ``min(),max()``
- ``pd.infer_freq()``
+
- ``pd.infer_freq()`` will now raise a ``T... | https://api.github.com/repos/pandas-dev/pandas/pulls/6739 | 2014-03-29T17:21:01Z | 2014-03-29T17:21:36Z | 2014-03-29T17:21:36Z | 2014-07-16T08:59:49Z | |
BUG: Bug in downcasting inference with empty arrays (GH6733) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 3d4ff0610f43f..58232e226e277 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -292,6 +292,7 @@ Bug Fixes
- Bug in resample with extra bins when using an evenly divisible frequency (:issue:`4076`)
- Bug in consistency of groupby aggr... | closes #6733
| https://api.github.com/repos/pandas-dev/pandas/pulls/6737 | 2014-03-29T14:28:55Z | 2014-03-29T14:46:24Z | 2014-03-29T14:46:24Z | 2014-07-16T08:59:47Z |
ENH: drop function now has errors keyword for non-existing column handling | diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt
index 02de919e3f83e..6a14a4024ba5a 100644
--- a/doc/source/whatsnew/v0.15.2.txt
+++ b/doc/source/whatsnew/v0.15.2.txt
@@ -49,7 +49,7 @@ API changes
In [3]: cat = pd.Categorical(['a', 'b', 'a'], categories=['a', 'b', 'c'])
In [4]:... | Closes #5300.
Currently `drop` raises `ValueError` when non-existing label is passed. I think it is useful if `drop` has an option to suppress error and drop existing labels only.
For example, I sometimes process lots of files which has slightly different columns, and want to `drop` if data has unnecessary columns. P... | https://api.github.com/repos/pandas-dev/pandas/pulls/6736 | 2014-03-29T12:21:38Z | 2015-04-08T14:35:57Z | 2015-04-08T14:35:57Z | 2015-04-11T13:09:29Z |
ENH: SQL multiindex support | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index efb8ce07ab60e..a80e8049ae627 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -310,8 +310,8 @@ def read_table(table_name, con, meta=None, index_col=None, coerce_float=True,
Legacy mode not supported
meta : SQLAlchemy meta, optional
If ... | Further work on #6292.
This adds:
- fixes the `columns` argument (wasn't passed) + added test for that
- adds multi-index support in `to_sql`, by just using `reset_index` on the frame (+ tests)
- adds multi-index support in read_table (+ tests)
| https://api.github.com/repos/pandas-dev/pandas/pulls/6735 | 2014-03-29T11:28:29Z | 2014-04-14T12:00:02Z | 2014-04-14T12:00:02Z | 2014-06-20T16:59:37Z |
ENH: added nunique function to Index | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 1c80712e82d49..f6dfd5cfaf0e7 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -348,7 +348,6 @@ Computations / Descriptive Stats
Series.median
Series.min
Series.mode
- Series.nunique
Series.pct_change
Series.prod
Series.quant... | Added `nunique` function to `Index` same as `Series`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6734 | 2014-03-29T09:40:22Z | 2014-04-06T14:21:20Z | 2014-04-06T14:21:20Z | 2014-06-13T16:59:22Z |
BUG: Bug in resample when how=None resample freq is the same as the axis freq (GH5955) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index dcbf8b8c7f271..3d4ff0610f43f 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -291,6 +291,7 @@ Bug Fixes
- Bug in ``DataFrame.to_stata`` which incorrectly handles nan values and ignores 'with_index' keyword argument (:issue:`6685`)
... | closes #5955
| https://api.github.com/repos/pandas-dev/pandas/pulls/6731 | 2014-03-29T00:41:15Z | 2014-03-29T01:53:36Z | 2014-03-29T01:53:36Z | 2014-07-16T08:59:36Z |
BUG: bug in BlockManager._get_numeric_data, with invalid combine | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index fe5ae48fea281..d32664559f7fc 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -1907,7 +1907,7 @@ def fillna(self, value, limit=None, inplace=False, downcast=None):
values = self.values if inplace else self.values.copy... | https://api.github.com/repos/pandas-dev/pandas/pulls/6730 | 2014-03-28T20:26:01Z | 2014-03-28T23:05:30Z | 2014-03-28T23:05:30Z | 2014-07-16T08:59:35Z | |
added percentage rank to DataFrame.Rank | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 47a2ef82c78dc..dcbf8b8c7f271 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -190,6 +190,7 @@ Improvements to existing features
- implement joining a single-level indexed DataFrame on a matching column of a multi-indexed DataFrame (... | closes #6717
@jreback asked for DataFrame rank to have a percentage option to match consistency with series
| https://api.github.com/repos/pandas-dev/pandas/pulls/6728 | 2014-03-28T14:42:29Z | 2014-03-28T15:17:31Z | 2014-03-28T15:17:31Z | 2014-07-16T08:59:31Z |
Shift named axis | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6c57a9ce5beaa..67c58b0c0e6f4 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3232,6 +3232,7 @@ def shift(self, periods=1, freq=None, axis=0, **kwds):
if periods == 0:
return self
+ axis = self._get_axi... | simple fix for #6724. was blocking the panel general shift PR.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6725 | 2014-03-28T01:09:06Z | 2014-03-28T03:39:43Z | 2014-03-28T03:39:43Z | 2014-07-16T08:59:30Z |
BUG: MPLPlot cannot make loglog keyword worked | diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py
index 7b37cf09d5638..a64f24a61db9b 100644
--- a/pandas/tests/test_graphics.py
+++ b/pandas/tests/test_graphics.py
@@ -409,6 +409,22 @@ def test_plot_xy(self):
# columns.inferred_type == 'mixed'
# TODO add MultiIndex test
+ ... | Changes made in #5638 make `loglog` keyword not worked, and it fixes the problem.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6722 | 2014-03-27T20:30:06Z | 2014-03-30T14:42:26Z | 2014-03-30T14:42:26Z | 2014-07-09T08:24:18Z |
BUG: Bug in consistency of groupby aggregation when passing a custom function (GH6715) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index ea5af9165b483..47a2ef82c78dc 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -139,11 +139,11 @@ API Changes
- Following keywords are now acceptable for :meth:`DataFrame.plot(kind='bar')` and :meth:`DataFrame.plot(kind='barh')`.
... | closes #6715
| https://api.github.com/repos/pandas-dev/pandas/pulls/6718 | 2014-03-27T13:18:58Z | 2014-03-28T12:34:13Z | 2014-03-28T12:34:13Z | 2014-07-16T08:59:25Z |
BUG: Allow mapping as parameters for SQL DBAPI2 | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index fa89cf488125a..ac90555526a5e 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -31,7 +31,10 @@ def _convert_params(sql, params):
"""convert sql and params args to DBAPI2.0 compliant format"""
args = [sql]
if params is not None:
- args +=... | According to the DBAPI2.0 the parameters of the execute method can be a list or a mapping. The code in the master branch assume that this parameter is a list which can break working code. That's a regression compared to the pandas 0.13.1
Closes #6708
| https://api.github.com/repos/pandas-dev/pandas/pulls/6709 | 2014-03-26T02:34:29Z | 2014-03-31T16:49:52Z | 2014-03-31T16:49:52Z | 2014-07-01T14:57:33Z |
PERF: #6700 dataframe.from_records: read into list w/ itertools.islice when specifying nrows | diff --git a/doc/source/release.rst b/doc/source/release.rst
index df0f472c390c7..be988236cb7f6 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -185,6 +185,8 @@ Improvements to existing features
- Performance improvement when converting ``DatetimeIndex`` to floating ordinals
using ``DatetimeConv... | https://api.github.com/repos/pandas-dev/pandas/pulls/6702 | 2014-03-25T12:34:11Z | 2014-04-06T15:46:48Z | 2014-04-06T15:46:48Z | 2014-06-27T23:41:03Z | |
ENH/VIS: Dataframe bar plot can now handle align keyword properly | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6d7751266036b..5134130ba7865 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -135,10 +135,16 @@ API Changes
the index, rather than requiring a list of tuple (:issue:`4370`)
- Fix a bug where invalid eval/query operations would ... | Closes #4525.
I modified the `BarPlot` internal alignment to meet line coordinates. Previously, `BarPlot` doesn't pass `align` keyword to matplotlib (thus matplotlib uses `align='edge'`), but it adjusts bar locations to looks like `align='center'`.
Now `BarPlot` pass `align=center` to matplotlib by default and ticks ... | https://api.github.com/repos/pandas-dev/pandas/pulls/6691 | 2014-03-23T00:01:35Z | 2014-03-26T20:50:44Z | 2014-03-26T20:50:44Z | 2014-06-17T15:37:54Z |
BUG: Bug in resample with extra bins when using an evenly divisible freq (GH4076) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 55861a0f1b0f0..df0f472c390c7 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -185,7 +185,7 @@ Improvements to existing features
- Performance improvement when converting ``DatetimeIndex`` to floating ordinals
using ``DatetimeConv... | closes #4076
this only happened on the cythonized methods and not the python agg ones (this is why count worked, but sum did not)
| https://api.github.com/repos/pandas-dev/pandas/pulls/6690 | 2014-03-22T23:25:25Z | 2014-03-23T13:49:21Z | 2014-03-23T13:49:21Z | 2014-06-27T12:22:23Z |
BUG: NaN values not converted to Stata missing values (GH6684) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 3937b4b30fa0e..55861a0f1b0f0 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -269,6 +269,7 @@ Bug Fixes
- Bug in ``DataFrame.to_stata`` when columns have non-string names (:issue:`4558`)
- Bug in compat with ``np.compress``, surfac... | closes #6684
Stata does not correctly handle NaNs, and so these must be replaced with Stata
missing values (. by default). The fix checks floating point columns for nan
and replaces these with the Stata numeric code for (.).
The write_index option was also being ignored by omission. This has been fixed and
numerous ... | https://api.github.com/repos/pandas-dev/pandas/pulls/6685 | 2014-03-21T22:22:24Z | 2014-03-23T13:41:24Z | 2014-03-23T13:41:24Z | 2014-06-13T03:14:11Z |
BUG: Bug in binary operations with a rhs of a Series not aligning (GH6681) | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index 159cd05194300..fe3fc42992468 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -140,10 +140,9 @@ either match on the *index* or *columns* via the **axis** keyword:
.. ipython:: python
- d = {'one' : Series(randn(3), index=['a', 'b',... | closes #6681
```
In [11]: index=MultiIndex.from_product([list('abc'),
['one','two','three'],
[1,2,3]],
names=['first','second','third'])
In [12]: df = DataFrame(np.arange(27*3).reshape(2... | https://api.github.com/repos/pandas-dev/pandas/pulls/6682 | 2014-03-21T17:30:43Z | 2014-03-21T20:10:13Z | 2014-03-21T20:10:13Z | 2014-06-23T20:21:08Z |
BUG: legend behaves inconsistently when plotting to the same axes | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 03b89f9077994..a632d69eef734 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -384,6 +384,7 @@ Bug Fixes
group match wasn't renamed to the group name
- Bug in ``DataFrame.to_csv`` where setting `index` to `False` ignored the
`h... | There seems to be some inconsistencies related to `DataFrame.plot` and `Series.plot` legend behaviors.
_Problems:_
- When `DataFrame.plot` or `Series.plot` plots data on the same axes repeatedly:
- If the target axes already has a legend, line plot always appends its legend to existing one ignoring `legend` kw and e... | https://api.github.com/repos/pandas-dev/pandas/pulls/6678 | 2014-03-21T07:30:24Z | 2014-04-22T13:10:31Z | 2014-04-22T13:10:31Z | 2014-06-12T19:37:46Z |
ENH: define the order of resolution for index vs columns in query/eval | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index bca009c6b8931..c1b8044ea305b 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -784,6 +784,29 @@ If instead you don't want to or cannot name your index, you can use the name
del old_index
+.. note::
+
+ If the name of you... | closes #6676
| https://api.github.com/repos/pandas-dev/pandas/pulls/6677 | 2014-03-21T00:09:32Z | 2014-03-21T12:46:08Z | 2014-03-21T12:46:08Z | 2014-06-24T20:05:14Z |
PERF: Quick Shift Implementation (GH5609) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index f09969cda60f1..c0bd8f424c2b2 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -182,7 +182,8 @@ Improvements to existing features
- Support passing ``encoding`` with xlwt (:issue:`3710`)
- Performance improvement when converting ``Da... | closes #5609
## Test code
```
import pandas as pd
import numpy as np
import timeit
xdim = 10000
ydim = 500
repeats = 10
df = pd.DataFrame(np.random.rand(xdim,ydim))
# axis 0 shift
s = timeit.default_timer()
for i in range(repeats):
df1 = df.shift(1,axis=0)
e = timeit.default_timer()
print "Axis 0 shift",e-s
# ... | https://api.github.com/repos/pandas-dev/pandas/pulls/6672 | 2014-03-20T04:05:54Z | 2014-03-20T20:04:35Z | 2014-03-20T20:04:35Z | 2014-08-10T13:36:10Z |
BUG: Seed RNG in test_partially_invalid_plot_data | diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py
index f5ee7fc301384..fd0463ccd7ba0 100644
--- a/pandas/tests/test_graphics.py
+++ b/pandas/tests/test_graphics.py
@@ -1106,12 +1106,13 @@ def test_all_invalid_plot_data(self):
@slow
def test_partially_invalid_plot_data(self):
- ... | Came up upon merging another PR. See comment https://github.com/pydata/pandas/pull/6644#issuecomment-38057195
The test relies on drawing at least 1 draw out of 10 uniform draw to be larger than 0.5; even if this didn't cause the failure originally, it should still be fixed. I set a seed that's known to produce the des... | https://api.github.com/repos/pandas-dev/pandas/pulls/6670 | 2014-03-19T14:40:29Z | 2014-03-19T16:59:43Z | 2014-03-19T16:59:43Z | 2017-05-15T21:15:52Z |
ENH/VIS: Plotting DataFrame/Series with matplotlib.table | diff --git a/doc/source/release.rst b/doc/source/release.rst
index a5d41b9f6a4af..6928991e878d8 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -161,6 +161,17 @@ API Changes
- Added ``nunique`` and ``value_counts`` functions to ``Index`` for counting unique elements. (:issue:`6734`)
+- ``DataFr... | closes #4803
Related to #4803, I prepared some codes to add a `matplotlib.Table` to `DataFrame` and `Series` plot using `table` keyword. `table` can take followings as an input:
- `False`: Do nothing (default).
- `True`: Draw a table using the data called `plot` method. Data will be transposed to meet the matplotlib's... | https://api.github.com/repos/pandas-dev/pandas/pulls/6661 | 2014-03-18T14:42:00Z | 2014-04-07T15:41:42Z | 2014-04-07T15:41:42Z | 2014-07-08T21:46:11Z |
DOC: Mention date and time formatting available throughout MPL | diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst
index 5827f2e971e42..30e0fa9a44d7d 100644
--- a/doc/source/visualization.rst
+++ b/doc/source/visualization.rst
@@ -617,9 +617,18 @@ be colored differently.
Colormaps
~~~~~~~~~
-A potential issue when plotting a large number of columns is that... | The visualization documentation only mentions plotting using pandas' interface. This patch adds another section mentions that it is also possible to plot directly with MPL and that date and time formatters are automatically available through all plots in MPL. An example shows matplotlib's errorbar function where points... | https://api.github.com/repos/pandas-dev/pandas/pulls/6660 | 2014-03-18T13:38:31Z | 2014-03-24T11:03:56Z | 2014-03-24T11:03:56Z | 2014-07-05T02:53:02Z |
BUG: Bug in compat with np.compress, surfaced in (GH6658) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 7cf2bec0f4144..5510d70c1e0f7 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -126,9 +126,9 @@ API Changes
DataFrame returned by ``GroupBy.apply`` (:issue:`6124`). This facilitates
``DataFrame.stack`` operations where the n... | closes #6658
| https://api.github.com/repos/pandas-dev/pandas/pulls/6659 | 2014-03-18T12:18:47Z | 2014-03-18T14:39:47Z | 2014-03-18T14:39:47Z | 2014-06-21T09:06:49Z |
REGR: fixing Timestamp/Series subtraction, resolves #6648 | diff --git a/pandas/tseries/tests/test_tslib.py b/pandas/tseries/tests/test_tslib.py
index 19703b9e30ef6..8d9e4d5069f61 100644
--- a/pandas/tseries/tests/test_tslib.py
+++ b/pandas/tseries/tests/test_tslib.py
@@ -5,12 +5,13 @@
from pandas import tslib
import datetime
-from pandas.core.api import Timestamp
+from pan... | closes #6648.
Admittedly the conditional in `__sub__` is a little gross now.
I didn't add release notes as this is really just patching up a yet-to-be released item, but please let me know if I should.
Also, the test only runs on numpy >= 1.7, is that okay?
| https://api.github.com/repos/pandas-dev/pandas/pulls/6657 | 2014-03-17T23:10:30Z | 2014-03-18T10:09:59Z | 2014-03-18T10:09:59Z | 2014-07-16T08:58:46Z |
ENH/VIS: Area plot is now supported by kind='area'. | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 4532c1d6eee11..2215b40087969 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -190,6 +190,8 @@ API Changes
``data`` argument (:issue:`5357`)
- groupby will now not return the grouped column for non-cython functions (:issue:`5610`)... | Area plot is added to plotting method. The AreaPlot class is created as a subclass of LinePlot, thus it works also in time series.
By default, area plot is being stacked. When area plot is not stacked (`stacked=False`), alpha value is set to 0.5 to show overlapped area if not configured specifically. As a side benefi... | https://api.github.com/repos/pandas-dev/pandas/pulls/6656 | 2014-03-17T13:38:17Z | 2014-05-01T15:14:42Z | 2014-05-01T15:14:42Z | 2014-06-12T05:20:06Z |
DOC/API: pd.Grouper docs / api | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 811301a6bbbca..1c80712e82d49 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1193,6 +1193,7 @@ Indexing, iteration
GroupBy.groups
GroupBy.indices
GroupBy.get_group
+ Grouper
Function application
~~~~~~~~~~~~~~~~~~~~
diff --git a/d... | address comments from #6516
docs and api
| https://api.github.com/repos/pandas-dev/pandas/pulls/6655 | 2014-03-17T13:23:26Z | 2014-03-17T13:43:57Z | 2014-03-17T13:43:57Z | 2014-07-08T16:11:44Z |
DOC: some minor doc fixes | diff --git a/doc/source/10min.rst b/doc/source/10min.rst
index 7fc6f6d197dff..d6c17a3066b86 100644
--- a/doc/source/10min.rst
+++ b/doc/source/10min.rst
@@ -571,7 +571,7 @@ We can produce pivot tables from this data very easily:
.. ipython:: python
- pd.pivot_table(df, values='D', rows=['A', 'B'], cols=['C'])
+ ... | - some sphinx format tweaks in release.rst
- use new api in 10min.rst
| https://api.github.com/repos/pandas-dev/pandas/pulls/6653 | 2014-03-16T23:14:57Z | 2014-03-16T23:15:45Z | 2014-03-16T23:15:45Z | 2014-07-16T08:58:36Z |
BUG: disallow mixed dtype operations in eval/query | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 369f83066ed0d..def97ed41b906 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -136,6 +136,8 @@ API Changes
- A tuple passed to ``DataFame.sort_index`` will be interpreted as the levels of
the index, rather than requiring a list of... | closes #5198
| https://api.github.com/repos/pandas-dev/pandas/pulls/6652 | 2014-03-16T21:32:51Z | 2014-03-17T14:18:12Z | 2014-03-17T14:18:12Z | 2014-06-21T20:57:48Z |
TST: skip sql tests if connection to server fails | diff --git a/pandas/io/tests/test_sql.py b/pandas/io/tests/test_sql.py
index 46b5758904315..9ecb605def400 100644
--- a/pandas/io/tests/test_sql.py
+++ b/pandas/io/tests/test_sql.py
@@ -705,11 +705,14 @@ def setUp(self):
try:
import pymysql
self.driver = pymysql
-
except Impor... | Further work on #6292, non-controversial part of #6627.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6651 | 2014-03-16T11:11:01Z | 2014-03-16T11:12:29Z | 2014-03-16T11:12:29Z | 2014-07-03T07:26:40Z |
PERF: Speed up DatetimeConverter by using Matplotlib's epoch2num when possible... | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 2583b47d9b3bf..6f9aa1c01fc37 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -159,6 +159,8 @@ Improvements to existing features
- ``StataWriter`` and ``DataFrame.to_stata`` accept time stamp and data labels (:issue:`6545`)
- offset... | closes #6636
This fixes the performance bottleneck described in #6636 by using the vectorized epoch2num for DataIndex arrays. The included test ensures that the DatetimeConverter produces the same results as the Matplotlib's date2num for individual Timestamp objects as well as DatetimeIndex array objects.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6650 | 2014-03-15T21:17:46Z | 2014-03-17T19:48:28Z | 2014-03-17T19:48:28Z | 2014-06-19T14:26:36Z |
PLAT: platform sorting issue surfaced with time_grouper | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 7bf20d71cb301..683c07b70d0f2 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -169,7 +169,7 @@ def __new__(cls, *args, **kwargs):
cls = TimeGrouper
return super(Grouper, cls).__new__(cls)
- def __init__(self... | https://api.github.com/repos/pandas-dev/pandas/pulls/6649 | 2014-03-15T18:26:46Z | 2014-03-17T12:25:22Z | 2014-03-17T12:25:22Z | 2014-07-22T18:41:02Z | |
CLN: Fix many indentation errors found in #6643. | diff --git a/doc/make.py b/doc/make.py
index 8a92654d1378b..4367ac91396bb 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -77,10 +77,10 @@ def upload_prev(ver, doc_root='./'):
raise SystemExit('Upload PDF to %s from %s failed' % (ver, doc_root))
def build_pandas():
- os.chdir('..')
- os.system('... | Changes should only affect whitespace.
closes #6643
| https://api.github.com/repos/pandas-dev/pandas/pulls/6646 | 2014-03-15T15:26:21Z | 2014-06-17T21:54:57Z | 2014-06-17T21:54:57Z | 2014-06-17T21:55:10Z |
SQL: add index_label keyword to to_sql | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6c57a9ce5beaa..df2fbcbe32c8f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -908,7 +908,8 @@ def to_msgpack(self, path_or_buf=None, **kwargs):
from pandas.io import packers
return packers.to_msgpack(path_or_buf, se... | Further work on #6292. While looking at possible multi-index support, I thought of first adding this:
- added ability to specify the used column name for the index column in `to_sql` (analoguous to `to_csv`). Good idea?
- I only did it for the new sqlalchemy function, not the legacy one. Only problem is that it starts ... | https://api.github.com/repos/pandas-dev/pandas/pulls/6642 | 2014-03-14T23:01:01Z | 2014-03-28T20:40:51Z | 2014-03-28T20:40:51Z | 2014-06-30T13:49:37Z |
API: A tuple passed to DataFame.sort_index will be interpreted as the levels of the index (GH4370) | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index c2642501791e7..159cd05194300 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -1287,9 +1287,18 @@ Some other sorting notes / nuances:
* ``Series.sort`` sorts a Series by value in-place. This is to provide
compatibility with NumPy ... | closes #4370
```
In [3]: df = DataFrame({'one':[2,1,1,1],'two':[1,3,2,4],'three':[5,4,3,2]})
In [7]: df.columns = MultiIndex.from_tuples([('a','one'),('a','two'),('b','three')])
In [8]: df
Out[8]:
a b
one two three
0 2 5 1
1 1 4 3
2 1 3 2
3 1 2 4
[4 r... | https://api.github.com/repos/pandas-dev/pandas/pulls/6639 | 2014-03-14T21:38:21Z | 2014-03-15T14:34:37Z | 2014-03-15T14:34:37Z | 2014-06-24T17:52:10Z |
BUG: Bug in fillna with limit and value specified | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6f83bea6a6578..4890f22e98468 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -232,7 +232,7 @@ Bug Fixes
- Bug in sql writing with mixed dtypes possibly leading to data loss (:issue:`6509`)
- Bug in popping from a Series (:issue:`66... | from SO: http://stackoverflow.com/questions/22379343/change-first-occurrence-of-nan-in-a-specific-dataframe-row-to-a-new-value/22380225#22380225
| https://api.github.com/repos/pandas-dev/pandas/pulls/6628 | 2014-03-13T13:32:40Z | 2014-03-13T14:37:40Z | 2014-03-13T14:37:40Z | 2014-06-25T08:40:04Z |
BUG: Error in to_stata when DataFrame contains non-string column names | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 4890f22e98468..12a83f48706e5 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -233,6 +233,7 @@ Bug Fixes
- Bug in popping from a Series (:issue:`6600`)
- Bug in ``iloc`` indexing when positional indexer matched Int64Index of corresp... | closes #4558
to_stata does not work correctly when used with non-string names. Since
Stata requires string names, the proposed fix attempts to rename columns using
the string representation of the column name used. A warning is raised if
the column name is changed.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6622 | 2014-03-13T00:37:24Z | 2014-03-13T22:19:16Z | 2014-03-13T22:19:16Z | 2014-07-16T08:58:09Z |
CLN #6589 remove print statements when sep=None is passed to read_csv | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index e7d9145aa9d68..b45b8929e7af3 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -535,7 +535,6 @@ def _clean_options(self, options, engine):
if sep is None and not delim_whitespace:
if engine == 'c':
- prin... | Simply removed unneceesary print.
fix https://github.com/pydata/pandas/issues/6589
| https://api.github.com/repos/pandas-dev/pandas/pulls/6615 | 2014-03-12T14:04:31Z | 2014-03-12T14:22:51Z | 2014-03-12T14:22:51Z | 2014-07-11T13:43:40Z |
BUG/CLN: fix iloc when positional indexer matched Int64Index key | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 226fce52dbde1..6f83bea6a6578 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -231,6 +231,8 @@ Bug Fixes
- Bug in fillna with method = 'bfill/ffill' and ``datetime64[ns]`` dtype (:issue:`6587`)
- Bug in sql writing with mixed dtypes... | closes #6612
As discussed in #6612, `reindex(..., takeable=True)` as released in 0.13.0 didn't do anything that's not achieved by `.take`, `.iloc` and `.copy` attrs/methods, but also contained a bug which propagated to `iloc` when the latter was changed to use _reindex/takeable_ internally.
The proposed solution is t... | https://api.github.com/repos/pandas-dev/pandas/pulls/6614 | 2014-03-12T11:09:22Z | 2014-03-12T18:33:43Z | 2014-03-12T18:33:43Z | 2014-07-16T08:58:04Z |
TST: enable MySQL tests | diff --git a/ci/requirements-2.7.txt b/ci/requirements-2.7.txt
index 8fc289b5e1511..030dae3c50fe8 100644
--- a/ci/requirements-2.7.txt
+++ b/ci/requirements-2.7.txt
@@ -18,4 +18,5 @@ beautifulsoup4==4.2.1
statsmodels==0.5.0
bigquery==2.0.17
sqlalchemy==0.8.1
+pymysql==0.6.1
psycopg2==2.5.2
diff --git a/ci/requireme... | PR to fix and enable the MySQL tests for the new sql functionality.
- floats (decimal.Decimal) were not converted due to a small bug in the `coerce_float` arg. This is now OK.
- MySQL has no real BOOL type (it is just an alias for tiny int). So I changed the tests for that (so a bool column is converted to int64 (or fl... | https://api.github.com/repos/pandas-dev/pandas/pulls/6613 | 2014-03-12T09:23:14Z | 2014-03-12T13:52:25Z | 2014-03-12T13:52:25Z | 2014-07-07T14:23:04Z |
FIX str.match uses na flag | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 0e6924e4b0122..cf50dd52e70e4 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -186,6 +186,7 @@ Bug Fixes
- Disabled clipboard tests until release time (run locally with ``nosetests -A disabled`` (:issue:`6048`).
- Bug in ``DataFrame... | fixes #6609
| https://api.github.com/repos/pandas-dev/pandas/pulls/6611 | 2014-03-12T06:11:39Z | 2014-03-14T06:18:09Z | 2014-03-14T06:18:09Z | 2014-06-20T20:48:38Z |
Change Panel.shift to use NDFrame.shift | diff --git a/doc/source/release.rst b/doc/source/release.rst
index cd5b0cbd23353..4b87a78982662 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -152,6 +152,8 @@ API Changes
- all offset operations now return ``Timestamp`` types (rather than datetime), Business/Week frequencies were incorrect (:is... | closes #4867
This brings `Panel.shift` in line with `DataFrame.shift`. The shifted data retains the same dimensions/indexes and doesn't drop the empty rows. So I have two concerns.
1. This is an API change and could conceivably break existing code.
2. The perf regresses quite a bit.
Here is the vbench.
```
------... | https://api.github.com/repos/pandas-dev/pandas/pulls/6605 | 2014-03-11T20:10:41Z | 2014-04-01T20:55:05Z | 2014-04-01T20:55:04Z | 2014-06-29T18:16:04Z |
ENH: Make sure makeMissing* works as expected. | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index a0876179ee4af..2860cdf3b200d 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -941,8 +941,8 @@ def _gen_unique_rand(rng, _extra_size):
extra_size *= 1.05
ind = _gen_unique_rand(random_state, extra_size)
- j = np... | https://api.github.com/repos/pandas-dev/pandas/pulls/6603 | 2014-03-11T18:01:45Z | 2014-03-11T18:50:06Z | 2014-03-11T18:50:06Z | 2014-07-16T08:57:55Z | |
BUG: Bug in popping from a Series (GH6600) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index c42c9920efef1..434477d071c4b 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -228,7 +228,7 @@ Bug Fixes
- Bug in ``.xs`` with a ``nan`` in level when dropped (:issue:`6574`)
- Bug in fillna with method = 'bfill/ffill' and ``datetim... | closes #6600
| https://api.github.com/repos/pandas-dev/pandas/pulls/6601 | 2014-03-11T17:43:46Z | 2014-03-11T19:00:54Z | 2014-03-11T19:00:54Z | 2014-06-30T13:50:31Z |
SQL: move df.to_sql to generic + update with new functionality | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8a72b0d7c4493..4f23fd69d7621 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1261,25 +1261,6 @@ def to_stata(
time_stamp=time_stamp, data_label=data_label)
writer.write_file()
- def to_sql(self, n... | Initial commit for this.
Questions:
- To catch Panels (and raiseNotImplementedError), should I do this in sql.to_sql or in NDFrame.to_sql?
- To support Series, I can just call `to_frame` on it. Is this OK?
And should add tests for this.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6598 | 2014-03-11T12:50:00Z | 2014-03-16T14:37:42Z | 2014-03-16T14:37:42Z | 2014-07-02T11:06:35Z |
FIX: Bug whereby array_equivalent was not correctly comparing Float64Ind... | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 60a533db01f7f..46ca371284ae4 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -311,11 +311,14 @@ def array_equivalent(left, right):
>>> array_equivalent(np.array([1, nan, 2]), np.array([1, 2, nan]))
False
"""
+ left, rig... | Currently,
```
>>> import pandas.core.common as com
>>> com.array_equivalent(Float64Index([0, np.nan]), Float64Index([0, np.nan]))
False
```
Although the current pandas code base does not use `array_equivalent` to compare Float64Indexes, leaving `array_equivalent` in its current state may be a bug waiting to happen.... | https://api.github.com/repos/pandas-dev/pandas/pulls/6597 | 2014-03-11T12:26:58Z | 2014-03-11T12:56:40Z | 2014-03-11T12:56:40Z | 2014-07-16T08:57:49Z |
Gbq unicode support | diff --git a/doc/source/v0.14.0.txt b/doc/source/v0.14.0.txt
index cfee48d62928b..932ed4e1672b7 100644
--- a/doc/source/v0.14.0.txt
+++ b/doc/source/v0.14.0.txt
@@ -327,6 +327,7 @@ Enhancements
- ``DataFrame.to_stata`` and ``StataWriter`` will accept keyword arguments time_stamp
and data_label which allow the time ... | Resolves Issue https://github.com/pydata/pandas/issues/5940 .
| https://api.github.com/repos/pandas-dev/pandas/pulls/6596 | 2014-03-11T04:25:01Z | 2014-03-14T02:32:54Z | 2014-03-14T02:32:54Z | 2014-06-14T18:12:35Z |
FIX filter selects selected columns | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 1bdb3973ee92c..86590d2319447 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -2529,7 +2529,7 @@ def filter(self, func, dropna=True, *args, **kwargs):
indices = []
- obj = self._obj_with_exclusions
+ obj = s... | fixes #6512
TST for selected groupby add resample ohlc and filter
add couple of tests for #5264
| https://api.github.com/repos/pandas-dev/pandas/pulls/6593 | 2014-03-11T00:40:38Z | 2014-03-11T00:54:21Z | 2014-03-11T00:54:21Z | 2014-07-02T01:18:18Z |
Improve performance for custom business days (GH6584) | diff --git a/doc/source/v0.14.0.txt b/doc/source/v0.14.0.txt
index ea321cbab545a..490bb155ba814 100644
--- a/doc/source/v0.14.0.txt
+++ b/doc/source/v0.14.0.txt
@@ -343,6 +343,7 @@ Enhancements
and data_label which allow the time stamp and dataset label to be set when creating a
file. (:issue:`6545`)
- ``pandas.... | closes #6584
Tests are passing. Incrementing datetime with custom dateoffset is at about twice the speed now. This could probably be optimized more.
| https://api.github.com/repos/pandas-dev/pandas/pulls/6592 | 2014-03-10T22:48:22Z | 2014-03-18T10:08:23Z | 2014-03-18T10:08:23Z | 2014-06-13T22:07:35Z |
BUG: replace iterrows with itertuples in sql insert (GH6509) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 0e6924e4b0122..c42c9920efef1 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -227,6 +227,8 @@ Bug Fixes
- Series.quantile raising on an ``object`` dtype (:issue:`6555`)
- Bug in ``.xs`` with a ``nan`` in level when dropped (:issue:... | Fixes #6509.
Should still add a test
| https://api.github.com/repos/pandas-dev/pandas/pulls/6591 | 2014-03-10T20:57:44Z | 2014-03-11T12:05:51Z | 2014-03-11T12:05:51Z | 2014-06-20T10:46:15Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.