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: update the Series.dt.dayofweek docstring | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index e6e0544bfa22b..7f46f609aebef 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -544,8 +544,41 @@ def date(self):
weekofyear = _field_accessor('weekofyear', 'woy',
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Original changes moved from #20230 (the fork of that PR does not exist anymore, so can't edit)
| https://api.github.com/repos/pandas-dev/pandas/pulls/21823 | 2018-07-08T23:05:11Z | 2018-07-09T18:46:00Z | 2018-07-09T18:46:00Z | 2018-07-09T18:46:00Z |
BUG/API: to_datetime preserves UTC offsets when parsing datetime strings | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index eada401d2930b..2c98cc1659519 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -343,6 +343,25 @@ def time_iso8601_tz_spaceformat(self):
to_datetime(self.strings_tz_space)
+cl... | - [x] closes #17697
- [x] closes #11736
- [x] closes #21864
- [x] precursor to fixing #15938
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR makes `to_datetime(ts_string_with_offset)` and `DatetimeIndex([ts_string_with_offset])` to no... | https://api.github.com/repos/pandas-dev/pandas/pulls/21822 | 2018-07-08T22:28:14Z | 2018-07-30T10:30:02Z | 2018-07-30T10:30:01Z | 2018-08-01T20:40:28Z |
DOC: Improve the docstring of Timedelta.asm8 | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index a76ebc8000e54..b9405b15a0980 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -829,7 +829,37 @@ cdef class _Timedelta(timedelta):
@property
def asm8(self):
- """ retur... | - [ ] closes #xxxx
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
################################################################################
###################### Docstring (pandas.Timedelta.asm8) ######################
#########... | https://api.github.com/repos/pandas-dev/pandas/pulls/21821 | 2018-07-08T21:44:39Z | 2018-07-10T10:36:23Z | 2018-07-10T10:36:23Z | 2018-07-10T22:00:53Z |
CLN: reorg groupby to multiple modules | diff --git a/pandas/core/api.py b/pandas/core/api.py
index fa58e932ead13..92586235df93c 100644
--- a/pandas/core/api.py
+++ b/pandas/core/api.py
@@ -7,7 +7,7 @@
from pandas.core.algorithms import factorize, unique, value_counts
from pandas.core.dtypes.missing import isna, isnull, notna, notnull
from pandas.core.arra... | makes the impl of groupby a bit easier to grok.
cc @WillAyd @TomAugspurger @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/21820 | 2018-07-08T20:42:37Z | 2018-07-11T23:59:28Z | 2018-07-11T23:59:28Z | 2018-07-11T23:59:54Z |
Modernize the fix for #10043 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 034a56b2ac0cb..767c4e8b85c95 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -425,6 +425,7 @@ Other
- :meth: `~pandas.io.formats.style.Styler.background_gradient` now takes a ``text_color_thresh... | - [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21817 | 2018-07-08T19:23:33Z | 2018-09-25T16:45:56Z | null | 2018-09-25T16:45:56Z |
update tslibs imports | diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py
index b4c3ff8008015..ad72980105c4f 100644
--- a/pandas/_libs/__init__.py
+++ b/pandas/_libs/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# flake8: noqa
-from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime
+from .tslibs impor... | Another try at #21802. Removing `Timedelta` from the `tslib` namespace broke a ton of imports, so this goes through and updates all of them. | https://api.github.com/repos/pandas-dev/pandas/pulls/21816 | 2018-07-08T18:46:31Z | 2018-07-09T12:55:39Z | 2018-07-09T12:55:39Z | 2018-07-11T20:21:24Z |
REF: Move most remaining arith helpers to datetimelike mixins | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 118516192e4ed..65f34b847f8d0 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import operator
+import warnings
import numpy as np
@@ -8,12 +9,... | Before we can finally move over `_add_datetimelike_methods` and be done with this, some more work needs to go into the `__new__` methods. This gets another big chunk through, starts implementing tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/21815 | 2018-07-08T17:13:24Z | 2018-07-09T12:56:56Z | 2018-07-09T12:56:56Z | 2018-07-10T13:52:36Z |
CI: Migrate to circleci 2.0 | diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000000..e947f30d285cd
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,147 @@
+version: 2
+jobs:
+
+ # --------------------------------------------------------------------------
+ # 0. py27_compat
+ # ----------------------... | closes https://github.com/pandas-dev/pandas/issues/19929
| https://api.github.com/repos/pandas-dev/pandas/pulls/21814 | 2018-07-08T16:44:06Z | 2018-08-17T11:20:51Z | 2018-08-17T11:20:51Z | 2018-08-17T11:45:33Z |
BUG: rolling with MSVC 2017 build | diff --git a/appveyor.yml b/appveyor.yml
index f70fc829ec971..c6199c1493f22 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -20,12 +20,14 @@ environment:
matrix:
- CONDA_ROOT: "C:\\Miniconda3_64"
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
... | - [x] closes #21786
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
For now just trying 3.7 on appveyor, not sure if all necessary conda packages are there | https://api.github.com/repos/pandas-dev/pandas/pulls/21813 | 2018-07-08T16:02:42Z | 2018-07-26T17:32:30Z | 2018-07-26T17:32:30Z | 2019-03-11T19:15:32Z |
DOC: consolidate clip_upper and clip_lower docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 605db412e5a5f..48366a286ac05 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6547,32 +6547,46 @@ def clip(self, lower=None, upper=None, axis=None, inplace=False,
def clip_upper(self, threshold, axis=None, inplace=False):
... | Follow-up on merging https://github.com/pandas-dev/pandas/pull/20135 and https://github.com/pandas-dev/pandas/pull/20289 | https://api.github.com/repos/pandas-dev/pandas/pulls/21812 | 2018-07-08T14:57:45Z | 2018-07-08T14:58:14Z | 2018-07-08T14:58:14Z | 2018-07-08T14:58:17Z |
Add unit test for #12813 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 29c1a68053aef..be5b8f9ba93ac 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -331,6 +331,7 @@ Numeric
^^^^^^^
- Bug in :class:`Series` ``__rmatmul__`` doesn't support matrix vector multiplicati... | - [x] closes #12813
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The bug was already fixed with my previous PR but this adds a fixture to a unit test to also test read-only arrays as factorize input. | https://api.github.com/repos/pandas-dev/pandas/pulls/21811 | 2018-07-08T13:48:15Z | 2018-07-08T14:14:25Z | 2018-07-08T14:14:24Z | 2018-07-08T17:47:13Z |
More doc warnings | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index eb71722dd563a..d78e476dd7837 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -245,7 +245,7 @@ need to be:
.. ipython:: python
- result = df1.append(df4)
+ result = df1.append(df4, sort=False)
.. ipython:: python
:supp... | https://api.github.com/repos/pandas-dev/pandas/pulls/21808 | 2018-07-08T02:33:32Z | 2018-07-08T13:01:26Z | 2018-07-08T13:01:26Z | 2018-07-08T14:05:26Z | |
BENCH: asv csv reading benchmarks now rewind StringIO objects | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 0f5d07f9fac55..2d4bdc7ae812a 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -54,7 +54,14 @@ def time_frame_date_formatting(self):
self.data.to_csv(self.fname, date_format='%Y%m%d')
-class... | In short, the `asv` benchmarks used for timing `read_csv` are actually reading in empty file-like objects most of the time at the moment. This is because the `setup()` method of the benchmarks is only called between **repeats** and not between **iterations** of repeats--see [writing benchmarks docs](http://asv.readthed... | https://api.github.com/repos/pandas-dev/pandas/pulls/21807 | 2018-07-07T23:55:10Z | 2018-07-28T14:29:32Z | 2018-07-28T14:29:32Z | 2018-07-28T14:29:35Z |
Consistent Naming Standard When Using Dict in GroupBy .agg | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 4ea8c43b640fb..adab991821838 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -364,52 +364,46 @@ def nested_renaming_depr(level=4):
"version"),
FutureWarning, stacklevel=level)
- # if we hav... | - [X] closes #21790
- [] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a WIP as all of the tests in the groupby directory pass, but there are some outside of that which need touch ups. This is a relatively aggressive change so I figured I'd ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21806 | 2018-07-07T23:03:05Z | 2018-08-17T17:17:10Z | null | 2019-02-28T07:23:19Z |
DOC: Bunch o warnings | diff --git a/doc/source/extending.rst b/doc/source/extending.rst
index dcabfed2b6021..9422434a1d998 100644
--- a/doc/source/extending.rst
+++ b/doc/source/extending.rst
@@ -80,7 +80,7 @@ on :ref:`ecosystem.extensions`.
The interface consists of two classes.
:class:`~pandas.api.extensions.ExtensionDtype`
-^^^^^^^^^^... | https://api.github.com/repos/pandas-dev/pandas/pulls/21805 | 2018-07-07T22:55:10Z | 2018-07-07T22:58:07Z | 2018-07-07T22:58:07Z | 2018-07-07T23:04:25Z | |
implement constructors for TimedeltaArray, DatetimeArray | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index a9cf0301747b0..118516192e4ed 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -18,7 +18,37 @@
from pandas.core.algorithms import checked_add_with_arr
-class DatetimeLikeArrayMixin(o... | Implements AttributesMixin since this is a pattern we might want to formalize.
The `_simple_new` that this implements for TimedeltaArray and DatetimeArray are pretty close to the "full" versions in the Index classes. The `__new__` methods though are very much stripped down for the now.
With these in place we get... | https://api.github.com/repos/pandas-dev/pandas/pulls/21803 | 2018-07-07T22:29:31Z | 2018-07-08T12:57:11Z | 2018-07-08T12:57:11Z | 2018-07-11T20:23:47Z |
CLN: Remove unused imports in pyx files | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index ae9d240afcb93..45ec0f0429e92 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1,6 +1,4 @@
# cython: profile=False
-import operator
-
cimport cython
from cython cimport Py_ssize_t
@@ -29,7 +27,7 @@ from cpython.datetime cimport (PyDateTi... | cc @jbrockmendel
Removed unused imports flagged by PyCharm. Compiled fine locally, waiting for CI to pass.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21802 | 2018-07-07T22:10:48Z | 2018-07-08T18:51:22Z | null | 2018-07-08T18:51:51Z |
Use CB3 syntax for compiler | diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml
index 86bed996c8aab..2bc42c1bd2dec 100644
--- a/conda.recipe/meta.yaml
+++ b/conda.recipe/meta.yaml
@@ -12,16 +12,19 @@ source:
requirements:
build:
+ - {{ compiler('c') }}
+ - {{ compiler('cxx') }}
+ host:
- python
+ - pip
- cython
... | This fixes the `headerpad_max_install_names` I was seeing.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21800 | 2018-07-07T21:07:18Z | 2018-07-07T22:42:56Z | 2018-07-07T22:42:56Z | 2018-07-07T22:42:56Z |
ENH: between_time, at_time accept axis parameter | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 69232fa836102..51db86cc82be7 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -291,6 +291,7 @@ Other Enhancements
- :meth:`read_excel()` now accepts ``usecols`` as a list of column names or callabl... | xref #2141
- [x] closes #8839
- [x] tests added / passed
Axis parameter added to between_time and at_time, defaults to index for DataFrame
| https://api.github.com/repos/pandas-dev/pandas/pulls/21799 | 2018-07-07T20:13:04Z | 2018-11-19T01:21:33Z | 2018-11-19T01:21:33Z | 2018-11-19T01:21:36Z |
move PeriodIndex comparisons, implement PeriodArray constructor | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 74bf90eb94065..a9cf0301747b0 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1,15 +1,19 @@
# -*- coding: utf-8 -*-
+import operator
import numpy as np
from pandas._libs import l... | PeriodIndex comparisons turn out to be easier to move than the others (though partly because ATM they are broken: #21793), so this moves them over first.
Following that, most of the remaining PeriodArray arithmetic methods require `shift`, which in turns requires the constructors, so I went ahead and implemented tho... | https://api.github.com/repos/pandas-dev/pandas/pulls/21798 | 2018-07-07T19:57:08Z | 2018-07-07T21:21:38Z | 2018-07-07T21:21:38Z | 2018-07-07T21:24:28Z |
DOC: remove imports and use pd in docstrings | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index c4e4f5471c4be..6e49e8044ff25 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -306,8 +306,8 @@ def unique(values):
>>> pd.unique(pd.Series([2] + [1] * 5))
array([2, 1])
- >>> pd.unique(Series([pd.Timestamp('... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/21797 | 2018-07-07T19:56:20Z | 2018-07-08T18:45:53Z | 2018-07-08T18:45:53Z | 2018-07-08T18:45:59Z |
TST: create pandas/tests/arrays to consolidate pandas-extension array testing | diff --git a/pandas/tests/categorical/__init__.py b/pandas/tests/arrays/__init__.py
similarity index 100%
rename from pandas/tests/categorical/__init__.py
rename to pandas/tests/arrays/__init__.py
diff --git a/pandas/tests/arrays/categorical/__init__.py b/pandas/tests/arrays/categorical/__init__.py
new file mode 100644... | https://api.github.com/repos/pandas-dev/pandas/pulls/21795 | 2018-07-07T19:34:30Z | 2018-07-07T22:10:50Z | 2018-07-07T22:10:50Z | 2018-07-07T22:10:51Z | |
Removed Need for OHLC As First Element if Used in .agg (#21769) | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index df7a5dc9dc173..9d227ef37595f 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -3557,13 +3557,11 @@ def _aggregate_multiple_funcs(self, arg, _level):
obj._selection = name
r... | closes #21787 | https://api.github.com/repos/pandas-dev/pandas/pulls/21794 | 2018-07-07T16:49:35Z | 2018-07-07T18:57:43Z | 2018-07-07T18:57:43Z | 2018-07-08T03:28:25Z |
0.23.3 fixup | diff --git a/doc/source/whatsnew/v0.23.3.txt b/doc/source/whatsnew/v0.23.3.txt
index 266d2ce448fb0..b8adce27d2523 100644
--- a/doc/source/whatsnew/v0.23.3.txt
+++ b/doc/source/whatsnew/v0.23.3.txt
@@ -1,60 +1,7 @@
.. _whatsnew_0233:
-v0.23.3
--------
+v0.23.3 (July 7, 2018)
+----------------------
-This is a minor... | https://api.github.com/repos/pandas-dev/pandas/pulls/21788 | 2018-07-07T14:29:41Z | 2018-07-07T14:31:26Z | 2018-07-07T14:31:26Z | 2018-07-07T14:31:34Z | |
Backport PR #21769 on branch 0.23.x | diff --git a/doc/source/whatsnew/v0.23.3.txt b/doc/source/whatsnew/v0.23.3.txt
index d308cf7a3cfac..266d2ce448fb0 100644
--- a/doc/source/whatsnew/v0.23.3.txt
+++ b/doc/source/whatsnew/v0.23.3.txt
@@ -24,6 +24,11 @@ Fixed Regressions
Bug Fixes
~~~~~~~~~
+**Groupby/Resample/Rolling**
+
+- Bug where calling :func:`Da... | Backport PR #21769: Removed Need for OHLC As First Element if Used in .agg | https://api.github.com/repos/pandas-dev/pandas/pulls/21787 | 2018-07-07T13:44:19Z | 2018-07-07T16:50:10Z | null | 2018-07-08T03:29:10Z |
REF: move more methods to EAMixins | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 54e1f0726d772..74bf90eb94065 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -2,7 +2,7 @@
import numpy as np
-from pandas._libs import iNaT, NaT
+from pandas._libs import lib, iNaT... | With the exception of the comparison ops, this is the last stuff that can be moved before I have to implement the constructors (and hence a buttload of tests). Let's get this out of the way first.
(For the comparison ops there is some super jujitsu that needs to be un-wound, so will do that separately) | https://api.github.com/repos/pandas-dev/pandas/pulls/21782 | 2018-07-07T01:54:55Z | 2018-07-07T14:56:16Z | 2018-07-07T14:56:16Z | 2018-07-07T14:56:38Z |
Replaces Exceptions with ValueError in MultiIndex, closes #21770 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 481749fbbcb96..79e075d8a89c2 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -190,6 +190,8 @@ Other API Changes
.. _whatsnew_0240.api.incompatibilities:
+- Trying to reindex a ``DataFrame`` wi... | - [X] closes #21770
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/21780 | 2018-07-06T21:09:49Z | 2018-07-07T14:16:29Z | 2018-07-07T14:16:29Z | 2018-07-07T14:16:29Z |
TST: Add more information for unexpected warnings | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 7574c17308dd5..54ae8cfb3d39e 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -2523,7 +2523,10 @@ class for all warnings. To check that no warning is returned,
message=actual_warning.message)
... | Title is self-explanatory.
This will be useful for uncovering the problematic files (hopefully) if / when #21763 rears its head. | https://api.github.com/repos/pandas-dev/pandas/pulls/21779 | 2018-07-06T19:28:03Z | 2018-07-07T14:22:59Z | 2018-07-07T14:22:59Z | 2018-07-07T18:10:35Z |
Move methods and properties to EA Mixin classes | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index e5159141d4b59..0e3e50278bbec 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -6,7 +6,7 @@
from pandas._libs import tslib
from pandas._libs.tslib import Timestamp, NaT, iNaT
-from pandas._libs.t... | Not the all-at-once that @jorisvandenbossche asked for, but it's a much bigger chunk than the last few. | https://api.github.com/repos/pandas-dev/pandas/pulls/21776 | 2018-07-06T17:12:03Z | 2018-07-06T18:38:29Z | 2018-07-06T18:38:29Z | 2018-07-06T18:56:35Z |
Fix categorical from codes nan 21767 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d2d5d40393b62..c4a3847f38758 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -439,6 +439,7 @@ Deprecations
- :meth:`MultiIndex.to_hierarchical` is deprecated and will be removed in a future versio... | - [x] closes #21767
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21775 | 2018-07-06T17:07:45Z | 2018-08-01T22:12:54Z | 2018-08-01T22:12:54Z | 2018-08-01T22:13:07Z |
Changed import statements in examples in DOCs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 7b5f310315485..d192b32b26bdb 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5643,7 +5643,6 @@ def unstack(self, level=-1, fill_value=None):
Examples
--------
- >>> import pandas as pd
>>> df = pd.DataFrame({'A': {0: 'a'... | This is regarding Issue #21749
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/21774 | 2018-07-06T16:55:07Z | 2018-07-07T19:33:57Z | 2018-07-07T19:33:57Z | 2018-07-07T23:52:32Z |
Interpolation nonnumeric error handling | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3a8c81b5e9281..100d2a406c577 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -243,6 +243,10 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
+**Data-type specific**
+
+- Bug in :meth:`Series.interp... | - [x] closes #21662
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21773 | 2018-07-06T16:53:42Z | 2018-10-11T01:54:08Z | null | 2018-10-11T01:54:08Z |
Backport PR #21771 on branch 0.23.x | diff --git a/doc/source/whatsnew/v0.23.3.txt b/doc/source/whatsnew/v0.23.3.txt
new file mode 100644
index 0000000000000..d308cf7a3cfac
--- /dev/null
+++ b/doc/source/whatsnew/v0.23.3.txt
@@ -0,0 +1,55 @@
+.. _whatsnew_0233:
+
+v0.23.3
+-------
+
+This is a minor bug-fix release in the 0.23.x series and includes some sm... | Backport PR #21771: Whatsnew note for v0.23.3 | https://api.github.com/repos/pandas-dev/pandas/pulls/21772 | 2018-07-06T16:30:54Z | 2018-07-06T16:32:06Z | 2018-07-06T16:32:06Z | 2018-07-06T20:33:23Z |
Whatsnew note for v0.23.3 | diff --git a/doc/source/whatsnew/v0.23.3.txt b/doc/source/whatsnew/v0.23.3.txt
new file mode 100644
index 0000000000000..d308cf7a3cfac
--- /dev/null
+++ b/doc/source/whatsnew/v0.23.3.txt
@@ -0,0 +1,55 @@
+.. _whatsnew_0233:
+
+v0.23.3
+-------
+
+This is a minor bug-fix release in the 0.23.x series and includes some sm... | https://api.github.com/repos/pandas-dev/pandas/pulls/21771 | 2018-07-06T16:28:33Z | 2018-07-06T16:30:05Z | 2018-07-06T16:30:05Z | 2019-02-28T07:23:17Z | |
Removed Need for OHLC As First Element if Used in .agg | diff --git a/doc/source/whatsnew/v0.23.3.txt b/doc/source/whatsnew/v0.23.3.txt
index d308cf7a3cfac..266d2ce448fb0 100644
--- a/doc/source/whatsnew/v0.23.3.txt
+++ b/doc/source/whatsnew/v0.23.3.txt
@@ -24,6 +24,11 @@ Fixed Regressions
Bug Fixes
~~~~~~~~~
+**Groupby/Resample/Rolling**
+
+- Bug where calling :func:`Da... | - [X] closes #21716
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21769 | 2018-07-06T16:13:38Z | 2018-07-07T13:44:04Z | 2018-07-07T13:44:04Z | 2018-07-07T13:44:10Z |
Followup to #21738 | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 0076ec74ea9e1..9964ca0847ce7 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -1045,6 +1045,10 @@ def normalize_date(object dt):
Returns
-------
normalized : datetime.date... | Addresses comments/requests from #21738. | https://api.github.com/repos/pandas-dev/pandas/pulls/21764 | 2018-07-06T14:25:22Z | 2018-07-06T16:18:47Z | 2018-07-06T16:18:47Z | 2018-07-06T17:26:39Z |
Fix whatsnew dates | diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt
index af4eeffd87d01..cf60e86553fe3 100644
--- a/doc/source/whatsnew/v0.23.1.txt
+++ b/doc/source/whatsnew/v0.23.1.txt
@@ -1,7 +1,7 @@
.. _whatsnew_0231:
-v0.23.1
--------
+v0.23.1 (June 12, 2018)
+-----------------------
This is a mino... | Up to v0.23.0, there's always a date in the whatsnew-entries. This adds them back to v0.23.1 & v0.23.2, as well as a blank template for v0.24.0.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21759 | 2018-07-06T09:19:38Z | 2018-07-06T13:57:33Z | 2018-07-06T13:57:33Z | 2018-07-09T08:22:08Z |
DOC: Fix typos in Series.idxmin/idxmax docs | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 93c1f866cad17..a711f69028917 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1657,7 +1657,7 @@ def duplicated(self, keep='first'):
"""
return super(Series, self).duplicated(keep=keep)
- def idxmin(self, axis=None,... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/21757 | 2018-07-06T07:41:22Z | 2018-07-06T14:27:32Z | 2018-07-06T14:27:32Z | 2018-07-06T14:27:35Z |
TST: Remove check_exact from assert_almost_equal | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 34354e4db601e..14f910051d6c3 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -209,26 +209,26 @@ def decompress_file(path, compression):
f.close()
-def assert_almost_equal(left, right, check_exact=False,
- ... | From a semantic point of view, if you're checking for approximate equality, there shouldn't be a parameter that allows you to disable the whole purpose of the function. | https://api.github.com/repos/pandas-dev/pandas/pulls/21756 | 2018-07-06T06:01:21Z | 2018-07-06T14:07:27Z | 2018-07-06T14:07:27Z | 2018-07-06T22:55:24Z |
DOC: Correct docstring for check_dtype in assert_almost_equal | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 09f5e59535adf..34354e4db601e 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -221,8 +221,10 @@ def assert_almost_equal(left, right, check_exact=False,
right : object
check_exact : bool, default False
Whether to com... | Title is self-explanatory. | https://api.github.com/repos/pandas-dev/pandas/pulls/21754 | 2018-07-05T23:00:21Z | 2018-07-06T02:34:55Z | 2018-07-06T02:34:55Z | 2018-07-06T03:19:30Z |
CLN: clean up groupby / categorical | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 0252b5b52ae94..375db28a4ee5a 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -698,73 +698,6 @@ def _set_categories(self, categories, fastpath=False):
self._dtype = new_dtype
- ... | xref #21151
| https://api.github.com/repos/pandas-dev/pandas/pulls/21753 | 2018-07-05T22:39:16Z | 2018-07-06T14:03:13Z | 2018-07-06T14:03:13Z | 2018-07-06T14:03:13Z |
RLS: release notes for 0.23.2 | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 16fe896d9f58f..cd04288dce2c2 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -37,6 +37,40 @@ analysis / manipulation tool available in any language.
* Binary installers on PyPI: https://pypi.org/project/pandas
* Documentation: http... | https://api.github.com/repos/pandas-dev/pandas/pulls/21752 | 2018-07-05T20:36:18Z | 2018-07-05T20:49:25Z | 2018-07-05T20:49:25Z | 2018-07-05T21:25:42Z | |
DOC: clean-up 0.23.2 whatsnew file | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index b690de40aee06..2d7808363648b 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -63,12 +63,6 @@ Fixed Regressions
- Fixed regression in :func:`to_clipboard` that defaulted to copying dataframes with ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21750 | 2018-07-05T19:04:32Z | 2018-07-05T19:05:13Z | 2018-07-05T19:05:13Z | 2018-07-05T19:09:41Z | |
DOC: Update documentation with correct link | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 2146b7b99a5a7..3c0818343208a 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -1528,7 +1528,7 @@ Removal of prior version deprecations/changes
- The ``pandas.io.ga`` module with a ``google-analytic... | Fixed from shttp to https in docs link
| https://api.github.com/repos/pandas-dev/pandas/pulls/21745 | 2018-07-05T13:59:49Z | 2018-07-05T22:42:51Z | 2018-07-05T22:42:51Z | 2018-07-06T09:51:43Z |
TST: catch warnings for to_hierarchical deprecation | diff --git a/pandas/tests/indexes/multi/test_conversion.py b/pandas/tests/indexes/multi/test_conversion.py
index ff99941ba9948..ab99679af0f1a 100644
--- a/pandas/tests/indexes/multi/test_conversion.py
+++ b/pandas/tests/indexes/multi/test_conversion.py
@@ -57,7 +57,9 @@ def test_to_frame():
def test_to_hierarchical():... | https://api.github.com/repos/pandas-dev/pandas/pulls/21744 | 2018-07-05T11:24:19Z | 2018-07-05T16:12:34Z | 2018-07-05T16:12:34Z | 2018-07-05T16:13:10Z | |
CLN: Remove Legacy MultiIndex Index Compatibility | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 8cb384f50d371..efd4028f2eada 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -513,7 +513,7 @@ Missing
MultiIndex
^^^^^^^^^^
--
+- Removed compatibility for MultiIndex pickles prior to version 0... | - [x] closes #21654
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] what's new - removing legacy MultiIndex internal formats | https://api.github.com/repos/pandas-dev/pandas/pulls/21740 | 2018-07-05T01:06:55Z | 2018-07-27T11:33:16Z | 2018-07-27T11:33:15Z | 2018-07-27T12:18:00Z |
CLN/TST: Cleanup tests in test_ujson.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 8ca90722d17f7..255e0e165041b 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -250,7 +250,7 @@ def string_dtype(request):
return request.param
-@pytest.fixture(params=["float32", "float64"])
+@pytest.fixture(params=[float, "float32", "float6... | * Actually test the outputs
* Add more parameterization
* Take advantage of `pytest` features, such as exception contexts
This test module really needed an update 😄 | https://api.github.com/repos/pandas-dev/pandas/pulls/21739 | 2018-07-05T00:48:06Z | 2018-07-05T22:17:11Z | 2018-07-05T22:17:11Z | 2018-07-05T22:38:38Z |
Implement tslibs.__init__, move easy bits of tslib | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 61cf582300034..c1a0e58a4fb1a 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -35,18 +35,17 @@ from cython cimport Py_ssize_t
import pytz
-UTC = pytz.utc
from tslibs.timedeltas cimport cast_from_unit
-from tslibs.timedeltas ... | Easy answers to where `tslib.ints_to_pytimedelta` and `tslib.normalize_date` belong, so this moves those.
Starts populating the `tslibs.__init__` namespace; leaves updating imports for later.
Cleans up a couple of unnecessary imports elsewhere. | https://api.github.com/repos/pandas-dev/pandas/pulls/21738 | 2018-07-04T23:14:38Z | 2018-07-05T10:42:46Z | 2018-07-05T10:42:46Z | 2018-07-06T14:04:00Z |
DOC: Add nrows to DataFrame.from_records docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a420266561c5a..7b5f310315485 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1215,6 +1215,8 @@ def from_records(cls, data, index=None, exclude=None, columns=None,
coerce_float : boolean, default False
Attempt to conver... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/21735 | 2018-07-04T21:01:43Z | 2018-07-05T16:23:15Z | 2018-07-05T16:23:15Z | 2018-07-05T16:23:28Z |
Fixes example code in docstring of pandas.DataFrame.query | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a420266561c5a..24e344fa9870c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2839,9 +2839,9 @@ def query(self, expr, inplace=False, **kwargs):
Examples
--------
- >>> from numpy.random import randn
- >>> fr... | - [ ] closes #21733
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/21731 | 2018-07-04T19:21:45Z | 2018-07-06T02:35:39Z | 2018-07-06T02:35:39Z | 2018-07-07T23:51:13Z |
implement _tz_convert_dst for de-duplication | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index f825a4c8ed2c1..9879f16124b7e 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -608,9 +608,66 @@ cpdef inline datetime localize_pydatetime(datetime dt, object tz):
# --------------------... | Analogous to #21727, this handles the `get_dst_info` case whereas that handled the `tzlocal` case.
Fleshes out docstring as discussed in #21727
All the other uses of `get_dst_info` are handled _slightly_ differently. Need to figure out whether those are intentional to see if more de-duplication (or perf) is ava... | https://api.github.com/repos/pandas-dev/pandas/pulls/21730 | 2018-07-04T19:18:41Z | 2018-07-06T14:12:02Z | 2018-07-06T14:12:02Z | 2018-07-06T14:30:10Z |
misplaced scatter/hexbin subplot colorbars | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 1b2033999d67d..4704be34171ed 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -336,8 +336,7 @@ I/O
Plotting
^^^^^^^^
-- Bug in :func:'DataFrame.plot.scatter' and :func:'DataFrame.plot.hexbin' ca... | - [x] closes #20455
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
NOTE: I have tested the following in Jupyter lab.
When I run:
```python
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
rand... | https://api.github.com/repos/pandas-dev/pandas/pulls/21728 | 2018-07-04T16:16:36Z | 2018-07-05T16:47:12Z | 2018-07-05T16:47:11Z | 2018-07-05T16:52:12Z |
Implement _tz_convert_tzlocal_utc for de-duplication | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 8cfaa1f7b5cea..f825a4c8ed2c1 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -537,7 +537,7 @@ cdef inline void localize_tso(_TSObject obj, tzinfo tz):
elif obj.value == NPY_NAT:
... | There is a bunch of code in conversion (and a bit in resolution, period, and tslib) that can be de-duplicated. This is one part of ~5 steps in that process. | https://api.github.com/repos/pandas-dev/pandas/pulls/21727 | 2018-07-04T16:15:20Z | 2018-07-04T18:41:54Z | 2018-07-04T18:41:54Z | 2018-07-05T02:42:49Z |
CLN: Delay converting bins to datetimelike until necessary | diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py
index 863ebc6354136..bbdce762feee3 100644
--- a/pandas/core/reshape/tile.py
+++ b/pandas/core/reshape/tile.py
@@ -235,7 +235,7 @@ def cut(x, bins, right=True, labels=None, retbins=False, precision=3,
duplicates=duplica... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
xref #20956, `q/cut` now returns datetimelike bins when `retbins=True`. Instead of always trying to convert bins to datetimelike (even when `retbins=False`), moving the conversion to `_postprocess_for_cut` until after `r... | https://api.github.com/repos/pandas-dev/pandas/pulls/21724 | 2018-07-04T05:48:11Z | 2018-07-04T12:50:22Z | 2018-07-04T12:50:22Z | 2018-07-04T16:04:29Z |
Code deduplication in tz_convert and related | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 8cfaa1f7b5cea..a7ad7a6ca14d3 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -612,61 +612,43 @@ cdef inline int64_t tz_convert_tzlocal_to_utc(int64_t val, tzinfo tz):
"""
Para... | `tz_convert_tzlocal_to_utc` and `tz_convert_utc_to_tzlocal` are identical except for a `+` changed to a `-`. This implements `_tz_convert_tzlocal_utc` which has an argument that flips the sign. IIUC because it is inlined, that check should be free.
An upcoming PR will do the same thing for the `get_dst_info` cases... | https://api.github.com/repos/pandas-dev/pandas/pulls/21723 | 2018-07-04T05:32:57Z | 2018-07-04T05:37:23Z | null | 2018-07-04T16:10:20Z |
move ndarray-returning functions to EA mixin classes | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index be3f94201f103..54e1f0726d772 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -2,11 +2,14 @@
import numpy as np
-from pandas._libs import iNaT
+from pandas._libs import iNaT, NaT
f... | Orthogonal to other EAMixin PRs.
The methods this moves are unchanged. Docstrings changed e.g. "DatetimeIndex" to "Datetime Array/Index". I'm open to suggestions for better wording.
The error message in `PeriodArrayMixin._maybe_convert_timedelta` is changed to use `type(self).__name__` instead of hardcoding `Pe... | https://api.github.com/repos/pandas-dev/pandas/pulls/21722 | 2018-07-04T03:37:02Z | 2018-07-05T10:39:00Z | 2018-07-05T10:39:00Z | 2018-07-06T14:36:30Z |
implement _local_timestamps in DatetimeArrayMixin | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index a5acc3d0e8593..e5159141d4b59 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -2,10 +2,11 @@
import warnings
import numpy as np
+from pytz import utc
from pandas._libs import tslib
from pand... | Broken out of #21715 because it is a blocker for a handful of orthogonal follow-ons. | https://api.github.com/repos/pandas-dev/pandas/pulls/21721 | 2018-07-04T02:53:02Z | 2018-07-05T16:51:02Z | 2018-07-05T16:51:02Z | 2018-07-06T14:36:43Z |
docstring and whitespace cleanup | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index a6dbaff17e543..f5f9c06a7e4c2 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -243,7 +243,7 @@ def group_shift_indexer(ndarray[int64_t] out, ndarray[int64_t] labels,
label_indexer = np.zeros((ngroups, periods), dtype=... | https://api.github.com/repos/pandas-dev/pandas/pulls/21719 | 2018-07-03T16:11:42Z | 2018-07-03T23:39:29Z | 2018-07-03T23:39:29Z | 2018-07-05T02:43:24Z | |
TST: Parametrize tests in tools/test_numeric.py | diff --git a/pandas/tests/tools/test_numeric.py b/pandas/tests/tools/test_numeric.py
index b306dba0be7f1..5321a5a93fa3d 100644
--- a/pandas/tests/tools/test_numeric.py
+++ b/pandas/tests/tools/test_numeric.py
@@ -162,12 +162,17 @@ def test_all_nan(self):
tm.assert_series_equal(res, expected)
def test_ty... | Title is self-explanatory. | https://api.github.com/repos/pandas-dev/pandas/pulls/21717 | 2018-07-03T10:22:17Z | 2018-07-03T23:38:38Z | 2018-07-03T23:38:38Z | 2018-07-04T00:12:47Z |
implement maybe_wrap_in_index for EA Mixin dispatch | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index fb51f3324c5ea..5eac4053336ed 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -2,9 +2,10 @@
import warnings
import numpy as np
+from pytz import utc
from pandas._libs.tslib import Timestamp, ... | Implements `maybe_wrap_in_index`, shows the easiest places where it can be used. If merged, the follow-on will be to move the affected methods to the EA mixin classes, leaving just the dispatch/wrapping behind.
Implements `_local_timestamps` on the `DatetimeArrayMixin`, since that will be needed before we can move ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21715 | 2018-07-03T05:38:49Z | 2018-07-04T03:44:43Z | null | 2018-07-05T02:43:59Z |
De-privatize tslibs functions | diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_libs/tslibs/frequencies.pyx
index abaf8cad09bdb..56dcd5c405c6b 100644
--- a/pandas/_libs/tslibs/frequencies.pyx
+++ b/pandas/_libs/tslibs/frequencies.pyx
@@ -20,7 +20,7 @@ opattern = re.compile(
r'([+\-]?\d*|[+\-]?\d*\.\d*)\s*([A-Za-z]+([\-][\dA-Za-z\-]+)?... | Related: an item on the tslibs TODO list, #21698. | https://api.github.com/repos/pandas-dev/pandas/pulls/21714 | 2018-07-03T05:12:23Z | 2018-07-03T14:53:57Z | 2018-07-03T14:53:57Z | 2018-07-11T20:24:22Z |
Move Unchanged arith methods to EA mixins | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 180417ce5e49c..be3f94201f103 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -167,3 +167,15 @@ def _add_delta_tdi(self, other):
mask = (self._isnan) | (other._isnan)
... | Next steps after #19902. Breaking these up into smaller pieces than usual because I don't know what bits will prove controversial.
All this PR does is take a few of the easiest no-changes-needed methods and moved them to the EA mixins.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21712 | 2018-07-03T02:55:46Z | 2018-07-03T23:40:09Z | 2018-07-03T23:40:09Z | 2018-07-06T14:37:01Z |
ENH: Add set_closed method to IntervalIndex | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 8dc5d0e9fc023..f19e5534fc1b3 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1642,6 +1642,7 @@ IntervalIndex Components
IntervalIndex.is_non_overlapping_monotonic
IntervalIndex.get_loc
IntervalIndex.get_indexer
+ IntervalIndex.set_clo... | - [X] closes #21670
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21711 | 2018-07-03T01:05:47Z | 2018-07-03T20:14:59Z | 2018-07-03T20:14:59Z | 2018-09-24T17:22:36Z |
remove unused cimport, parametrize test | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index b46a05a0842c3..2179999859dbb 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -435,4 +435,4 @@ def get_blkno_indexers(int64_t[:] blknos, bint group=True):
res_view[i] = diff
... | https://api.github.com/repos/pandas-dev/pandas/pulls/21710 | 2018-07-02T23:39:09Z | 2018-07-03T14:22:38Z | 2018-07-03T14:22:38Z | 2018-07-03T14:47:24Z | |
DOC: move whatsnew on performance from 0.23.2 to 0.24.0 | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 1ca693755b3c6..41d370f88f396 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -59,19 +59,6 @@ Fixed Regressions
- Bug in :meth:`Timestamp.ceil` and :meth:`Timestamp.floor` when timestamp is a multi... | I did not backport the performance improvements in my backporting PRs for now, so this moves that section to 0.24.0.txt.
(my rationale: let's be conservative for bug fix releases, performance improvements (if they are not fixing severe performance regressions) are not strictly needed in a bug fix release).
| https://api.github.com/repos/pandas-dev/pandas/pulls/21709 | 2018-07-02T15:51:38Z | 2018-07-02T23:23:02Z | 2018-07-02T23:23:02Z | 2018-07-02T23:23:06Z |
Release 0.23.2 backports part II | diff --git a/.travis.yml b/.travis.yml
index 4e25380a7d941..2d2a0bc019c80 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,11 @@ matrix:
language: generic
env:
- JOB="3.5, OSX" ENV_FILE="ci/travis-35-osx.yaml" TEST_ARGS="--skip-slow --skip-network"
+
+ - dist: trusty
+ env:
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/21708 | 2018-07-02T15:47:07Z | 2018-07-05T17:34:18Z | 2018-07-05T17:34:18Z | 2018-07-05T17:34:28Z | |
DOC: consistent sphinx title levels | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 0ca5b9cdf1d57..b275796237191 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -45,14 +45,13 @@ Other Enhancements
.. _whatsnew_0240.api_breaking:
-
Backwards incompatible API changes
~~~~~~~~... | To fix the sphinx build warnings | https://api.github.com/repos/pandas-dev/pandas/pulls/21706 | 2018-07-02T13:39:18Z | 2018-07-02T14:37:47Z | 2018-07-02T14:37:47Z | 2018-07-02T14:37:51Z |
BUG : Adding *kwargs for name retention in Index args | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index a99c913f95e82..783c5de70ae2d 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -98,7 +98,7 @@ def _convert_and_box_cache(arg, cache_array, box, errors, name=None):
result = Series(arg).map(cache_arr... | - [x] closes #21697
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21703 | 2018-07-02T07:12:45Z | 2018-07-20T13:32:59Z | null | 2018-07-20T13:32:59Z |
CLN: to_datetime internals | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 18802d98a347e..a99c913f95e82 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -1,3 +1,4 @@
+from functools import partial
from datetime import datetime, timedelta, time
from collections import Mutable... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The internals of `to_datetime` is getting a bit unwieldy, so split out the `_convert_listlike` logic and origin shifting logic to ` _convert_listlike_datetime` and `adjust_to_origin` methods respectively outside of `to_datetime`... | https://api.github.com/repos/pandas-dev/pandas/pulls/21702 | 2018-07-02T00:39:06Z | 2018-07-03T14:23:31Z | 2018-07-03T14:23:31Z | 2018-07-03T15:13:32Z |
implement tslibs.arraylike | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 4c72e09a4851b..2387607569431 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -37,6 +37,9 @@ from cython cimport Py_ssize_t
import pytz
UTC = pytz.utc
+from tslibs.arraylike import ( # noqa:F841
+ format_array_from_datetime, a... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21700 | 2018-07-01T21:48:44Z | 2018-07-05T02:36:08Z | null | 2018-07-11T20:23:05Z |
PERF: CategoricalIndex.get_loc should avoid expensive cast of .codes to int64 | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 739ad6a3d278b..5af431dd9f3ae 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -2,7 +2,8 @@
import numpy as np
import pandas.util.testing as tm
-from pandas import (Series, DataFrame, MultiIn... | - [x] closes #20395
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is the the final puzzle for #20395.
The problem with the current implementation is that ``CategoricalIndex._engine`` constantly recodes int8 arrays to int64 arrays:
h... | https://api.github.com/repos/pandas-dev/pandas/pulls/21699 | 2018-07-01T19:35:53Z | 2018-10-19T02:23:17Z | null | 2019-02-02T18:45:55Z |
add unit test for writing to already open file | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index 36c4ae547ad4e..20dfeb10daf46 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -300,3 +300,19 @@ def test_to_csv_stdout_file(self):
output = sys.stdout.getvalue()... | - [ ] closes
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
closes #21577
The added unit test will pass for `0.23.0`, fails for `0.23.1`, passes for `master`. | https://api.github.com/repos/pandas-dev/pandas/pulls/21696 | 2018-07-01T10:35:01Z | 2018-07-02T23:28:27Z | 2018-07-02T23:28:26Z | 2018-07-03T09:57:19Z |
move _add__ and __sub__ to liboffsets, implement _Tick | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index be3f11ea4da1f..1b319e12f06d5 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -368,12 +368,31 @@ class _BaseOffset(object):
if name not in ['n', 'normalize']}
return {name:... | Last one for now.
Moving `__add__` and `__sub__` to liboffsets has been viable for a while now, just getting around to it.
Implements a dummy `_Tick` class that gets mixed in to `Tick`. Then in `tslibs.period` we can replace `isinstance(obj, offsets.Tick)` checks with `isinstnace(obj, _Tick)`, obviating the need... | https://api.github.com/repos/pandas-dev/pandas/pulls/21694 | 2018-07-01T02:47:44Z | 2018-07-03T14:24:16Z | 2018-07-03T14:24:15Z | 2018-07-03T14:46:54Z |
use liboffsets to_offset function | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 6588b5476e2b9..4c72e09a4851b 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -51,6 +51,8 @@ from tslibs.conversion import tz_convert_single
from tslibs.nattype import NaT, nat_strings, iNaT
from tslibs.nattype cimport checknull_wit... | https://api.github.com/repos/pandas-dev/pandas/pulls/21693 | 2018-07-01T01:26:10Z | 2018-07-02T11:05:59Z | 2018-07-02T11:05:59Z | 2018-11-08T18:10:15Z | |
move is_null_datetimelike to nattype for self-containment | diff --git a/pandas/_libs/missing.pxd b/pandas/_libs/missing.pxd
index f3d990db1c3fd..b90975df8e247 100644
--- a/pandas/_libs/missing.pxd
+++ b/pandas/_libs/missing.pxd
@@ -1,6 +1,11 @@
# -*- coding: utf-8 -*-
# cython: profile=False
-cdef bint is_null_datetimelike(object val)
+from tslibs.nattype cimport is_null_d... | ATM `is_null_datetimelike` is used _only_ in `tslibs.period`. The dependency structure is simplified nicely if we put that function is `tslibs.nattype` instead of in `_libs.missing`.
This also takes a couple of missing-themed functions out of inference.pyx
Finally, moves the libperiod block in setup.py to down w... | https://api.github.com/repos/pandas-dev/pandas/pulls/21692 | 2018-07-01T01:19:04Z | 2018-07-02T23:31:46Z | 2018-07-02T23:31:46Z | 2018-07-02T23:37:28Z |
move and de-privatize _localize_pydatetime, move shift_day to liboffsets | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 4c72e09a4851b..61cf582300034 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -235,23 +235,6 @@ def _test_parse_iso8601(object ts):
return Timestamp(obj.value)
-cpdef inline object _localize_pydatetime(object dt, object t... | The only non-test place where tslib._localize_pydatetime is used is in tseries.offsets. This moves that func to liboffsets, de-privatizes it, and moves tseris.offsets.shift_day up to liboffsets.
To avoid import proliferation this keeps localize_pydatetime in the tslib namespace so the tests can get at it.
Adds s... | https://api.github.com/repos/pandas-dev/pandas/pulls/21691 | 2018-07-01T00:47:02Z | 2018-07-02T23:33:44Z | 2018-07-02T23:33:44Z | 2018-07-02T23:36:35Z |
Misc cleanups, test parametrization | diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx
index 1fa07dbed6822..cf887ce1a6387 100644
--- a/pandas/_libs/src/inference.pyx
+++ b/pandas/_libs/src/inference.pyx
@@ -1225,7 +1225,7 @@ def maybe_convert_objects(ndarray[object] objects, bint try_float=0,
ndarray[int64_t] idatetimes... | No coherent theme: remove an unused variable in inference.pyx, make some imports more direct, parametrize a big test, and move a tslib-specific test to test_tslibs | https://api.github.com/repos/pandas-dev/pandas/pulls/21690 | 2018-07-01T00:35:05Z | 2018-07-02T11:12:29Z | 2018-07-02T11:12:29Z | 2018-07-02T23:37:45Z |
Accept constant memoryviews in HashTable.lookup | diff --git a/ci/appveyor-27.yaml b/ci/appveyor-27.yaml
index 10511ac0e00ca..114dcfb0c6440 100644
--- a/ci/appveyor-27.yaml
+++ b/ci/appveyor-27.yaml
@@ -24,7 +24,7 @@ dependencies:
- xlsxwriter
- xlwt
# universal
- - cython
+ - cython>=0.28.2
- pytest
- pytest-xdist
- moto
diff --git a/ci/appveyor-3... | xref https://github.com/pandas-dev/pandas/pull/10070
xref https://github.com/pandas-dev/pandas/issues/12813
building an ExtensionArray for nullable ints using a `pyarrow.Array`, the underlying memoryview is marked as constant. The HashTable Cython code uses the memoryview in the `lookup` function but in a read-onl... | https://api.github.com/repos/pandas-dev/pandas/pulls/21688 | 2018-06-30T07:32:55Z | 2018-07-07T19:52:39Z | 2018-07-07T19:52:39Z | 2018-07-08T18:21:55Z |
API: remove ordered requirement in Categorical.searchsorted | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 3406f52b06a61..2668734031ee1 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -173,7 +173,7 @@ Categorical
- Added test to assert the :func:`fillna` raises the correct ValueError message when the val... | - [x] closes #21667
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
``searchsorted`` is mainly a tool to find value locations in a sorted array. As such it doesn't make sense to restrict it to not work with unordered categoricals. For example, d... | https://api.github.com/repos/pandas-dev/pandas/pulls/21686 | 2018-06-29T17:25:34Z | 2019-10-02T03:15:41Z | 2019-10-02T03:15:40Z | 2019-10-02T21:21:22Z |
Release 0.23.2 backports part I | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
new file mode 100644
index 0000000000000..53ca4c0d1c144
--- /dev/null
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -0,0 +1,93 @@
+.. _whatsnew_0232:
+
+v0.23.2
+-------
+
+This is a minor bug-fix release in the 0.23.x series and includes some sm... | https://api.github.com/repos/pandas-dev/pandas/pulls/21683 | 2018-06-29T15:08:23Z | 2018-07-02T13:59:05Z | 2018-07-02T13:59:05Z | 2018-07-02T13:59:54Z | |
Allow merging on object / non-object column | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index b4331aab3085f..e8ede92c32374 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -426,6 +426,7 @@ Backwards incompatible API changes
- :func:`read_csv` will now raise a ``ValueError`` if a column with... | Follow-up on discussion in https://github.com/pandas-dev/pandas/pull/21310 (cc @jreback )
What this does: allow `merge` on an object and a non-object column (eg object and int, object and categorical, ..), by coercing the non-object column to object dtype.
Reasoning:
- object dtype can be anything, so IMO pandas... | https://api.github.com/repos/pandas-dev/pandas/pulls/21681 | 2018-06-29T13:38:42Z | 2019-01-03T00:45:04Z | 2019-01-03T00:45:04Z | 2020-04-23T17:56:57Z |
ENH: Adding pd.__git_version__ to point to git sha commit (#21295) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3b04d9937d7f2..7eb6204387337 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -180,6 +180,8 @@ Other Enhancements
- :func:`~DataFrame.to_csv` and :func:`~DataFrame.to_json` now support ``compressio... | - [ ] closes #21295
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21680 | 2018-06-29T13:35:31Z | 2018-09-18T19:35:29Z | null | 2018-09-18T19:35:29Z |
API: referring to duplicate level name raises ValueError | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 812ea366b704a..4bb1e9efffff6 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -229,6 +229,9 @@ Other API Changes
^^^^^^^^^^^^^^^^^
- :class:`DatetimeIndex` now accepts :class:`Int64Index` argume... | follow-up on: https://github.com/pandas-dev/pandas/pull/21423
But, this currently has a lot of failures, because of https://github.com/pandas-dev/pandas/issues/21677 that we first need to resolve. | https://api.github.com/repos/pandas-dev/pandas/pulls/21678 | 2018-06-29T12:07:09Z | 2018-07-08T14:16:22Z | 2018-07-08T14:16:22Z | 2018-07-08T14:16:26Z |
TST/CLN: Old timezone issues PT3 | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 0ca5b9cdf1d57..cfcee79281eec 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -248,6 +248,8 @@ Timezones
- Bug in :meth:`Series.truncate` with a tz-aware :class:`DatetimeIndex` which would cause a ... | - [x] closes #13783
- [x] closes #12619
- [x] closes #15522
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #21612 and #21491, last of the cleanup of older timezone issues
| https://api.github.com/repos/pandas-dev/pandas/pulls/21674 | 2018-06-29T06:14:20Z | 2018-07-02T23:44:12Z | 2018-07-02T23:44:11Z | 2018-07-03T02:36:36Z |
ENH: pivot/groupby index with nan (GH3729) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 406ca9ba045c9..69a8be39be62c 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -9,6 +9,7 @@ New features
~~~~~~~~~~~~
- ``ExcelWriter`` now accepts ``mode`` as a keyword argument, enabling append... | Adds the ability to use NaN as a grouping variable. Required allowing NA as a factorisation variable in `factorize()`.
- [x] closes #3729
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21669 | 2018-06-29T03:17:56Z | 2018-11-23T03:33:07Z | null | 2018-11-23T03:33:07Z |
DOC: Fixup docstring [ci skip] | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index 2eb5962ead986..eb71722dd563a 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -494,7 +494,7 @@ You can also pass a list of dicts or Series:
dicts = [{'A': 1, 'B': 2, 'C': 3, 'X': 4},
{'A': 5, 'B': 6, 'C': 7, 'Y': 8}... | [ci skip] | https://api.github.com/repos/pandas-dev/pandas/pulls/21663 | 2018-06-28T11:15:38Z | 2018-07-06T16:48:38Z | 2018-07-06T16:48:38Z | 2018-07-06T16:48:40Z |
TST: Use fixtures in dtypes/test_cast.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 5b9c162a0a022..803b3add97052 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -245,6 +245,18 @@ def float_dtype(request):
return request.param
+@pytest.fixture(params=["complex64", "complex128"])
+def complex_dtype(request):
+ """
+ Pa... | Title is self-explanatory.
Partially addresses #21500. | https://api.github.com/repos/pandas-dev/pandas/pulls/21661 | 2018-06-27T23:05:23Z | 2018-06-28T10:11:49Z | 2018-06-28T10:11:49Z | 2018-06-28T16:58:53Z |
BUG: Issues with DatetimeTZ values in where and combine_first (#21469 + #21546) | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 94257b25b11a5..dfb7a3675fdd5 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -255,7 +255,6 @@ Timezones
- Bug in :class:`Series` constructor which would coerce tz-aware and tz-naive :class:`Timest... | - [ ] closes #21469
- [ ] closes #21546
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
CC: @jreback. Replacement for PR #21544; fixes for #21469 (`Series.combine_first` fails on tz values input) and #21546 (`where` fails on tz values input). S... | https://api.github.com/repos/pandas-dev/pandas/pulls/21660 | 2018-06-27T20:20:46Z | 2018-07-02T23:54:23Z | 2018-07-02T23:54:22Z | 2018-07-02T23:54:36Z |
PERF: avoid unneeded recoding of categoricals and reuse CategoricalDtypes for greater slicing speed | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 73e3933122628..2a7717378c280 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -210,3 +210,38 @@ def time_categorical_index_contains(self):
def time_categorical_contains(se... | - [x] progress towards #20395
- [x] ASVs added
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Currently, a lot of indexing/slicing ops on CategoricalIndexes goes through ``CategoricalIndex._create_categorical``, which can be a slow operation, because calling ``data._set_dtype`` there is slow... | https://api.github.com/repos/pandas-dev/pandas/pulls/21659 | 2018-06-27T20:09:49Z | 2018-06-29T00:36:06Z | 2018-06-29T00:36:06Z | 2018-07-24T23:50:41Z |
BUG: fix reindexing MultiIndex with categorical datetime-like level | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 987f171878d0b..c9b6fa6827367 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -55,6 +55,8 @@ Fixed Regressions
- Fixed regression in :meth:`to_csv` when handling file-like object incorrectly (:issu... | closes #21390
This fixes the bug, but is not really a general solution. However, I would like to keep that for another PR (won't have time for this before 0.23.2), also because the underlying reason is more widely present than in just the MultiIndex.values (will open a separate issue about this -> https://github.com... | https://api.github.com/repos/pandas-dev/pandas/pulls/21657 | 2018-06-27T15:46:20Z | 2018-07-02T15:26:44Z | 2018-07-02T15:26:44Z | 2018-07-02T15:44:50Z |
BUG: Fix MI repr with long names | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index 70443f999ba31..69a1100b161b4 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -55,6 +55,7 @@ Fixed Regressions
- Fixed regression in :meth:`to_csv` when handling file-like object incorrectly (:issu... | Closes #21180
```python
In [4]: try:
...: from unittest import mock
...: except ImportError:
...: mock = pytest.importorskip("mock")
...:
...: terminal_size = os.terminal_size((118, 96))
...: p1 = mock.patch('pandas.io.formats.console.... | https://api.github.com/repos/pandas-dev/pandas/pulls/21655 | 2018-06-27T13:40:08Z | 2018-07-02T15:28:20Z | 2018-07-02T15:28:19Z | 2018-07-02T15:45:26Z |
DOC: update DataFrame.dropna's axis argument docs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b553cfdc72c92..42a68de52a3c4 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4186,6 +4186,7 @@ def dropna(self, axis=0, how='any', thresh=None, subset=None,
.. deprecated:: 0.23.0
Pass tuple or list to drop o... | Make `DataFrame.dropna`'s axis argument type deprecated warning in documentation easier to understand. | https://api.github.com/repos/pandas-dev/pandas/pulls/21652 | 2018-06-27T10:07:34Z | 2018-06-27T12:00:00Z | 2018-06-27T12:00:00Z | 2018-06-27T12:00:04Z |
ENH: Allow keep='all' for nlargest/nsmallest | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 12e4824b2dd2a..1819cfa2725db 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -501,7 +501,7 @@ def time_info(self):
class NSort(object):
goal_time = 0.2
- params =... | Title is self-explanatory.
Closes #16818.
Closes #18656.
| https://api.github.com/repos/pandas-dev/pandas/pulls/21650 | 2018-06-27T07:14:39Z | 2018-06-28T21:20:32Z | 2018-06-28T21:20:32Z | 2018-06-28T21:20:59Z |
DOC: Fix versionadded directive typos in IntervalIndex | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index eb9d7efc06c27..23a655b9a51ee 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -160,7 +160,7 @@ class IntervalIndex(IntervalMixin, Index):
dtype : dtype or None, default None
If None, d... | There needs to be a space between the `..` and `versionadded::`. Currently being rendered as plaintext, which doesn't look too great:

Couldn't find any other instances of this in the codebase for `versio... | https://api.github.com/repos/pandas-dev/pandas/pulls/21649 | 2018-06-27T00:12:10Z | 2018-06-27T09:57:56Z | 2018-06-27T09:57:56Z | 2018-09-24T17:22:43Z |
addresses GH #21646 | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 82d860b091b82..5b9c162a0a022 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -153,8 +153,10 @@ def datapath(request):
ValueError
If the path doesn't exist and the --strict-data-files option is set.
"""
+ BASE_PATH = os.path.joi... | - [x] closes #21646
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21647 | 2018-06-26T22:40:02Z | 2018-06-27T11:23:23Z | 2018-06-27T11:23:23Z | 2018-06-27T11:36:33Z |
ENH: add return_inverse to duplicated for DataFrame/Series/Index/MultiIndex | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 1819cfa2725db..50789d64edda1 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -412,21 +412,35 @@ def time_frame_nunique(self):
class Duplicated(object):
goal_time = 0... | Closes #21357
I followed the recommendation of @jreback there to change `duplicated`, and to make the output a tuple if `return_inverse=True`.
I didn't find a test for the behavior of `DataFrame.duplicated()` -- there's a test of `Index.duplicated()` and `Series.duplicated()` in `tests/test_base.py`, but nothing... | https://api.github.com/repos/pandas-dev/pandas/pulls/21645 | 2018-06-26T21:20:23Z | 2018-12-03T17:37:51Z | null | 2018-12-03T17:37:51Z |
DOC: minor correction to v0.23.2.txt | diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt
index a41a6c31b0678..9c4b408a1d24b 100644
--- a/doc/source/whatsnew/v0.23.2.txt
+++ b/doc/source/whatsnew/v0.23.2.txt
@@ -61,8 +61,8 @@ Fixed Regressions
Performance Improvements
~~~~~~~~~~~~~~~~~~~~~~~~
-- Improved performance of member... | - [x] xref #21508
- [x] whatsnew entry
Small clairification that ``pd.Categorical.__contains__`` has gotten faster. | https://api.github.com/repos/pandas-dev/pandas/pulls/21644 | 2018-06-26T20:45:56Z | 2018-06-26T21:30:42Z | 2018-06-26T21:30:42Z | 2018-06-26T21:39:54Z |
TST: xfail flaky 3.7 test, xref #21636 | diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py
index e0793b8e1bd64..0fec6a8f96a24 100644
--- a/pandas/tests/groupby/test_categorical.py
+++ b/pandas/tests/groupby/test_categorical.py
@@ -6,6 +6,7 @@
import numpy as np
import pandas as pd
+from pandas.compat import P... | e.g. https://travis-ci.org/pandas-dev/pandas/jobs/396806967
xref #21636 | https://api.github.com/repos/pandas-dev/pandas/pulls/21637 | 2018-06-26T11:57:07Z | 2018-06-26T12:26:22Z | 2018-06-26T12:26:22Z | 2018-07-02T15:37:07Z |
DOC: fix typo in cookbook.rst | diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index fdc3b38cfdebc..f6fa9e9f86143 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/cookbook.rst
@@ -132,7 +132,7 @@ Building Criteria
.. ipython:: python
- newseries = df.loc[(df['BBB'] > 25) | (df['CCC'] >= -40), 'AAA']; newseries;
+ newseri... | Removing the semicolon delimiter at the end of the modified line of code allows the line's output to be displayed.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/21635 | 2018-06-26T09:13:46Z | 2018-06-26T20:26:40Z | 2018-06-26T20:26:40Z | 2018-06-26T20:26:46Z |
DOC: fixup old whatsnew for dtype coercing change (#21456) | diff --git a/doc/source/whatsnew/v0.11.0.txt b/doc/source/whatsnew/v0.11.0.txt
index 3c9cfda49aebd..f39e6c9ff459b 100644
--- a/doc/source/whatsnew/v0.11.0.txt
+++ b/doc/source/whatsnew/v0.11.0.txt
@@ -76,7 +76,7 @@ Numeric dtypes will propagate and can coexist in DataFrames. If a dtype is passe
df1.dtypes
df2 =... | xref https://github.com/pandas-dev/pandas/pull/21456
cc @gfyoung | https://api.github.com/repos/pandas-dev/pandas/pulls/21634 | 2018-06-26T08:38:15Z | 2018-06-26T10:01:11Z | 2018-06-26T10:01:10Z | 2018-06-26T10:01:17Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.