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 |
|---|---|---|---|---|---|---|---|
TYP ensure bool_t is always used in pandas/core/generic.py | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d927be76843e1..7988012498db7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -206,3 +206,8 @@ repos:
files: ^pandas/core/
exclude: ^pandas/core/api\.py$
types: [python]
+ - id: no-bool-in-core-gene... | - [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
Currently, lots of methods use the `bool` annotation in that file. I'm not sure it affects `mypy` (some experiments with `reveal_type` suggest it doesn't) - howe... | https://api.github.com/repos/pandas-dev/pandas/pulls/40175 | 2021-03-02T18:43:20Z | 2021-04-08T14:43:39Z | 2021-04-08T14:43:39Z | 2021-04-08T14:59:56Z |
Backport PR #40170 on branch 1.2.x (DOC: Start v1.2.4 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index c9c31b408fb7e..8739694c20e33 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.4
v1.2.3
v1.2.2
v1.2.1
diff --git a/doc/source/... | Backport PR #40170: DOC: Start v1.2.4 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/40172 | 2021-03-02T12:26:43Z | 2021-03-02T13:26:42Z | 2021-03-02T13:26:42Z | 2021-03-02T13:26:42Z |
DOC: Start v1.2.4 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 71c9b0613b3ce..8697182f5ca6f 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.4
v1.2.3
v1.2.2
v1.2.1
diff --git a/doc/source/... | do not merge yet. will merge to master after github release to trigger website update | https://api.github.com/repos/pandas-dev/pandas/pulls/40170 | 2021-03-02T11:25:41Z | 2021-03-02T12:26:15Z | 2021-03-02T12:26:15Z | 2021-03-02T12:26:35Z |
REF: remove internal Block usage from FrameColumnApply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 15cee1419afb5..203a0c675282d 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -883,9 +883,8 @@ def series_generator(self):
# of it. Kids: don't do this at home.
ser = self.obj._ixs(0, axis=0)
mgr = ser._mgr
- ... | In the `apply` code, there is still one case where we are directly using the internal blocks. This moves that to a method on the manager, so we don't have to interact directly with the blocks (which ideally we don't want outside of the internals, and let's ArrayManager cleanly support this as well).
For the rest it... | https://api.github.com/repos/pandas-dev/pandas/pulls/40166 | 2021-03-02T08:17:06Z | 2021-03-02T17:22:49Z | 2021-03-02T17:22:49Z | 2021-03-02T17:22:52Z |
Backport PR #40137 on branch 1.2.x (DOC: 1.2.3 release date) | diff --git a/doc/source/whatsnew/v1.2.3.rst b/doc/source/whatsnew/v1.2.3.rst
index 99e997189d7b8..c94491df474ab 100644
--- a/doc/source/whatsnew/v1.2.3.rst
+++ b/doc/source/whatsnew/v1.2.3.rst
@@ -1,6 +1,6 @@
.. _whatsnew_123:
-What's new in 1.2.3 (March ??, 2021)
+What's new in 1.2.3 (March 02, 2021)
-------------... | Backport PR #40137: DOC: 1.2.3 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/40165 | 2021-03-02T07:30:49Z | 2021-03-02T08:39:24Z | 2021-03-02T08:39:24Z | 2021-03-02T08:39:24Z |
BUG: EWM.__getitem__ raised error with times | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5c61f259a4202..9bb9f0c7a467a 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -520,7 +520,8 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.sample` where error was raised when ``weights`` ... | - [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
Also somewhat ameliorates the performance hit in https://github.com/pandas-dev/pandas/pull/40072#issuecomment... | https://api.github.com/repos/pandas-dev/pandas/pulls/40164 | 2021-03-02T05:30:25Z | 2021-03-03T13:06:59Z | 2021-03-03T13:06:59Z | 2021-03-03T20:23:41Z |
BUG: DataFrame(frozenset) should raise | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 41db72612a66b..ee4ca6a06a634 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -402,6 +402,7 @@ Conversion
- Bug in :meth:`Series.to_dict` with ``orient='records'`` now returns python native types (:iss... | DataFrame(set) raises, and Series raises for both. This unifies the 2 places this is checked.
Started out as a split-big-tests branch, so some of that is left over. | https://api.github.com/repos/pandas-dev/pandas/pulls/40163 | 2021-03-02T03:45:54Z | 2021-03-02T23:25:54Z | 2021-03-02T23:25:54Z | 2021-03-02T23:37:52Z |
BUG: Add decl when xml_declaration=True and pretty_print=False for et… | diff --git a/pandas/io/formats/xml.py b/pandas/io/formats/xml.py
index 044b03ba83714..dd68f0f78261e 100644
--- a/pandas/io/formats/xml.py
+++ b/pandas/io/formats/xml.py
@@ -324,7 +324,9 @@ def build_tree(self) -> bytes:
if self.pretty_print:
self.out_xml = self.prettify_tree()
- if not se... | …ree parser
- [X] references IO XML tracker #40131
- [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
- [ ] whatsnew entry (not necessary, module releases: v1.3.0)
| https://api.github.com/repos/pandas-dev/pandas/pulls/40162 | 2021-03-02T03:44:35Z | 2021-03-03T03:09:05Z | 2021-03-03T03:09:05Z | 2021-03-04T22:51:41Z |
STYLE: Inconsistent namespace - dtypes (pandas-dev#39992) | diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py
index bf83085058cfc..ca311768dc2d9 100644
--- a/pandas/tests/dtypes/test_dtypes.py
+++ b/pandas/tests/dtypes/test_dtypes.py
@@ -821,7 +821,7 @@ class TestCategoricalDtypeParametrized:
np.arange(1000),
["a", "b... | - [x] xref #39992
- [ ] 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
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40161 | 2021-03-02T01:25:25Z | 2021-03-02T08:10:30Z | 2021-03-02T08:10:30Z | 2021-03-02T08:10:38Z |
STYLE: incondintent namaspace(series) | diff --git a/pandas/tests/series/accessors/test_dt_accessor.py b/pandas/tests/series/accessors/test_dt_accessor.py
index 6199e77e10166..5db159e1abb80 100644
--- a/pandas/tests/series/accessors/test_dt_accessor.py
+++ b/pandas/tests/series/accessors/test_dt_accessor.py
@@ -74,7 +74,7 @@ def get_expected(s, name):
... | - [x] xref #39992
- [ ] 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/40159 | 2021-03-02T00:15:55Z | 2021-03-02T08:09:01Z | 2021-03-02T08:09:01Z | 2021-03-02T08:09:02Z |
REF: refactor array_strptime_with_fallback from to_datetime | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 9bfe852083390..279f4bd056ed8 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -284,7 +284,7 @@ def _convert_listlike_datetimes(
tz: Optional[Timezone] = None,
unit: Optional[str] = None,
... | ultimate goal is to condense the several datetime casting/inference functions we use down to just one. | https://api.github.com/repos/pandas-dev/pandas/pulls/40156 | 2021-03-01T21:09:45Z | 2021-03-02T17:27:55Z | 2021-03-02T17:27:55Z | 2021-03-02T17:29:16Z |
REF: avoid circular (runtime) import in dtypes.cast | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 4593b4dea78a4..71863c8925e89 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -43,6 +43,7 @@
iNaT,
ints_to_pydatetime,
)
+from pandas._libs.tslibs.timedeltas import array_to_timedelta64
from pandas._typing ... | - [ ] 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/40155 | 2021-03-01T21:08:10Z | 2021-03-01T23:10:12Z | 2021-03-01T23:10:12Z | 2021-03-01T23:53:10Z |
TYP: internals.construction | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 178e6ce9b02eb..9f111282473c2 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1620,6 +1620,7 @@ def maybe_cast_to_datetime(
dta = dta.tz_localize(None)
val... | - [ ] 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/40154 | 2021-03-01T21:02:24Z | 2021-03-03T18:41:53Z | 2021-03-03T18:41:53Z | 2021-03-03T18:48:27Z |
[ArrayManager] Add SingleArrayManager to back a Series | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 06a06484b921a..a84de6cda0432 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -165,6 +165,9 @@ jobs:
pytest pandas/tests/resample/
pytest pandas/tests/reshape/merge
+ pytest pandas/tests/series/metho... | xref https://github.com/pandas-dev/pandas/issues/39146#issuecomment-786741804
This implements a `SingleArrayManager` class for backing a Series, consistent with how we have a SingleBlockManager.
cc @jreback @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/40152 | 2021-03-01T20:45:53Z | 2021-03-05T00:55:16Z | 2021-03-05T00:55:15Z | 2021-03-05T07:14:46Z |
PERF: extract_array -> _values | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index a4da249894084..74fb0e2bd54fb 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -84,7 +84,7 @@
from pandas.core.array_algos.take import take_nd
from pandas.core.construction import (
- array,
+ array as pd_array,
... | Found that grepping for uses of pd.array is a PITA, so went through and changed them all (inside core) to pd_array. @MarcoGorelli would it be feasible to make a code check for this? | https://api.github.com/repos/pandas-dev/pandas/pulls/40150 | 2021-03-01T18:05:21Z | 2021-03-01T21:41:50Z | 2021-03-01T21:41:50Z | 2021-03-02T06:43:14Z |
PERF: DataFrame.transpose with dt64tz | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index f6b5c30635980..ba0c4b99f861f 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -673,6 +673,7 @@ Performance improvements
- Performance improvement for concatenation of data with type :class:`Categorical... | Does what it says on the tin: `DatetimeBlock.values` is always `DatetimeArray`, and `dt64tzblock.shape == dt64tzblock.values` in all cases. Similarly `TimedeltaBlock.values` is always `TimedeltaArray`.
Notes:
- It is straightforward to extend this to work for PeriodDtype (i have a branch). Haven't tried it, but I... | https://api.github.com/repos/pandas-dev/pandas/pulls/40149 | 2021-03-01T15:55:44Z | 2021-05-17T19:17:35Z | 2021-05-17T19:17:35Z | 2021-05-17T19:22:05Z |
[ArrayManager] Ensure to store datetimelike data as DatetimeArray/TimedeltaArray (and not ndarray) | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index 5001754017dda..0556434c2c223 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -33,6 +33,7 @@
)
from pandas.core.dtypes.common import (
is_bool_dtype,
+ is_datet... | Pre-cursor for https://github.com/pandas-dev/pandas/pull/39991
Currently we didn't really check that we were consistently storing datetimelike data as the EA (DatetimeArray, TimedeltaArray) or as ndarrray. Ensuring this in the ArrayManager constructor turns up a few failures.
I *think* it will be the easiest to a... | https://api.github.com/repos/pandas-dev/pandas/pulls/40147 | 2021-03-01T14:12:51Z | 2021-03-02T21:08:13Z | 2021-03-02T21:08:13Z | 2021-03-03T08:22:26Z |
REGR: reduction operations failing if `min_count` is larger | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index 790ff4c78cad6..edf23bf89d7e1 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -15,7 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | - [ ] closes #39738
- [ ] 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/40143 | 2021-03-01T13:13:59Z | 2021-03-05T01:09:48Z | 2021-03-05T01:09:48Z | 2021-03-05T15:49:50Z |
CI, TST enable branch coverage | diff --git a/setup.cfg b/setup.cfg
index ce055f550a868..ca0673bd5fc34 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -125,7 +125,7 @@ ignore-words-list = ba,blocs,coo,hist,nd,ser
ignore-regex = https://(\w+\.)+
[coverage:run]
-branch = False
+branch = True
omit =
*/tests/*
pandas/_typing.py
| - [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
As suggested on Gitter - this could help identify more untested parts of the codebase and hence uncover bugs
| https://api.github.com/repos/pandas-dev/pandas/pulls/40142 | 2021-03-01T12:38:29Z | 2021-03-01T19:32:52Z | 2021-03-01T19:32:52Z | 2021-03-01T19:45:36Z |
REF: move Block.astype implementation to dtypes/cast.py | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 71863c8925e89..d456f9c56e309 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -10,6 +10,7 @@
datetime,
timedelta,
)
+import inspect
from typing import (
TYPE_CHECKING,
Any,
@@ -87,6 +88,7 @@
... | This moves the `astype` implementation (so the current logic of calling `EA.astype` or `astype_nansafe` depending on the array type, handling datetime and string special cases, handling error keyword, etc) from being defined on `Block` to the `array_algos/` submodule.
That's a useful clean-up anyway I think (it's n... | https://api.github.com/repos/pandas-dev/pandas/pulls/40141 | 2021-03-01T11:30:20Z | 2021-03-02T17:23:42Z | 2021-03-02T17:23:42Z | 2021-03-02T17:23:46Z |
to_offset was not using the compiled regex | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 2d4704ad3bda6..4e6e5485b2ade 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3579,7 +3579,7 @@ cpdef to_offset(freq):
stride_sign = None
try:
- split = re.split(opat... | - [x] closes #39988
- [ ] 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
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40138 | 2021-03-01T09:12:42Z | 2021-03-01T13:54:59Z | 2021-03-01T13:54:59Z | 2021-03-01T13:55:03Z |
DOC: 1.2.3 release date | diff --git a/doc/source/whatsnew/v1.2.3.rst b/doc/source/whatsnew/v1.2.3.rst
index 99e997189d7b8..c94491df474ab 100644
--- a/doc/source/whatsnew/v1.2.3.rst
+++ b/doc/source/whatsnew/v1.2.3.rst
@@ -1,6 +1,6 @@
.. _whatsnew_123:
-What's new in 1.2.3 (March ??, 2021)
+What's new in 1.2.3 (March 02, 2021)
-------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/40137 | 2021-03-01T08:25:54Z | 2021-03-02T07:30:15Z | 2021-03-02T07:30:15Z | 2021-03-02T07:31:26Z | |
DEPR: `Styler.set_na_rep` and `.set_precision` in favour of `.format(na_rep='x', precision=3)` | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 3a8d912fa6ffe..79a52b7cdb9d1 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -35,7 +35,6 @@ Style application
Styler.applymap
Styler.where
Styler.format
- Styler.set_precision
Styler.... | - [x] closes issue #40032 and PR #40060
- [x] deprecates the methods `Styler.set_na_rep()` and `Styler.set_precision()` in favour of, and incorporating `precision` into `Styler.format()`. Maintains some backwards compatibility with a deprecation warning, the copy mechanics remain broken.
- [x] `Styler.set_na_r... | https://api.github.com/repos/pandas-dev/pandas/pulls/40134 | 2021-03-01T06:30:47Z | 2021-03-05T22:07:58Z | 2021-03-05T22:07:58Z | 2022-10-28T16:49:39Z |
DOC: small doc build fixes | diff --git a/doc/source/io.rst b/doc/source/io.rst
index dfe85c4cb224b..1852330c0b1be 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -3411,6 +3411,7 @@ table : `test_dataset.test_table` into a DataFrame using the :func:`~pandas.io.r
function.
.. code-block:: python
+
# Insert your BigQuery Project ID... | https://api.github.com/repos/pandas-dev/pandas/pulls/7635 | 2014-07-01T13:06:48Z | 2014-07-01T13:07:00Z | 2014-07-01T13:07:00Z | 2014-07-01T13:07:00Z | |
FIX: don't create 32 bit int type for int64 column (GH7433) | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index bb6f9cee5766e..5a778ca08b0a3 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -700,7 +700,8 @@ def _harmonize_columns(self, parse_dates=None):
pass # this column not in results
def _sqlalchemy_type(self, arr_or_dtype):
- from ... | Closes #7433
Replace the sqlalchemy `Integer` type with `BigInteger` as the default integer type in pandas is int64.
Probably we could be more specific in the type conversion (check for the exact integer type).
| https://api.github.com/repos/pandas-dev/pandas/pulls/7634 | 2014-07-01T12:59:02Z | 2014-07-05T13:48:39Z | 2014-07-05T13:48:39Z | 2014-07-06T14:52:45Z |
BUG: doc example in groupby.rst (GH7559 / GH7628) | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 96eb0189a97f6..249aa0afdfd64 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -829,11 +829,21 @@ def nth(self, n, dropna=None):
dropped = self.obj.dropna(how=dropna, axis=self.axis)
# get a new grouper for our drop... | closes #7628
| https://api.github.com/repos/pandas-dev/pandas/pulls/7631 | 2014-07-01T12:10:14Z | 2014-07-01T12:50:25Z | 2014-07-01T12:50:25Z | 2014-07-01T12:50:25Z |
PERF: optimize MultiIndex.from_product | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 1aaf77625cf7f..b22720d277873 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -145,7 +145,7 @@ Performance
- Improvements in Series.transform for significant performance gains (:issue:`6496`)
- Improvements in DataFrame.transform wi... | This PR speeds up MultiIndex.from_product employing the fact that operating on categorical codes is faster than on the values themselves.
This yields about 2x improvement in the benchmark
``` python
In [1]: import pandas.util.testing as tm
In [2]: data = [tm.makeStringIndex(10000), tm.makeFloatIndex(20)]
In [3]: ... | https://api.github.com/repos/pandas-dev/pandas/pulls/7627 | 2014-07-01T05:45:02Z | 2014-07-01T11:36:24Z | 2014-07-01T11:36:24Z | 2014-07-01T17:42:19Z |
CLN/DEPR: Fix instances of 'U'/'rU' in open(...) | diff --git a/pandas/io/tests/test_sql.py b/pandas/io/tests/test_sql.py
index a34f278fc5a96..68de031641c58 100644
--- a/pandas/io/tests/test_sql.py
+++ b/pandas/io/tests/test_sql.py
@@ -157,12 +157,13 @@ def _get_exec(self):
return self.conn.cursor()
def _load_iris_data(self):
+ import io
... | closes #7131
| https://api.github.com/repos/pandas-dev/pandas/pulls/7625 | 2014-07-01T02:28:22Z | 2014-07-01T17:52:25Z | 2014-07-01T17:52:25Z | 2014-07-02T11:46:11Z |
CLN: Fix typo | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index bb6f9cee5766e..88607d8273ec8 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -88,7 +88,7 @@ def execute(sql, con, cur=None, params=None):
Using SQLAlchemy makes it possible to use any DB supported by that
library.
If a DBAPI2 obje... | https://api.github.com/repos/pandas-dev/pandas/pulls/7624 | 2014-07-01T02:05:42Z | 2014-07-01T10:41:40Z | 2014-07-01T10:41:40Z | 2014-07-01T12:12:29Z | |
ENH: dataframe memory usage | diff --git a/doc/source/faq.rst b/doc/source/faq.rst
index a613d53218ce2..259243638ac74 100644
--- a/doc/source/faq.rst
+++ b/doc/source/faq.rst
@@ -24,6 +24,81 @@ Frequently Asked Questions (FAQ)
options.display.mpl_style='default'
from pandas.compat import lrange
+
+.. _df-memory-usage:
+
+DataFrame memory ... | Closes [#6852](https://github.com/pydata/pandas/issues/6852)
For a sample DataFrame:
``` python
df = pd.DataFrame({ 'float' : np.random.randn(10000000), 'int' : np.random.randint(0,5,size=10000000), 'date' : Timestamp('20130101'), 'string' : 'foo', 'smallint' : np.random.randint(0,5,size=10000000).astype('int16') })
... | https://api.github.com/repos/pandas-dev/pandas/pulls/7619 | 2014-06-30T18:44:51Z | 2014-10-05T02:31:10Z | 2014-10-05T02:31:10Z | 2014-10-05T02:35:24Z |
COMPAT: make numpy NaT comparison use a view to avoid implicit conversions | diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx
index 70675875c8143..d32978c881244 100644
--- a/pandas/tslib.pyx
+++ b/pandas/tslib.pyx
@@ -892,7 +892,7 @@ cdef convert_to_tsobject(object ts, object tz, object unit):
if ts is None or ts is NaT or ts is np_NaT:
obj.value = NPY_NAT
elif is_datetime64_... | https://api.github.com/repos/pandas-dev/pandas/pulls/7617 | 2014-06-30T14:40:13Z | 2014-06-30T15:17:20Z | 2014-06-30T15:17:20Z | 2014-06-30T15:17:20Z | |
BUG: Bug in to_timedelta that accepted invalid units and misinterpreted m/h (GH7611, GH6423) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index be818e71f55a8..58154e066c0bf 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -176,7 +176,7 @@ Bug Fixes
- Bug in groupby ``.nth`` with a Series and integer-like column name (:issue:`7559`)
- Bug in ``value_counts`` where ``NaT`` ... | closes #7611
closes #6423
| https://api.github.com/repos/pandas-dev/pandas/pulls/7616 | 2014-06-30T13:32:38Z | 2014-06-30T14:35:18Z | 2014-06-30T14:35:18Z | 2014-09-05T03:18:03Z |
Fix typo in documentation | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 795bbca673f77..7ca4ff0529b4e 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -1448,7 +1448,7 @@ Elements can be set to ``NaT`` using ``np.nan`` analagously to datetimes
y[1] = np.nan
y
-Operands can also appear ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/7613 | 2014-06-30T09:16:50Z | 2014-06-30T09:41:27Z | 2014-06-30T09:41:27Z | 2014-06-30T09:41:37Z |
BUG: Timestamp.__new__ doesnt preserve nanosecond | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index ab2c4a697e1ea..7030598040ea6 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -255,7 +255,7 @@ Bug Fixes
- Bug in ``Timestamp.tz_localize`` resets ``nanosecond`` info (:issue:`7534`)
- Bug in ``DatetimeIndex.asobject`` raises ``Va... | When `Timestamp.__new__` accepts a timestamp with nanosecond, nanosecond is not preserved properly.
```
# create Timestamp with ns (OK)
t = pd.Timestamp('2011-01-01') + pd.offsets.Nano(5)
t, t.value
# (Timestamp('2011-01-01 00:00:00.000000005'), 1293840000000000005)
# If it is passed to Timestamp.__init__, ns is not ... | https://api.github.com/repos/pandas-dev/pandas/pulls/7610 | 2014-06-29T14:14:44Z | 2014-06-30T13:29:09Z | 2014-06-30T13:29:09Z | 2014-07-02T16:45:22Z |
BUG: PeriodIndex.min/max returns int | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 3160b35386fa2..dbd8b15333d50 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -185,6 +185,7 @@ Bug Fixes
- Bug in ``DatetimeIndex.asobject`` doesn't preserve ``name`` (:issue:`7299`)
- Bug in multi-index slicing with datetimelike ra... | Related to #7279. `PeriodIndex.min/max` should return `Period` ignoring `NaT`.
```
pidx = pd.PeriodIndex(['2011-01', 'NaT'], freq='M')
pidx.min()
# -9223372036854775808
pidx.max()
#492
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/7609 | 2014-06-29T10:26:56Z | 2014-06-29T12:43:00Z | 2014-06-29T12:43:00Z | 2014-06-30T10:58:00Z |
BUG: DatetimeIndex.delete with tz raises ValueError | diff --git a/pandas/tseries/index.py b/pandas/tseries/index.py
index d022911fe2909..de758c4c8a579 100644
--- a/pandas/tseries/index.py
+++ b/pandas/tseries/index.py
@@ -1626,7 +1626,7 @@ def delete(self, loc):
freq = self.freq
if self.tz is not None:
- new_dates = tslib.date_n... | Found and fixed `DatetimeIndex.delete` (#7302) results in `ValueError` when it has `tz` and `freq` is less than daily..
```
idx = pd.date_range(start='2011-01-01 09:00', periods=40, freq='H', tz='Asia/Tokyo')
idx.delete(0)
# ValueError: Inferred frequency None from passed dates does notconform to passed frequency H
``... | https://api.github.com/repos/pandas-dev/pandas/pulls/7608 | 2014-06-29T10:16:42Z | 2014-07-03T21:31:22Z | 2014-07-03T21:31:22Z | 2014-07-05T04:48:06Z |
CLN: Simplify Period Construction / Resolution | diff --git a/pandas/io/tests/data/legacy_pickle/0.13.0/0.13.0_x86_64_darwin_2.7.6.pickle b/pandas/io/tests/data/legacy_pickle/0.13.0/0.13.0_x86_64_darwin_2.7.6.pickle
new file mode 100644
index 0000000000000..4f5bdada3c7da
Binary files /dev/null and b/pandas/io/tests/data/legacy_pickle/0.13.0/0.13.0_x86_64_darwin_2.7.6... | Simplified `Period` construction a little by adding `millisecond` resolution.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7607 | 2014-06-29T06:49:15Z | 2014-07-06T13:36:20Z | 2014-07-06T13:36:20Z | 2014-07-09T12:37:56Z |
BUG: DTI.freqstr raises AttributeError when freq is None | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 3160b35386fa2..a46718c8e88f3 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -258,7 +258,7 @@ Bug Fixes
- Bug in ``Index.astype(float)`` where it would return an ``object`` dtype
``Index`` (:issue:`7464`).
- Bug in ``DataFrame.r... | `DatetimeIndex.freqstr` raises `AttributeError` if `freq/offset` is `None`, even though docstring says "return the frequency object as a string if its set, otherwise None"
```
idx = pd.DatetimeIndex(['2011-01-01', '2011-01-02', '2011-01-03', '2011-01-04'])
idx.freqstr
# AttributeError: 'NoneType' object has no attribu... | https://api.github.com/repos/pandas-dev/pandas/pulls/7606 | 2014-06-29T06:37:38Z | 2014-06-29T11:12:57Z | 2014-06-29T11:12:57Z | 2014-06-30T10:58:09Z |
BUG: {expanding,rolling}_{cov,corr} don't handle arguments with different index sets properly | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index f6519a17205a4..639554b70a913 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -268,3 +268,5 @@ Bug Fixes
- Bug in ``Float64Index`` assignment with a non scalar indexer (:issue:`7586`)
- Bug in ``pandas.core.strings.str_contains`` ... | Closes https://github.com/pydata/pandas/issues/7512.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7604 | 2014-06-29T00:20:04Z | 2014-07-01T10:14:18Z | 2014-07-01T10:14:18Z | 2014-09-10T00:12:47Z |
API: DatetimeIndex and PeriodIndex have same representation | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index f4a179c60c76c..97e6ee51511bc 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -89,7 +89,7 @@ Enhancements
- Add ``NotImplementedError`` for simultaneous use of ``chunksize`` and ``nrows``
for read_csv() (:issue:`6774`).
-
+- ``P... | Closes #7601. Made `PeriodIndex` to have dummy timezone representation to be consistent with `DatetimeIndex`, but this should be ommited?
### Output after the fix
```
# DatetimeIndex (No change)
pd.date_range(start='2011-01-01', periods=10, freq='M')
# <class 'pandas.tseries.index.DatetimeIndex'>
# [2011-01-31, ..., 2... | https://api.github.com/repos/pandas-dev/pandas/pulls/7602 | 2014-06-28T14:48:14Z | 2014-06-29T20:15:53Z | 2014-06-29T20:15:53Z | 2014-09-02T13:21:29Z |
BUG: GroupBy.size created by TimeGrouper raises AttributeError | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 97e6ee51511bc..8a3ab4c83ef4b 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -260,6 +260,7 @@ Bug Fixes
``Index`` (:issue:`7464`).
- Bug in ``DataFrame.reset_index`` loses ``tz`` (:issue:`3950`)
- Bug in ``DatetimeIndex.freqstr`... | Related to #7453 2nd issue:
- `GroupBy.size` created by `TimeGrouper` raises `AttributeError`
| https://api.github.com/repos/pandas-dev/pandas/pulls/7600 | 2014-06-28T11:56:31Z | 2014-06-30T12:33:49Z | 2014-06-30T12:33:49Z | 2014-07-05T04:47:11Z |
API/BUG: Make consistent datetime string parse function | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index ce1035e91391a..a07991d69d48b 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -71,6 +71,23 @@ Resample:
ts.resample('D', how='mean')
+.. _timeseries.overview:
+
+Overview
+--------
+
+Following table shows the type... | ### Original Description
Allows `DatetimeIndex.__init__` to accept `NaT` string representation.
### Updated Description
The original problem is caused by the inconsistencies in parsing function. Make following results to be consistent.
```
date_str = '2011Q3'
pd.tseries.tools.parse_time_string(date_str)[0]
#2011-07-... | https://api.github.com/repos/pandas-dev/pandas/pulls/7599 | 2014-06-28T11:48:04Z | 2015-07-14T15:52:23Z | 2015-07-14T15:52:23Z | 2015-07-20T03:46:52Z |
TST: Change nose.SkipTest to raise nose.SkipTest for io.data.Options. | diff --git a/pandas/io/tests/test_data.py b/pandas/io/tests/test_data.py
index d2080fe5e1262..5d2a8ef08c95b 100644
--- a/pandas/io/tests/test_data.py
+++ b/pandas/io/tests/test_data.py
@@ -265,7 +265,7 @@ def test_get_options_data(self):
try:
options = self.aapl.get_options_data(expiry=self.expiry... | Fixes #7596
| https://api.github.com/repos/pandas-dev/pandas/pulls/7598 | 2014-06-28T02:34:17Z | 2014-06-28T13:59:16Z | 2014-06-28T13:59:16Z | 2014-06-28T13:59:21Z |
COMPAT: comparisons vs numpy nat not working on windows | diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx
index 679359f1b4d33..c957884b3cebb 100644
--- a/pandas/tslib.pyx
+++ b/pandas/tslib.pyx
@@ -67,7 +67,7 @@ cdef int64_t NPY_NAT = util.get_nat()
compat_NaT = np.array([NPY_NAT]).astype('m8[ns]').item()
# numpy actual nat object
-np_NaT = np.datetime64('NaT',dtype='M8'... | https://api.github.com/repos/pandas-dev/pandas/pulls/7597 | 2014-06-28T01:44:01Z | 2014-06-28T02:24:58Z | 2014-06-28T02:24:58Z | 2014-07-22T18:40:54Z | |
TST: tests for GH7594, ensure conversion on tz-aware datetimes in the constuctors | diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py
index ef57256c7ee06..7368fcf8dac26 100644
--- a/pandas/tests/test_frame.py
+++ b/pandas/tests/test_frame.py
@@ -3587,6 +3587,19 @@ def test_constructor_with_datetimes(self):
expected.sort_index()
assert_series_equal(result, expected)... | closes #7594
| https://api.github.com/repos/pandas-dev/pandas/pulls/7595 | 2014-06-28T01:09:23Z | 2014-06-28T01:38:16Z | 2014-06-28T01:38:16Z | 2014-06-28T01:38:17Z |
BUG: Bug in timedelta inference when assigning an incomplete Series (GH7592) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 45a5d55ca047d..cf14e3696b90f 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -172,7 +172,7 @@ Bug Fixes
- Regression in datetimelike slice indexing with a duplicated index and non-exact end-points (:issue:`7523`)
- Bug in setitem w... | closes #7592
| https://api.github.com/repos/pandas-dev/pandas/pulls/7593 | 2014-06-27T19:52:29Z | 2014-06-27T20:44:03Z | 2014-06-27T20:44:03Z | 2014-06-27T20:44:03Z |
ENH: read_{csv,table} look for index columns in row after header with C engine | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 3160b35386fa2..7a9b9ddaf19f4 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -136,6 +136,9 @@ Enhancements
- ``Period`` and ``PeriodIndex`` can contain ``NaT`` in its values (:issue:`7485`)
+- ``read_csv`` and ``read_table`` can... | Closes #6893.
Currently the Python parser can read data with the index columns specified on the first line after the header, e.g.
``` python
In [3]: pd.__version__
Out[3]: '0.14.0-271-gf8b101c'
In [4]: text = """ A B C D E
one two three four
a b 10.0032 5 -0.510... | https://api.github.com/repos/pandas-dev/pandas/pulls/7591 | 2014-06-27T18:25:31Z | 2014-06-30T19:26:49Z | 2014-06-30T19:26:49Z | 2014-06-30T21:05:10Z |
BUG: bug in float64index assignment with a non scalar indexer | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 45a5d55ca047d..e7eaf49265fe5 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -262,3 +262,5 @@ Bug Fixes
- Bug in non-monotonic ``Index.union`` may preserve ``name`` incorrectly (:issue:`7458`)
- Bug in ``DatetimeIndex.intersectio... | closes #7586
| https://api.github.com/repos/pandas-dev/pandas/pulls/7587 | 2014-06-27T13:30:21Z | 2014-06-27T19:35:09Z | 2014-06-27T19:35:09Z | 2014-06-27T19:35:10Z |
Ignore comment lines in read_csv parsing | diff --git a/doc/source/io.rst b/doc/source/io.rst
index bc58b04de4473..0f698306a6517 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -98,8 +98,10 @@ They can take a number of arguments:
data. Defaults to 0 if no ``names`` passed, otherwise ``None``. Explicitly
pass ``header=0`` to be able to repla... | This is the first part of #7470.
closes #2685
| https://api.github.com/repos/pandas-dev/pandas/pulls/7582 | 2014-06-26T20:32:33Z | 2014-06-30T19:26:24Z | 2014-06-30T19:26:24Z | 2014-08-27T15:01:32Z |
SQL: don't reflect full database GH7396 | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index bb6f9cee5766e..3fdfa687abd78 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -76,6 +76,17 @@ def _parse_date_columns(data_frame, parse_dates):
return data_frame
+def _is_sqlalchemy_engine(con):
+ try:
+ import sqlalchemy
+ if isins... | Closes #7396
For now, let PandasSQLAlchemy not reflect anything by default, and `read_sql_table` provides its own reflected meta. Had to change some of the other functions to get this working.
@danielballan @mangecoeur Can someone review? (it feeled a bit messy)
| https://api.github.com/repos/pandas-dev/pandas/pulls/7581 | 2014-06-26T20:01:57Z | 2014-07-05T13:49:29Z | 2014-07-05T13:49:29Z | 2014-07-05T13:49:31Z |
BUG/TST: fix tests for groupby nth on Series (GH7559) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 3160b35386fa2..1289f8a386f9f 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -173,6 +173,7 @@ Bug Fixes
- Bug in setitem with list-of-lists and single vs mixed types (:issue:`7551`:)
- Bug in timeops with non-aligned Series (:issue... | closes #7559
related #7287
And some improvements when using any/all for nth
(still the nth are 10x slower than the cythonized first/last, but that's another issue)
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ... | https://api.github.com/repos/pandas-dev/pandas/pulls/7580 | 2014-06-26T19:37:22Z | 2014-06-30T11:05:58Z | 2014-06-30T11:05:58Z | 2014-06-30T11:05:59Z |
DOC: closes gh6838. Breakout options.rst from basics.rst | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index f614e1b7edcf4..1979b180b71b9 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -1552,152 +1552,3 @@ While float dtypes are unchanged.
casted = dfa[df2>0]
casted
casted.dtypes
-
-
-Working with package options
------------------... | closes #6838.
closes #3104
Breakout "options" section for docs, heavily using info already in `basics.rst`. Expands examples, and turns `describe_options` into a table.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7578 | 2014-06-26T18:54:54Z | 2014-07-07T07:08:31Z | 2014-07-07T07:08:31Z | 2015-01-17T05:24:58Z |
BUG: Error in rolling_var if window is larger than array, fixes #7297 | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 571e2dc2692b0..63517f532f7e5 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -271,6 +271,8 @@ Bug Fixes
- Bug in non-monotonic ``Index.union`` may preserve ``name`` incorrectly (:issue:`7458`)
- Bug in ``DatetimeIndex.intersection`... | fixes #7297
Other rolling window functions rely on the logic in `_check_minp`, and split the iteration into the ranges `[0, minp-1)` and `(minp-1, N)`. Because of the way `rolling_var` handles things, splitting the iteration into `[0, win)` and `(win, N)` makes more sense. Added also some comments as to what is going ... | https://api.github.com/repos/pandas-dev/pandas/pulls/7572 | 2014-06-26T04:10:41Z | 2014-07-02T11:46:29Z | 2014-07-02T11:46:29Z | 2014-07-02T14:53:03Z |
BUG/PERF: perf issues in object groupby aggregations (GH7555) | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index c2debb9bfe1c0..c7611d9829308 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -1414,10 +1414,11 @@ def aggregate(self, values, how, axis=0):
else:
is_numeric = issubclass(values.dtype.type, (np.datetime64,
... | related #7555
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
groupby_object_last | 15.2340 | 417... | https://api.github.com/repos/pandas-dev/pandas/pulls/7568 | 2014-06-25T12:52:08Z | 2014-06-25T13:48:23Z | 2014-06-25T13:48:23Z | 2014-06-25T13:48:23Z |
DOC: Fix parameter in reindex_axis docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 756de479a471a..4c963622acf00 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1663,7 +1663,7 @@ def _reindex_multi(self, axes, copy, fill_value):
Parameters
----------
- index : array-like, optional
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/7566 | 2014-06-25T05:05:51Z | 2014-07-06T19:10:16Z | 2014-07-06T19:10:16Z | 2014-07-08T02:12:58Z | |
ENH: Implement _Openpyxl2Writer for pandas.io.excel | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 273cbd5daae7d..06600208758bd 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2009,7 +2009,12 @@ files if `Xlsxwriter`_ is not available.
.. _xlwt: http://www.python-excel.org
To specify which writer you want to use, you can pass an engine keyword
-... | This patch is an implementation of a `pandas.io.excel.ExcelWriter` subclass that is compatible with the style interface of `openpyxl` 2.0.0 or later.
closes #7177
| https://api.github.com/repos/pandas-dev/pandas/pulls/7565 | 2014-06-25T04:06:18Z | 2014-09-20T08:53:31Z | 2014-09-20T08:53:31Z | 2014-09-22T01:40:54Z |
TST: Remove else after except in tests for io.data.Options. | diff --git a/pandas/io/data.py b/pandas/io/data.py
index dab9862bae2e2..67a841a27f992 100644
--- a/pandas/io/data.py
+++ b/pandas/io/data.py
@@ -680,6 +680,10 @@ def _get_option_tables(self, month, year, expiry):
root = self._parse_url(url)
tables = root.xpath('.//table')
+ ntables = len(tabl... | Also moved no tables found error to get_options_tables method (url was not defined in the get_option_data method).
Fixes #7561
| https://api.github.com/repos/pandas-dev/pandas/pulls/7564 | 2014-06-25T02:48:04Z | 2014-06-25T14:50:17Z | 2014-06-25T14:50:17Z | 2014-06-25T14:50:24Z |
PERF: vbench for mixed groupby with datetime (GH7555) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 44541033fbc43..30617b76b91eb 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -143,7 +143,7 @@ Performance
- Improvements in dtype inference for numeric operations involving yielding performance gains for dtypes: ``int64``, ``timedel... | closes #7555
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
groupby_mixed_first | 10.8150 | 3900... | https://api.github.com/repos/pandas-dev/pandas/pulls/7560 | 2014-06-24T13:13:05Z | 2014-06-24T13:32:37Z | 2014-06-24T13:32:37Z | 2014-06-24T13:32:37Z |
DOC: Cookbook recipe for emulating R's expand.grid() (#7426) | diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index b16c71bffd64d..283cf0438857a 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/cookbook.rst
@@ -663,3 +663,25 @@ To globally provide aliases for axis names, one can define these 2 functions:
df2 = DataFrame(randn(3,2),columns=['c1','c2'],index... | closes #7426
As suggested by @jreback in #7426, I've added a quick cookbook recipe for emulating R's `expand.grid()`, which creates a dataframe from every combination of the values you give it.
None of the existing sections really seemed to apply, so I've added it in a new section.
Example usage:
``` python
import... | https://api.github.com/repos/pandas-dev/pandas/pulls/7556 | 2014-06-24T08:49:09Z | 2014-06-25T05:01:27Z | 2014-06-25T05:01:27Z | 2014-06-25T05:01:27Z |
DOC: fix docstring for DataFrame.interpolate | diff --git a/pandas/core/common.py b/pandas/core/common.py
index c0432b53e346a..8791dcc124a6e 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -1392,7 +1392,7 @@ def backfill_2d(values, limit=None, mask=None, dtype=None):
def _clean_interp_method(method, order=None, **kwargs):
- valid = ['linea... | In the old docstring, `'index'` is listed as a valid value for the `method` kwarg for `DataFrame.interpolate`. It looks like a typo, because there was no comma after `'index'`, and the explanation for `'index'` corresponded to `'values'`. Furthermore, it appears `'index'` is not a valid value for `method`:
``` python
... | https://api.github.com/repos/pandas-dev/pandas/pulls/7553 | 2014-06-23T18:11:36Z | 2014-07-07T00:02:26Z | 2014-07-07T00:02:26Z | 2014-07-07T00:07:17Z |
BUG: Bug in setitem with list-of-lists and single vs mixed types (GH7551) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index a5bcdc9ec4aff..cdc35564cce61 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -169,7 +169,7 @@ Bug Fixes
- Bug in ``DataFrame.where`` with a symmetric shaped frame and a passed other of a DataFrame (:issue:`7506`)
- Bug in Panel ind... | closes #7551
| https://api.github.com/repos/pandas-dev/pandas/pulls/7552 | 2014-06-23T16:37:05Z | 2014-06-23T17:18:29Z | 2014-06-23T17:18:29Z | 2014-06-23T17:18:29Z |
DOC: correct relase note | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c41bc13b18606..4d0308d377443 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -185,8 +185,8 @@ Bug Fixes
- Bug in ``TimeGrouper`` doesn't exclude column specified by ``key`` (:issue:`7227`)
- Bug in ``DataFrame`` and ``Series`` bar ... | Minor release note corrections.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7550 | 2014-06-23T13:32:37Z | 2014-06-23T13:35:23Z | 2014-06-23T13:35:23Z | 2014-06-24T09:09:50Z |
TST: some yahoo options tests missing network decorator | diff --git a/pandas/io/tests/test_data.py b/pandas/io/tests/test_data.py
index c13553d14b861..2f3da23612449 100644
--- a/pandas/io/tests/test_data.py
+++ b/pandas/io/tests/test_data.py
@@ -3,7 +3,7 @@
import warnings
import nose
from nose.tools import assert_equal
-from datetime import datetime, date
+from datetime ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/7549 | 2014-06-22T21:13:48Z | 2014-06-22T21:48:58Z | 2014-06-22T21:48:58Z | 2014-06-22T21:49:00Z |
Minor cleanups for nanops | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 92d60ae8d8847..3098fedf0fefc 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -2175,94 +2175,98 @@ def is_number(obj):
return isinstance(obj, (numbers.Number, np.number))
-def is_integer_dtype(arr_or_dtype):
+def _get_dtype(arr_o... | This includes the requested fix for `nanops`, using `common.is_*_dtype` functions whenever possible.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7547 | 2014-06-22T15:03:28Z | 2014-06-26T10:26:02Z | 2014-06-26T10:26:02Z | 2014-06-26T10:29:04Z |
DOC: Use correct, non-deprecated arg name | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d770f8c8f853a..f702714fdc37e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1166,7 +1166,7 @@ def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',
Missing data representation
float_format : string, default... | Fix a minor typo in the `pandas.frame.to_excel` docstring.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7545 | 2014-06-22T00:57:09Z | 2014-06-23T13:41:18Z | 2014-06-23T13:41:18Z | 2014-06-25T02:17:52Z |
BUG: DatetimeIndex.asobject raises ValueError when contains NaT | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c41bc13b18606..91cb18d2accd1 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -248,7 +248,7 @@ Bug Fixes
- BUG in ``resample`` raises ``ValueError`` when target contains ``NaT`` (:issue:`7227`)
- Bug in ``Timestamp.tz_localize`` r... | Closes #7539.
Also, this fixed #7112 case 3 and case 4 to preserve tz. I've modified the tests for it.
Related to #6469.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7544 | 2014-06-21T23:37:26Z | 2014-06-24T11:49:40Z | 2014-06-24T11:49:40Z | 2014-06-26T10:59:59Z |
DOC: Release note correction for GH7534 | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 158fa1561eb30..e8c7a6f9ab462 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -248,7 +248,7 @@ Bug Fixes
- BUG in ``resample`` raises ``ValueError`` when target contains ``NaT`` (:issue:`7227`)
-- Bug in ``Timestamp.tz_convert`` ... | Release note correction for #7534. `tz_convert` has no problem.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7538 | 2014-06-21T14:46:41Z | 2014-06-21T14:49:05Z | 2014-06-21T14:49:04Z | 2014-06-21T22:30:08Z |
CLN: Remove executable flag from frame.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
old mode 100755
new mode 100644
| Closes #7536.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7537 | 2014-06-21T14:31:32Z | 2014-06-21T14:48:38Z | 2014-06-21T14:48:38Z | 2014-06-21T14:48:38Z |
should fix issue #7520, test_nanargmin fails with datetime64 objects | diff --git a/pandas/tests/test_nanops.py b/pandas/tests/test_nanops.py
index 417cef92412b1..3e8a5fecbb579 100644
--- a/pandas/tests/test_nanops.py
+++ b/pandas/tests/test_nanops.py
@@ -237,10 +237,20 @@ def check_funs(self, testfunc, targfunc,
self.arr_utf.astype('O')]
if allow_date:
- ... | I think this will fix the issue #7520. The issue appears to be that older versions of `numpy`, probably less than `1.7.0`, can't handle `datetime64` dtypes very well. I have added simple check to see if `numpy` can handle a standard operation with `datetime64` dtypes, and if not it skips those tests.
I can't test th... | https://api.github.com/repos/pandas-dev/pandas/pulls/7535 | 2014-06-21T12:52:19Z | 2014-06-21T13:40:17Z | 2014-06-21T13:40:17Z | 2014-06-26T10:28:55Z |
BUG: Timestamp.tz_localize resets nanosecond | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 197bc9bae5c9d..158fa1561eb30 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -248,7 +248,7 @@ Bug Fixes
- BUG in ``resample`` raises ``ValueError`` when target contains ``NaT`` (:issue:`7227`)
-
+- Bug in ``Timestamp.tz_convert`... | `Timestamp.tz_localize` resets `nanosecond`.
```
t = pd.Timestamp('2011-01-01') + pd.offsets.Nano(1)
t.tz_localize('US/Eastern')
# Warning: discarding nonzero nanoseconds
#2011-01-01 00:00:00-05:00
```
Even though `DatetimeIndex.tz_convert` can preserve it.
```
idx = pd.date_range('3/11/2012 04:00', periods=10, freq... | https://api.github.com/repos/pandas-dev/pandas/pulls/7534 | 2014-06-21T08:01:17Z | 2014-06-21T13:41:19Z | 2014-06-21T13:41:19Z | 2014-06-21T14:47:49Z |
BUG: df.reset_index loses tz | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index e8c7a6f9ab462..bde685e0e6167 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -252,7 +252,7 @@ Bug Fixes
- Bug in ``Index.astype(float)`` where it would return an ``object`` dtype
``Index`` (:issue:`7464`).
-
+- Bug in ``DataFra... | Closes #3950.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7533 | 2014-06-21T07:51:17Z | 2014-06-21T20:10:21Z | 2014-06-21T20:10:21Z | 2014-06-22T00:56:59Z |
BUG: single column bar plot is misaligned | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c41bc13b18606..6e02e771fecc7 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -256,5 +256,9 @@ Bug Fixes
- Bug in ``DataFrame.reset_index`` loses ``tz`` (:issue:`3950`)
+- Bug in single column bar plot is misaligned (:issue:`7498... | Closes #7498.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7532 | 2014-06-21T07:04:50Z | 2014-07-01T15:29:53Z | 2014-07-01T15:29:53Z | 2014-07-02T16:46:04Z |
WIP/ENH: allow read_excel to accept URLs (GH6809) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 158fa1561eb30..97b7555d833f8 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -108,6 +108,9 @@ Enhancements
- ``read_html`` now sports an ``encoding`` argument that is passed to the
underlying parser library. You can use this to r... | closes #6809
This borrows the mechanisms already used in read_csv to enable reading of Excel objects via URLs.
Not sure what tests are appropriate, and I'm not certain what the various decorators do, so I tried to mirror the read_csv tests as best I could.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7531 | 2014-06-21T04:31:06Z | 2014-06-23T14:03:11Z | 2014-06-23T14:03:11Z | 2014-07-19T14:15:57Z |
TST: io.data.Options changes to avoid test failures on bad data. | diff --git a/pandas/io/data.py b/pandas/io/data.py
index fe87c0d9fb5e7..dab9862bae2e2 100644
--- a/pandas/io/data.py
+++ b/pandas/io/data.py
@@ -683,7 +683,10 @@ def _get_option_tables(self, month, year, expiry):
table_name = '_tables' + m1 + str(year)[-2:]
setattr(self, table_name, tables)
- ... | Added try, except to underlying price / quote_time function.
Changed to RemoteDataError in the event that some tables are found, but the correct table is not available.
Fixes #7524.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7530 | 2014-06-20T23:46:44Z | 2014-06-21T13:48:20Z | 2014-06-21T13:48:20Z | 2014-06-21T13:48:24Z |
BUG: DatetimeIndex comparison handles NaT incorrectly | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 03caf47dc7127..197bc9bae5c9d 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -237,6 +237,7 @@ Bug Fixes
- Bug in when writing Stata files where the encoding was ignored (:issue:`7286`)
+- Bug in ``DatetimeIndex`` comparison does... | Derived from #7485. Comparison with `DatetimeIndex` result incorrectly if `NaT` is included.
```
idx1 = pd.DatetimeIndex(['2011-01-01', pd.NaT], freq='M')
idx2 = pd.DatetimeIndex([pd.NaT, '2011-01-01'], freq='M')
print(idx1 > idx2)
# [True, False]
# it must be [False, False]
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/7529 | 2014-06-20T20:28:40Z | 2014-06-20T21:38:59Z | 2014-06-20T21:38:59Z | 2014-06-21T02:39:07Z |
REGR: Regression in datetimelike slice indexing with a duplicated index and non-exact end-points (GH7523) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index e038124cadc00..03caf47dc7127 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -167,6 +167,7 @@ Bug Fixes
~~~~~~~~~
- Bug in ``DataFrame.where`` with a symmetric shaped frame and a passed other of a DataFrame (:issue:`7506`)
- Bug i... | closes #7523
| https://api.github.com/repos/pandas-dev/pandas/pulls/7525 | 2014-06-20T13:05:25Z | 2014-06-20T13:53:41Z | 2014-06-20T13:53:41Z | 2014-06-20T13:53:41Z |
DOC: fix startrow typo in docstrings | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 1653eedd26bc3..9645d09a5fd0d 100755
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1177,7 +1177,7 @@ def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',
Column label for index column(s) if desired. If None is given, and
... | Minor, but worth fixing.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7521 | 2014-06-20T02:59:59Z | 2014-06-20T07:54:37Z | 2014-06-20T07:54:37Z | 2014-06-20T07:54:37Z |
BUG: Bug in Panel indexing with a multi-index axis (GH 7516) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c6144619da963..e038124cadc00 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -166,7 +166,7 @@ Experimental
Bug Fixes
~~~~~~~~~
- Bug in ``DataFrame.where`` with a symmetric shaped frame and a passed other of a DataFrame (:issue:`7... | closes #7516
| https://api.github.com/repos/pandas-dev/pandas/pulls/7519 | 2014-06-20T00:51:47Z | 2014-06-20T12:04:29Z | 2014-06-20T12:04:29Z | 2014-06-20T12:04:29Z |
BUG: area plot raises ValueError with tz-aware data | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 8ede5f32dded6..9e992573f568d 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -262,6 +262,8 @@ Bug Fixes
+- Bug in area plot with tz-aware time series raises ``ValueError`` (:issue:`7471`)
+
- Bug in non-monotonic ``Index.union... | Closes #7471.
Must be revisit after #7322.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7515 | 2014-06-19T19:41:30Z | 2014-07-05T01:31:30Z | 2014-07-05T01:31:30Z | 2014-07-05T04:46:54Z |
BUG: Bug in DataFrame.where with a symmetric shaped frame and a passed other of a DataFrame | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c1e5877d09004..af859b7be2558 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -163,12 +163,12 @@ Experimental
Bug Fixes
~~~~~~~~~
+- Bug in ``DataFrame.where`` with a symmetric shaped frame and a passed other of a DataFrame (:issu... | from SO: http://stackoverflow.com/questions/24296480/pandas-dataframe-where-misbehaving
| https://api.github.com/repos/pandas-dev/pandas/pulls/7506 | 2014-06-19T00:23:26Z | 2014-06-19T09:53:31Z | 2014-06-19T09:53:31Z | 2014-06-19T09:53:31Z |
BUG, TST: Fix pandas.core.strings.str_contains when handling regex=False and case=False | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c1e5877d09004..0d1606f701a8f 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -249,3 +249,4 @@ Bug Fixes
- Bug in non-monotonic ``Index.union`` may preserve ``name`` incorrectly (:issue:`7458`)
- Bug in ``DatetimeIndex.intersectio... | `pandas.core.strings.str_contains` does not match in a case insensitive fashion _at all_ when given `regex=False` and `case=False`. This PR should fix the situation. Additionally, there is test coverage for `pandas.core.strings.str_contains` case insensitive matching both with and without regular expressions enabled.... | https://api.github.com/repos/pandas-dev/pandas/pulls/7505 | 2014-06-18T22:40:48Z | 2014-06-30T19:38:04Z | 2014-06-30T19:38:04Z | 2014-06-30T19:38:12Z |
BUG: Bug in timeops with non-aligned Series (GH7500) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index c1e5877d09004..930ba13bef122 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -165,10 +165,10 @@ Bug Fixes
~~~~~~~~~
+- Bug in timeops with non-aligned Series (:issue:`7500`)
-
-- Bug in ``value_counts`` where ``NaT`` did not... | closes #7500
| https://api.github.com/repos/pandas-dev/pandas/pulls/7503 | 2014-06-18T21:37:53Z | 2014-06-19T00:01:34Z | 2014-06-19T00:01:34Z | 2014-06-19T00:01:34Z |
BUG: offsets.apply may return datetime | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index e8c7a6f9ab462..a6ca9e1dfd033 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -244,12 +244,15 @@ Bug Fixes
- Bug in ``DatetimeIndex.to_period``, ``PeriodIndex.asobject``, ``PeriodIndex.to_timestamp`` doesn't preserve ``name`` (:issue... | Currently, `offsets.appy`, `rollforward` and `rollback` returns `Timestamp` if argument is `Timestamp` or `np.datetime64`.
If input is `datetime`, these functions return `datetime` or `Timestamp` inconsistently depending on internal process. It may better to always return `Timestanp`?
### Affected Offsets
- 'pandas.... | https://api.github.com/repos/pandas-dev/pandas/pulls/7502 | 2014-06-18T20:50:11Z | 2014-06-21T20:13:29Z | 2014-06-21T20:13:29Z | 2014-06-21T22:30:16Z |
Deprecate detection of IPython frontends | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 92d60ae8d8847..9fb79464d061b 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -2599,6 +2599,8 @@ def check_main():
def in_qtconsole():
"""
check if we're inside an IPython qtconsole
+
+ DEPRECATED: This is no longer need... | The check for the Qt console won't be necessary in IPython 3 and above: we decided that the Qt console's display of HTML reprs was so bad that it shouldn't attempt to show them. We also want to remove the `parent_appname` config value (ipython/ipython#4980), which will break both of these functions (making them always ... | https://api.github.com/repos/pandas-dev/pandas/pulls/7499 | 2014-06-18T18:58:40Z | 2014-06-24T22:01:49Z | 2014-06-24T22:01:49Z | 2014-06-24T22:01:53Z |
BUG: Bug in .loc performing fallback integer indexing with object dtype indices (GH7496) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 930ba13bef122..01cfa73b8b9f4 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -62,6 +62,8 @@ API changes
when comparing a ``Period`` with another object using ``==`` if the other
object isn't a ``Period`` ``False`` is returned.
... | closes #7496
```
In [4]: s = Series()
In [5]: s.loc[1] = 1
In [6]: s.loc['a'] = 2
In [7]: s.loc[-1]
KeyError: 'the label [-1] is not in the [index]'
In [8]: s.loc[[-1, -2]]
Out[8]:
-1 NaN
-2 NaN
dtype: float64
In [9]: s.loc[['4']]
Out[9]:
4 NaN
dtype: float64
In [10]: s.loc[-1] = 3
In [11]: s.loc[[-1,... | https://api.github.com/repos/pandas-dev/pandas/pulls/7497 | 2014-06-18T15:29:24Z | 2014-06-19T09:53:10Z | 2014-06-19T09:53:10Z | 2014-06-19T09:53:10Z |
DOC: Fix index error for remote data docs. | diff --git a/doc/source/remote_data.rst b/doc/source/remote_data.rst
index 98d14b23e28bf..3b12023c47f1e 100644
--- a/doc/source/remote_data.rst
+++ b/doc/source/remote_data.rst
@@ -69,13 +69,13 @@ to the specific option you want.
from pandas.io.data import Options
aapl = Options('aapl', 'yahoo')
da... | Fixes the index error caused by #7484. Also removes duplicate example in v0.14.1.txt
| https://api.github.com/repos/pandas-dev/pandas/pulls/7495 | 2014-06-18T14:40:36Z | 2014-06-18T16:23:09Z | 2014-06-18T16:23:09Z | 2014-06-18T16:23:14Z |
[doc fix] minor docstring update to fix df.to_latex() usepackage syntax | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9c1d593187b2c..1653eedd26bc3 100755
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1358,7 +1358,7 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
bold_rows=True, longtable=False, escape=True):
... | Minor docstring fix for option `DF.to_latex()` for `\\usepackage{booktabs}`
| https://api.github.com/repos/pandas-dev/pandas/pulls/7489 | 2014-06-18T01:40:13Z | 2014-06-18T06:49:39Z | 2014-06-18T06:49:39Z | 2014-06-18T06:49:43Z |
Switch if to elif in test_frame.test_to_csv_moar._do_test | diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py
index ea3dafa07715b..8ed1d2d2d4f95 100644
--- a/pandas/tests/test_frame.py
+++ b/pandas/tests/test_frame.py
@@ -5748,7 +5748,7 @@ def _to_uni(x):
recons.index = np.array(lmap(_to_uni,recons.index),
... | An if-elif-else chain had an "if" where there should have been an elif.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7488 | 2014-06-18T00:31:58Z | 2014-06-18T12:19:26Z | 2014-06-18T12:19:26Z | 2014-06-18T12:19:29Z |
ENH/BUG: Period/PeriodIndex supports NaT | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 18ae412c9711d..c6144619da963 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -130,7 +130,7 @@ Enhancements
- All offsets ``apply``, ``rollforward`` and ``rollback`` can now handle ``np.datetime64``, previously results in ``ApplyTy... | Closes #7228. Closes #4731.
`Period` and `PeriodIndex` now can contain `NaT` using `iNaT` as its internal value.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7485 | 2014-06-17T16:04:40Z | 2014-06-19T19:27:10Z | 2014-06-19T19:27:10Z | 2014-06-20T14:45:55Z |
DOC: Clean up docs for io.data.Options. | diff --git a/doc/source/release.rst b/doc/source/release.rst
index da6c46ce37a94..fb2c24acff30d 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -55,10 +55,6 @@ performance improvements along with a large number of bug fixes.
Highlights include:
-Experimental Features
-~~~~~~~~~~~~~~~~~~~~~
-- `... | Per conversation on #5602, adjusted some of the docs.
Removed from release.rst, changed example strike price for AAPL, fixed backticks.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7484 | 2014-06-17T16:04:01Z | 2014-06-17T18:52:02Z | 2014-06-17T18:52:02Z | 2014-06-18T09:35:51Z |
DOC: fix docstring of value_counts/nunique dropna argument after GH7424 | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 1aec8561807c9..c45256c482e8f 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -170,7 +170,7 @@ def factorize(values, sort=False, order=None, na_sentinel=-1):
def value_counts(values, sort=True, ascending=False, normalize=... | See #7424, fix docstring.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7483 | 2014-06-17T13:38:20Z | 2014-07-07T19:11:41Z | 2014-07-07T19:11:41Z | 2014-07-07T19:11:41Z |
BUG: Make copies of certain interpolate arguments (GH7295) | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 8a44723a83c4e..92d60ae8d8847 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -1538,6 +1538,14 @@ def _interpolate_scipy_wrapper(x, y, new_x, method, fill_value=None,
terp = interpolate.UnivariateSpline(x, y, k=order)
ne... | closes #7295
On the alt_methods branch in interpolate_1d, make copies if x, y, and new_x don't have their `writeable` attribute set. It seems a little weird that we need to do this, but it'll work around the issue so that the test can pass, anyway.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7479 | 2014-06-17T01:32:57Z | 2014-06-17T11:22:59Z | 2014-06-17T11:22:59Z | 2014-06-17T11:23:03Z |
Fix cache key collision and add test for cache key distinctness. | diff --git a/pandas/tseries/tests/test_timezones.py b/pandas/tseries/tests/test_timezones.py
index e6da490e1f722..b1d8bdd9f81ce 100644
--- a/pandas/tseries/tests/test_timezones.py
+++ b/pandas/tseries/tests/test_timezones.py
@@ -805,6 +805,21 @@ def test_utc_with_system_utc(self):
self.assertEqual(ts, ts.tz_co... | Fixes #7420.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7478 | 2014-06-16T20:04:54Z | 2014-06-17T00:18:00Z | 2014-06-17T00:18:00Z | 2014-06-17T09:56:00Z |
BUG: Bug in Panel.apply with a multi-index as an axis (GH7469) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index f65a96f1c38a6..6b2ae95510fa1 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -163,7 +163,7 @@ Bug Fixes
-
+- Bug in ``Panel.apply`` with a multi-index as an axis (:issue:`7469`)
- Bug in ``DatetimeIndex.insert`` doesn't pr... | closes #7469
| https://api.github.com/repos/pandas-dev/pandas/pulls/7474 | 2014-06-16T13:26:53Z | 2014-06-16T14:20:06Z | 2014-06-16T14:20:06Z | 2014-06-16T14:20:06Z |
ENH: Cast ndarray-like datetime64 arrays to Index properly | diff --git a/pandas/core/index.py b/pandas/core/index.py
index 2252ba666ca59..6cbffd5b4dbba 100644
--- a/pandas/core/index.py
+++ b/pandas/core/index.py
@@ -148,6 +148,9 @@ def __new__(cls, data, dtype=None, copy=False, name=None, fastpath=False,
if copy:
subarr = subarr.copy()
+ ... | It turns out that the ndarray-like arrays of dtype `datetime64` were
not being properly cast to an `Index`, because -- due to a bug with
`np.datetime64` -- calling `np.asarray(x, dtype=object)` if x is an
ndarray of type `datetime64` results in an _integer_ array.
This PR adds tests and a work around to `pd.Index.__ne... | https://api.github.com/repos/pandas-dev/pandas/pulls/7468 | 2014-06-15T22:56:55Z | 2014-06-16T12:50:48Z | 2014-06-16T12:50:48Z | 2014-06-16T16:51:53Z |
DOC: Add missing column header in 'baseball.csv'. | diff --git a/doc/data/baseball.csv b/doc/data/baseball.csv
index 546c3ad62637b..aadbaced193a5 100644
--- a/doc/data/baseball.csv
+++ b/doc/data/baseball.csv
@@ -1,4 +1,4 @@
-id,year,stint,team,lg,g,ab,r,h,X2b,X3b,hr,rbi,sb,cs,bb,so,ibb,hbp,sh,sf,gidp
+id,player,year,stint,team,lg,g,ab,r,h,X2b,X3b,hr,rbi,sb,cs,bb,so,ibb... | Add missing column header in 'baseball.csv' in the docs.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7467 | 2014-06-15T17:42:00Z | 2014-06-15T18:10:23Z | 2014-06-15T18:10:23Z | 2014-06-15T18:10:30Z |
BUG: Some offsets.apply cannot handle tz properly | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index be0b3bc543c39..ac60e3df88715 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -224,6 +224,8 @@ Bug Fixes
+- Bug in passing input with ``tzinfo`` to some offsets ``apply``, ``rollforward`` or ``rollback`` resets ``tzinfo`` or rai... | There are some offsets which cannot handle input with `tz` properly
```
pd.offsets.Day().apply(pd.Timestamp('2010-01-01 9:00', tz='US/Eastern'))
#2010-01-02 09:00:00-05:00 (Expected)
pd.offsets.CustomBusinessDay().apply(pd.Timestamp('2010-01-01 9:00', tz='US/Eastern'))
#2010-01-04 09:00:00 (tzinfo lost)
pd.offsets.C... | https://api.github.com/repos/pandas-dev/pandas/pulls/7465 | 2014-06-14T21:42:43Z | 2014-06-17T11:57:36Z | 2014-06-17T11:57:36Z | 2014-06-17T14:38:59Z |
BUG: astype(float) in Index does the wrong thing | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index be0b3bc543c39..61ffd5c89b568 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -229,7 +229,8 @@ Bug Fixes
-
+- Bug in ``Index.astype(float)`` where it would return an ``object`` dtype
+ ``Index`` (:issue:`7464`).
diff --gi... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/7464 | 2014-06-14T20:15:22Z | 2014-06-15T01:33:35Z | 2014-06-15T01:33:35Z | 2014-06-15T01:33:36Z |
PERF: performance gains in DataFrame groupby.transform for ufuncs (GH7383) | diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt
index 99fec7be42baa..271b4eb75a7b6 100644
--- a/doc/source/v0.14.1.txt
+++ b/doc/source/v0.14.1.txt
@@ -137,6 +137,7 @@ Performance
~~~~~~~~~~~
- Improvements in dtype inference for numeric operations involving yielding performance gains for dtypes: ``int64... | accelerates non-modifying transformations, e.g.
closes #7383
`DataFrame.groupby(...).transform(np.max)`
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/7463 | 2014-06-14T20:12:21Z | 2014-06-16T12:52:18Z | 2014-06-16T12:52:18Z | 2014-06-16T12:52:18Z |
nanops pep8 fixes | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index c3e1da61330fa..431cb1ac451c0 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -1,26 +1,21 @@
-from pandas import compat
import sys
import itertools
import functools
import numpy as np
-from pandas.core.common import isnull, notnul... | Very minor pep8 fixes for `nanops`. This brings `nanops` into pep8 compliance.
| https://api.github.com/repos/pandas-dev/pandas/pulls/7461 | 2014-06-14T14:23:51Z | 2014-06-17T12:36:03Z | 2014-06-17T12:36:03Z | 2014-06-26T10:29:12Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.