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 |
|---|---|---|---|---|---|---|---|
Subclassed reshape | diff --git a/doc/source/internals.rst b/doc/source/internals.rst
index 3d96b93de4cc9..f114e8f7c5769 100644
--- a/doc/source/internals.rst
+++ b/doc/source/internals.rst
@@ -128,7 +128,7 @@ Property Attributes ``Series`` ``DataFrame`` ``Panel
``_constructor_expanddim`` ``DataFrame`` ... | - [x] closes #15563
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Reshape operations in pandas/core/reshape.py modified to use `obj._constructor`, `obj._constructor_sliced`, and `obj._constructor_expanddim` for Series and DataFrame. This preserves a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15564 | 2017-03-04T01:21:36Z | 2017-03-08T23:05:53Z | null | 2017-03-09T02:02:09Z |
BUG: resample with tz-aware: Values falls after last bin | diff --git a/pandas/tests/tseries/test_resample.py b/pandas/tests/tseries/test_resample.py
index 1535bd665fe8b..56953dc378965 100755
--- a/pandas/tests/tseries/test_resample.py
+++ b/pandas/tests/tseries/test_resample.py
@@ -2670,6 +2670,11 @@ def test_resample_weekly_bug_1726(self):
# it works!
df.re... | - [ ] closes https://github.com/pandas-dev/pandas/issues/15549
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry: resampling will now always produce bins alligned by UTC instead of custom time zone. so for example if you resampling by 12 hours frequency in ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15555 | 2017-03-02T21:01:26Z | 2017-03-28T18:26:48Z | null | 2017-03-28T18:58:43Z |
ENH: IO header formatting | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 725dc7fc52ed0..e45484ed17251 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -228,6 +228,7 @@ Other enhancements
- ``pd.TimedeltaIndex`` now has a custom datetick formatter specifically designed f... | - [x] closes #15536
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
In this branch I changed ``pd.formats.format.DataFrameFormatter._to_str_columns`` which
is used by ``to_latex`` and ``to_string`` to format output nicely.
They support now optional ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15548 | 2017-03-02T13:51:56Z | 2017-03-09T10:58:49Z | 2017-03-09T10:58:49Z | 2017-03-09T10:59:12Z |
CLN: remove deprecated irow, icol, iget, iget_value (GH10711) | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 6e9dfb92dfd90..dc8420080b50d 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -548,6 +548,8 @@ Removal of prior version deprecations/changes
- ``pd.to_datetime`` and ``pd.to_timedelta`` have droppe... | xref https://github.com/pandas-dev/pandas/issues/6581 | https://api.github.com/repos/pandas-dev/pandas/pulls/15547 | 2017-03-02T10:34:27Z | 2017-03-02T12:55:15Z | null | 2017-03-02T12:55:16Z |
TST: split tests/format/test_format.py | diff --git a/pandas/tests/formats/test_eng_formatting.py b/pandas/tests/formats/test_eng_formatting.py
new file mode 100644
index 0000000000000..d2badd4fc160a
--- /dev/null
+++ b/pandas/tests/formats/test_eng_formatting.py
@@ -0,0 +1,195 @@
+import numpy as np
+import pandas as pd
+from pandas import DataFrame
+from pa... | closes #15531 | https://api.github.com/repos/pandas-dev/pandas/pulls/15546 | 2017-03-02T02:03:46Z | 2017-03-02T08:39:35Z | 2017-03-02T08:39:35Z | 2017-03-02T08:39:35Z |
DOC: Styler.set_table_attributes docstring | diff --git a/pandas/formats/style.py b/pandas/formats/style.py
index 89712910a22e1..4374c41da42f4 100644
--- a/pandas/formats/style.py
+++ b/pandas/formats/style.py
@@ -631,11 +631,17 @@ def set_table_attributes(self, attributes):
Parameters
----------
- precision: int
+ attributes : s... | - [x] tests not needed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew not needed
Fixes a copy-paste error. | https://api.github.com/repos/pandas-dev/pandas/pulls/15545 | 2017-03-02T01:04:17Z | 2017-03-02T02:22:09Z | null | 2017-03-02T02:22:10Z |
BUG: syntax error in hdf query with ts | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index fa24c973a7549..8e44bec377e35 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -450,6 +450,33 @@ New Behavior:
df.groupby('A').agg([np.mean, np.std, np.min, np.max])
+HDFStore where string co... | - [x] closes #15492
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15544 | 2017-03-02T00:48:42Z | 2017-03-03T15:07:47Z | null | 2017-03-10T14:18:04Z |
API: expose pandas.errors | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 63aea96ef3369..0533448fed547 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -75,6 +75,28 @@ Commonly called 'unix epoch' or POSIX time.
pd.to_datetime([1, 2, 3], unit='D')
+.. _whatsnew_02... | closes #14800
this doesn't actually deprecate the existing (as we have discussed in #15181) but baby steps.
I also didn't add the 'hated'! ``SettingWithCopy*`` ones; these will be removed in pandas 2.0 anyhow, so no point in adding them. | https://api.github.com/repos/pandas-dev/pandas/pulls/15541 | 2017-03-01T19:13:01Z | 2017-04-03T21:52:14Z | null | 2017-04-03T21:53:07Z |
BLD: fix 2.7_LOCALE build | diff --git a/ci/install_travis.sh b/ci/install_travis.sh
index 802d8c9f6b776..b337f6e443be2 100755
--- a/ci/install_travis.sh
+++ b/ci/install_travis.sh
@@ -32,58 +32,50 @@ edit_init
home_dir=$(pwd)
echo "[home_dir: $home_dir]"
-MINICONDA_DIR="$HOME/miniconda3"
+# install miniconda
+echo "[Using clean Miniconda ins... | simplify install_travis.sh, always using a clean miniconda install
bump matplotlib to 1.4.0 for _LOCALE, numpy to 1.8.2
So this removes our testing of mpl 1.2.1 with numpy 1.7.1. We *still* test
elsewhere 1.7.1, and mpl 1.3.1 (with 1.8.2), so I think this is sufficient.
something changed in conda meta data to m... | https://api.github.com/repos/pandas-dev/pandas/pulls/15540 | 2017-03-01T17:59:02Z | 2017-03-01T19:17:54Z | null | 2017-03-01T21:48:41Z |
DEPR: deprecate some top-level non-used functions | diff --git a/doc/source/comparison_with_r.rst b/doc/source/comparison_with_r.rst
index aa0cbab4df10b..194e022e34c7c 100644
--- a/doc/source/comparison_with_r.rst
+++ b/doc/source/comparison_with_r.rst
@@ -206,14 +206,6 @@ of its first argument in its second:
s <- 0:4
match(s, c(2,4))
-The :meth:`~pandas.core.... | closes #13790
```
pd.pnow()
pd.groupby()
pd.match()
pd.Term
pd.Expr
```
remove info.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/15538 | 2017-03-01T16:26:41Z | 2017-03-03T10:12:22Z | 2017-03-03T10:12:21Z | 2017-03-03T10:12:22Z |
BLD: consolidate remaining extensions | diff --git a/Makefile b/Makefile
index 9a768932b8bea..90dcd16d955d6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-tseries: pandas/lib.pyx pandas/tslib.pyx pandas/hashtable.pyx
+tseries: pandas/_libs/lib.pyx pandas/_libs/tslib.pyx pandas/_libs/hashtable.pyx
python setup.py build_ext --inplace
.PHONY : devel... | moves extensions to ``pandas/libs``, which holds the extension code and also the generated builds (as its importable). ``pandas/src`` is now almost an includes dir, holding low-frequency changing code.
This consolidates the import process making it more uniform and consistent throughout the codebase.
Finally this... | https://api.github.com/repos/pandas-dev/pandas/pulls/15537 | 2017-03-01T15:42:58Z | 2017-03-07T23:22:57Z | null | 2017-03-07T23:23:46Z |
BUG: handle empty lists in json_normalize | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 54df7514a882d..42116e5562e1e 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -190,6 +190,7 @@ Other enhancements
- HTML table output skips ``colspan`` or ``rowspan`` attribute if equal to 1. (:iss... | - [x] closes #15534
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15535 | 2017-03-01T00:31:51Z | 2017-03-04T11:09:46Z | 2017-03-04T11:09:46Z | 2017-03-04T16:02:42Z |
BLD: rename some extensions | diff --git a/asv_bench/benchmarks/binary_ops.py b/asv_bench/benchmarks/binary_ops.py
index 53cb1cf465698..72700c3de282e 100644
--- a/asv_bench/benchmarks/binary_ops.py
+++ b/asv_bench/benchmarks/binary_ops.py
@@ -107,4 +107,4 @@ def setup(self):
self.s = Series(date_range('20010101', periods=self.N, freq='T', ... | xref #12588
This is a move (and deprecation of json/parser) of ``pandas.json``, ``pandas.parser``,
also moves some extensions into the main structure as appropriate
renames extensions to follow the pattern "libxxx" for consistency (as well as some renaming of the .pyx files themselves). In effect locates the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15532 | 2017-02-28T15:49:54Z | 2017-03-01T19:23:23Z | null | 2017-03-01T19:23:23Z |
ENH: support Styler in ExcelFormatter | diff --git a/.gitignore b/.gitignore
index c953020f59342..495429fcde429 100644
--- a/.gitignore
+++ b/.gitignore
@@ -103,4 +103,5 @@ doc/source/index.rst
doc/build/html/index.html
# Windows specific leftover:
doc/tmp.sv
+doc/source/styled.xlsx
doc/source/templates/
diff --git a/doc/source/_static/style-excel.png b/... | Pandas is a nice way to export data from Python to Excel. It even has an internal representation of Excel cell styling. It also has a data-driven framework for styling Pandas dataframes with CSS.
This PR connects those features together in a rudimentary and experimental way, for advanced users only. It allows `Ex... | https://api.github.com/repos/pandas-dev/pandas/pulls/15530 | 2017-02-28T11:17:19Z | 2017-04-20T01:02:13Z | null | 2017-04-28T00:17:04Z |
Bug:DataFrame index & column returned by corr & cov are the same (#14617) | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 9b4e6fbe3be10..262e69add3e59 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -590,7 +590,7 @@ Bug Fixes
- Bug in ``.rank()`` which incorrectly ranks ordered categories (:issue:`15420`)
-
+- Bu... |
- [x] closes #14617
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
This picks up PR #14667. Ensures that the column and index returned by `cov()` and `corr()` are not the same object. | https://api.github.com/repos/pandas-dev/pandas/pulls/15528 | 2017-02-28T05:45:18Z | 2017-02-28T14:28:38Z | null | 2017-12-20T02:01:24Z |
ENH: fill_value argument for shift | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ce3481fc17c5b..d3284428059f0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2827,9 +2827,9 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
downcast=downcast, **kwargs)
@Appen... | - [ ] closes #15486
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15527 | 2017-02-27T23:40:08Z | 2017-08-01T22:53:18Z | null | 2017-08-01T22:53:18Z |
DOC: Update contributing for test_fast, fix doc Windows build | diff --git a/doc/make.py b/doc/make.py
index d46be2611ce3d..8a6d4e5df24f0 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -202,8 +202,8 @@ def html():
raise SystemExit("Building HTML failed.")
try:
# remove stale file
- os.system('rm source/html-styling.html')
- os.system('cd build; r... | - Add `test_fast.bat` for Windows developers.
- Update `contributing.rst` to refer to `pytest-xdist` and reference fast testing scripts
- Update `contributing.rst` to delete references to `pep8radius`
- Fix `doc\make.py` to not spit out error message about `rm` on Windows by using `os.remove()`
No code changes!
| https://api.github.com/repos/pandas-dev/pandas/pulls/15523 | 2017-02-27T21:08:29Z | 2017-02-27T21:43:02Z | 2017-02-27T21:43:02Z | 2017-02-28T15:43:49Z |
API: add top-level melt function as method | diff --git a/doc/source/api.rst b/doc/source/api.rst
index dfeaf8e60feb1..24bad7d515305 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -933,6 +933,7 @@ Reshaping, sorting, transposing
DataFrame.swaplevel
DataFrame.stack
DataFrame.unstack
+ DataFrame.melt
DataFrame.T
DataFrame.to_panel... | - [x] (progress on?) #12640
- [x] pd.melt (DataFrame) (xref #14876)
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
This is continued from [PR#15513](https://github.com/pandas-dev/pandas/pull/15513). | https://api.github.com/repos/pandas-dev/pandas/pulls/15521 | 2017-02-27T16:43:23Z | 2017-04-04T17:50:58Z | null | 2017-04-05T07:12:09Z |
Rank categorical perf | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index cca652c68cf15..6955fe7260e8b 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -63,3 +63,49 @@ def time_value_counts_dropna(self):
def time_rendering(self):
str(se... | - [x] closes #15498
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew
| https://api.github.com/repos/pandas-dev/pandas/pulls/15518 | 2017-02-27T13:54:13Z | 2017-03-01T21:56:17Z | null | 2017-03-01T23:48:25Z |
TST: DataFrame.hist() does not get along with matplotlib.pyplot.tight_layout() | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index c94429b469641..f601e0558740f 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -626,7 +626,7 @@ Bug Fixes
-
+- Bug in ``DataFrame.hist`` where ``plt.tight_layout`` caused an ``AttributeError`` ... | - [ ] closes #9351
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15515 | 2017-02-27T00:30:03Z | 2017-02-27T20:26:01Z | 2017-02-27T20:26:01Z | 2017-02-27T20:43:53Z |
API: add top-level functions as method | - [ ] closes #12640
- [x] pd.crosstab (DataFrame)
- [x] pd.melt (DataFrame) (xref #14876)
- [x] pd.pivot_table (might need a new name as would be confusing with DataFrame.pivot)
- [x] pd.get_dummies (both)
- [x] pd.cut/qcut (only on Series)
- [ ] tests added / passed
- [ ] passes ``git diff u... | https://api.github.com/repos/pandas-dev/pandas/pulls/15513 | 2017-02-26T19:03:52Z | 2017-02-27T16:31:45Z | null | 2017-02-27T16:32:29Z | |
BUG: pivot_table over Categorical Columns | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 123fc346441cb..5e38fd3e38d96 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -632,3 +632,4 @@ Bug Fixes
- Bug in ``pd.melt()`` where passing a tuple value for ``value_vars`` caused a ``TypeError``... | - [x] closes #15193
- [x] tests added / passed
- [] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15511 | 2017-02-26T03:30:35Z | 2017-03-04T21:41:53Z | null | 2017-03-04T21:41:59Z |
PERF: faster unstacking | diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py
index a3ecfff52c794..b9346c497b9ef 100644
--- a/asv_bench/benchmarks/reshape.py
+++ b/asv_bench/benchmarks/reshape.py
@@ -59,6 +59,27 @@ def time_reshape_unstack_simple(self):
self.df.unstack(1)
+class reshape_unstack_large_sing... | closes #15503
so on a non-masked unstack (IOW, a fully product multi-index for example), this is now just
a simple reshape. On a masked unstack, it now will have a much lower O constant, as its in cython, and with release the GIL.
0.19.2 / master
```
In [2]: m = 100
...: n = 1000
...:
...: levels ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15510 | 2017-02-26T02:25:04Z | 2017-03-05T22:11:29Z | null | 2020-04-09T17:23:38Z |
DOC: Fix versionadded for cond in .where | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 85c7130ca2827..cdc37e00f70e0 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4910,6 +4910,7 @@ def _where(self, cond, other=np.nan, inplace=False, axis=None, level=None,
not change input %(klass)s (though pandas doesn't... | Per discussion in <a href="https://github.com/pandas-dev/pandas/pull/15414#discussion_r103089692">#15414 (comment) </a>.
@jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/15509 | 2017-02-25T22:20:06Z | 2017-02-25T22:26:07Z | 2017-02-25T22:26:07Z | 2017-02-25T22:26:47Z |
DOC: indexing with alignment | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ce3481fc17c5b..32d1df374224e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -196,6 +196,95 @@
merge_ordered
merge_asof
+
+pandas aligns index for setting a ``DataFrame`` from ``.loc``, ``.iloc`` and ``.ix``.
+
+Therefore, any attempt to... | Per request of issue #13950, added documentation clarifying alignment of DataFrame Objects and assignment of subset of one DataFrame to subset indices of another Dataframe.
Main issue was that if indices did not match, behavior of Dataframe would render rows of non-matched indices as NaN. This could be corrected by... | https://api.github.com/repos/pandas-dev/pandas/pulls/15508 | 2017-02-25T21:28:40Z | 2017-08-01T22:55:14Z | null | 2017-08-01T22:55:14Z |
BUG: Fix nansum overflow on Windows with bottleneck | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index c94429b469641..184733da787af 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -632,3 +632,5 @@ Bug Fixes
- Bug in ``pd.melt()`` where passing a tuple value for ``value_vars`` caused a ``TypeError``... | Bottleneck used in nansum produces overflow error on Windows. Temporary fix that could be undone once the error in bottleneck is fixed and released, to avoid platform specificity.
- [x] closes #15453
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/15507 | 2017-02-25T21:28:09Z | 2017-08-20T18:12:17Z | null | 2017-08-20T18:12:17Z |
Added FrozenList subtraction | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 8484ccd69a983..539352db1e623 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -126,6 +126,16 @@ We could naturally group by either the ``A`` or ``B`` columns or both:
grouped = df.groupby('A')
grouped = df.groupby(['A', 'B'])
... | - [x] closes #15475
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15506 | 2017-02-25T20:52:16Z | 2017-03-02T13:25:17Z | null | 2018-10-28T06:47:43Z |
DOC: fix doc build warnings | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index b6f015c15606d..f380070ddac79 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -965,6 +965,7 @@ The different indexing operation can potentially change the dtype of a ``Series`
res
.. ipython:: python
+
series2 = pd.Seri... | Bunch of small fixes that caused warnings/errors | https://api.github.com/repos/pandas-dev/pandas/pulls/15505 | 2017-02-25T20:35:27Z | 2017-02-25T21:38:57Z | 2017-02-25T21:38:57Z | 2017-02-25T21:38:57Z |
PERF: improve iloc list indexing | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 399f91fc60810..a34b9feb2b2fa 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -905,7 +905,7 @@ Performance Improvements
- Improved performance of ``drop_duplicates()`` on ``bool`` columns (:issue:`... | Did a profile of `iloc` using a list indexer, and noticed a few parts that seemingly can be optimized rather easily:
- convert early to array, and keep as array
- do not validate the input for out of bounds (this validation is also (and much faster) done in `np.take`)
- do not validate kwargs (for numpy compat) (-... | https://api.github.com/repos/pandas-dev/pandas/pulls/15504 | 2017-02-25T17:20:11Z | 2017-04-01T21:51:44Z | null | 2017-10-16T09:45:07Z |
DEPR: rename to _consolidate and create deprecation warning | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index fa24c973a7549..a0f26d20a186e 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -484,6 +484,7 @@ Deprecations
- ``DataFrame.astype()`` has deprecated the ``raise_on_error`` parameter in favor of ``er... | - [x] closes #15483
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Test output:
```
running: pytest --skip-slow --skip-network pandas
============================= test session starts ==============================
platform linux2 -- Python 2.7.1... | https://api.github.com/repos/pandas-dev/pandas/pulls/15501 | 2017-02-25T04:51:58Z | 2017-02-28T10:43:23Z | 2017-02-28T10:43:23Z | 2017-03-05T08:04:55Z |
DOC: Fix to docstrings of is_type_factory and is_instance_factory | diff --git a/pandas/core/config.py b/pandas/core/config.py
index 1c0eb60b8ec2f..39ed2f9545266 100644
--- a/pandas/core/config.py
+++ b/pandas/core/config.py
@@ -747,8 +747,8 @@ def is_type_factory(_type):
Returns
-------
- validator - a function of a single argument x , which returns the
- ... |
- [X] closes #15485
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15499 | 2017-02-24T15:07:46Z | 2017-02-24T19:53:44Z | 2017-02-24T19:53:43Z | 2017-02-25T04:40:24Z |
ENH: Native conversion from/to scipy.sparse matrix to SparseDataFrame | diff --git a/doc/source/api.rst b/doc/source/api.rst
index fbce64df84859..137ea520d82e5 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1031,6 +1031,13 @@ Serialization / IO / Conversion
DataFrame.to_string
DataFrame.to_clipboard
+Sparse methods
+~~~~~~~~~~~~~~
+.. autosummary::
+ :toctree: gen... | - [x] closes #4343
- [x] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15497 | 2017-02-24T10:28:38Z | 2017-03-10T14:36:34Z | null | 2018-10-23T16:34:39Z |
BUG: reindex_like after shape comparison | diff --git a/pandas/tests/test_testing.py b/pandas/tests/test_testing.py
index 07bfdc8fc9078..38c11e51b5bde 100644
--- a/pandas/tests/test_testing.py
+++ b/pandas/tests/test_testing.py
@@ -593,6 +593,17 @@ def _assert_equal(self, x, y, **kwargs):
def _assert_not_equal(self, a, b, **kwargs):
self.assertRai... | in assert_frame_equal, if check_like, the former code reindex_like before shape comparison.
for example:
if left.shape=(2,2), right.shpae=(2.0), after reindex_like, left.shape=(2,0),right.shape=(2,0),then the shape comparison will not find out that the two dataframes are different. For that, the assert_frame_equal wi... | https://api.github.com/repos/pandas-dev/pandas/pulls/15496 | 2017-02-24T08:27:50Z | 2017-02-27T19:50:03Z | null | 2017-02-27T19:50:46Z |
msgpack supports CategoricalIndex | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index fa24c973a7549..efcc6ee5577d7 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -627,3 +627,4 @@ Bug Fixes
- Bug in ``Series.replace`` and ``DataFrame.replace`` which failed on empty replacement dict... | - [x] closes #15487
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
This allows `read_msgpack` to read DataFrames with a categorical index. I'd assume that my testcase needs some improvement. Where can I find some information where and how to add the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15493 | 2017-02-23T21:33:50Z | 2017-02-24T20:41:47Z | null | 2017-02-24T20:41:47Z |
BUG: repr SparseDataFrame after setting a value | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index c94429b469641..3c161413c08c0 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -564,7 +564,7 @@ Bug Fixes
- Bug in ``to_sql`` when writing a DataFrame with numeric index names (:issue:`15404`).
-... | - [x] closes #15488
- [x] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15489 | 2017-02-23T18:41:06Z | 2017-03-07T13:28:16Z | null | 2017-03-07T13:28:23Z |
CLN: remove pandas/io/gbq.py and tests and replace with pandas-gbq | diff --git a/ci/requirements-2.7.pip b/ci/requirements-2.7.pip
index d16b932c8be4f..08240184f2934 100644
--- a/ci/requirements-2.7.pip
+++ b/ci/requirements-2.7.pip
@@ -1,8 +1,5 @@
blosc
-httplib2
-google-api-python-client==1.2
-python-gflags==2.0
-oauth2client==1.5.0
+pandas-gbq
pathlib
backports.lzma
py
diff --gi... | closes #15347
- going to have to migrate the docs as well, but need some work on pandas-gbq side for this.
- should change the tests to check a bit more (a more comprehensive check) | https://api.github.com/repos/pandas-dev/pandas/pulls/15484 | 2017-02-23T13:14:15Z | 2017-02-27T20:48:07Z | null | 2017-02-27T20:48:07Z |
Fixed LatexFormatter with MultIndex index | diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt
index 676da5c370041..24556bfd61398 100644
--- a/doc/source/whatsnew/v0.20.2.txt
+++ b/doc/source/whatsnew/v0.20.2.txt
@@ -44,7 +44,8 @@ Bug Fixes
- Bug in ``DataFrame.update()`` with ``overwrite=False`` and ``NaN values`` (:issue:`15593`)
... | Used `MultiIndex.formatter()` to correctly sparsify the index for `to_latex()`.
I was having an issue with printing Latex tables. This can be seen in the comparison of `to_string()` and `to_latex()` for the following table. Notice that the first row of `Vol8` should not be missing any labels because it marks a new l... | https://api.github.com/repos/pandas-dev/pandas/pulls/15479 | 2017-02-23T06:38:46Z | 2017-08-17T10:25:50Z | null | 2017-08-17T10:25:50Z |
BUG: GH #12223, GH #15262. Allow ints for names in MultiIndex | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index e65276fe51fe8..04423f7016c57 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -190,6 +190,7 @@ Other enhancements
- HTML table output skips ``colspan`` or ``rowspan`` attribute if equal to 1. (:iss... | - [X] closes #12223 and #15262
- [X] tests added / passed
- `pandas/tests/frame/test_combine_concat.py::TestDataFrameConcatCommon::test_concat_numerical_names`
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
See discussion in #10461 . Now if we internally know we need to cal... | https://api.github.com/repos/pandas-dev/pandas/pulls/15478 | 2017-02-22T22:25:10Z | 2017-02-24T20:18:20Z | null | 2017-02-28T15:43:50Z |
CLN: split off frozen (immutable) data structures into pandas/indexes/frozen.py | diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py
index 1cdf8afd563c6..240baa848adbc 100644
--- a/pandas/compat/pickle_compat.py
+++ b/pandas/compat/pickle_compat.py
@@ -52,12 +52,40 @@ def load_reduce(self):
stack[-1] = value
+
+# if classes are moved, provide compat here
+_class_lo... | should make it a bit easier to work with these; and no reason to be in pandas/core/base.py | https://api.github.com/repos/pandas-dev/pandas/pulls/15477 | 2017-02-22T19:15:18Z | 2017-02-24T12:14:43Z | null | 2017-02-24T12:14:43Z |
The roll_quantile function now throws an exception instead of causing a segfault | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 86f916bc0acfb..3b4f0695e8a36 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -504,7 +504,7 @@ Bug Fixes
- Bug in using ``__deepcopy__`` on empty NDFrame objects (:issue:`15370`)
- Bug in ``DataFr... | The roll_quantile function in window.pyx now raises a ValueError when the quantile value is not in [0.0, 1.0]. Also added tests for the new exception and extended test cases for the roll_quantile function.
- [x] closes #15463
- [x] tests added / passed
- [ ] does not pass ``git diff upstream/master | flake8 --d... | https://api.github.com/repos/pandas-dev/pandas/pulls/15476 | 2017-02-22T16:29:15Z | 2017-02-23T13:24:28Z | null | 2017-02-23T13:28:59Z |
PERF: fast non-unique indexing | diff --git a/pandas/index.pyx b/pandas/index.pyx
index 37fe7d90bebe0..2cb1243e9ca83 100644
--- a/pandas/index.pyx
+++ b/pandas/index.pyx
@@ -44,6 +44,190 @@ PyDateTime_IMPORT
cdef extern from "Python.h":
int PySlice_Check(object)
+@cython.boundscheck(False)
+@cython.wraparound(False)
+@cython.initializedcheck(F... | closes #15364
This is essentially the same pull request as https://github.com/pandas-dev/pandas/pull/15372 but now from a proper branch. | https://api.github.com/repos/pandas-dev/pandas/pulls/15468 | 2017-02-21T10:15:44Z | 2017-02-25T00:38:02Z | null | 2017-02-25T00:42:28Z |
GH6322, Bug on reset_index for a MultiIndex of all NaNs | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 40b068547c360..cd52c2555df0e 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -591,3 +591,4 @@ Bug Fixes
- Bug in ``Series.replace`` and ``DataFrame.replace`` which failed on empty replacement dict... | The reset_index function fails for a MultiIndex if at
least one column of the index is all NaN.
- [x] closes #6322
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
As per the comment in the issue, I tried other solutions such as putting the `take` ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15466 | 2017-02-21T04:13:48Z | 2017-02-21T13:38:57Z | null | 2017-02-21T13:41:32Z |
TST: remove 4 builds from travis that are on circleci | diff --git a/.travis.yml b/.travis.yml
index bb96ab210c088..97bf881f3b6fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -91,21 +91,6 @@ matrix:
packages:
- libatlas-base-dev
- gfortran
-# In allow_failures
- - python: 2.7
- env:
- - PYTHON_VERSION=2.7
- - JOB_NA... | https://api.github.com/repos/pandas-dev/pandas/pulls/15465 | 2017-02-21T02:54:08Z | 2017-02-22T15:01:49Z | 2017-02-22T15:01:49Z | 2017-02-22T22:14:41Z | |
CI: add circle ci support | diff --git a/.travis.yml b/.travis.yml
index 6245213cec06f..bb96ab210c088 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -315,7 +315,7 @@ install:
before_script:
- source activate pandas && pip install codecov
- - ci/install_db.sh
+ - ci/install_db_travis.sh
script:
- echo "script start"
diff --git a/ci/in... | this adds support for using CircleCI; configured to put 4 of our builds (3.4, 3.4-slow, 2.7 compat, and 3.5 ascii), they are still on Travis ATM. They are built/tested simultaneously on CircleCI (as we get 4 containers for open-source).
CircleCI is a PITA. It has parallelism, but no build-matrix. So this took a whil... | https://api.github.com/repos/pandas-dev/pandas/pulls/15464 | 2017-02-21T00:59:03Z | 2017-02-21T02:39:52Z | null | 2017-02-21T22:32:37Z |
BUG: fix SparseSeries reindex by using Series implementation | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index c94429b469641..f0ee49b32d70c 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -542,6 +542,10 @@ Bug Fixes
- Bug in ``Rolling.quantile`` function that caused a segmentation fault when called with a ... | - [x] closes #15447
- [x] tests added / passed
- [x] passes ``git diff master | flake8 --diff``
- [x] whatsnew entry
I abunded a bit with the tests for ``.reindex()`` (for ``.loc`` there were already quite a bit).
This is completely independent from the approach in #15448 , which also made sense but on whi... | https://api.github.com/repos/pandas-dev/pandas/pulls/15461 | 2017-02-20T18:37:34Z | 2017-03-07T21:17:20Z | null | 2017-03-07T23:19:52Z |
ENH: str.replace accepts a compiled expression | diff --git a/doc/source/text.rst b/doc/source/text.rst
index 52e05c5d511bc..2b2520cb6100f 100644
--- a/doc/source/text.rst
+++ b/doc/source/text.rst
@@ -164,6 +164,27 @@ positional argument (a regex object) and return a string.
repl = lambda m: m.group('two').swapcase()
pd.Series(['Foo Bar Baz', np.nan]).str.re... | .str.replace now accepts a compiled regular expression.
See #15446
- [x] closes #15446
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15456 | 2017-02-19T22:20:09Z | 2017-03-05T11:23:58Z | 2017-03-05T11:23:57Z | 2017-03-05T22:44:45Z |
DOC: DataFrame.get_value | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 3ebdf72a5cde9..b9df6392d227c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1856,17 +1856,58 @@ def _unpickle_matrix_compat(self, state): # pragma: no cover
def get_value(self, index, col, takeable=False):
"""
- Qui... | Basic examples for working with DataFrame's ``get_value`` method. I do not understand how the ``takeable`` option is supposed to work. If someone can explain it to me, I'd be happy to add an example for that as well. | https://api.github.com/repos/pandas-dev/pandas/pulls/15455 | 2017-02-18T20:26:02Z | 2017-05-13T21:37:09Z | null | 2017-05-13T21:37:09Z |
DOC: Link CONTRIBUTING.md to contributing.rst | diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 7898822e0e11d..95729f845ff5c 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1,515 +1,24 @@
Contributing to pandas
======================
-Where to start?
----------------
-
-All contributions, bug reports, bug fixes, docume... | Cuts down `CONTRIBUTING.md` to summarize `contributing.rst` and links to relevant sections.
Closes #15349. | https://api.github.com/repos/pandas-dev/pandas/pulls/15451 | 2017-02-18T04:00:31Z | 2017-02-21T22:26:04Z | 2017-02-21T22:26:04Z | 2017-02-21T22:26:13Z |
DOC: correct rpy2 examples (GH15142) | diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst
index b5d699cad69d5..88634d7f75c63 100644
--- a/doc/source/r_interface.rst
+++ b/doc/source/r_interface.rst
@@ -41,15 +41,17 @@ In the remainder of this page, a few examples of explicit conversion is given. T
Transferring R data sets into Python
---... | To fix the current doc build errors (https://github.com/pandas-dev/pandas/pull/15142#issuecomment-274346255) | https://api.github.com/repos/pandas-dev/pandas/pulls/15450 | 2017-02-17T22:51:06Z | 2017-02-18T10:52:02Z | 2017-02-18T10:52:02Z | 2018-04-10T11:35:37Z |
Week Start/End Resamping: WS/WE frequencies | diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py
index 957a934d13f09..7b5003fe424ad 100644
--- a/pandas/tseries/frequencies.py
+++ b/pandas/tseries/frequencies.py
@@ -361,8 +361,8 @@ def _get_freq_str(base, mult=1):
from pandas.tseries.offsets import (Nano, Micro, Milli, Second, # noqa
-... | This is just some initial work to start the conversation.
- [ ] closes #7049
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15449 | 2017-02-17T22:43:49Z | 2017-05-13T21:37:43Z | null | 2019-04-29T17:28:32Z |
BUG: Trivial fix to #15447 | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 66510a7708e64..72c878dd88612 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1525,7 +1525,7 @@ def _getitem_axis(self, key, axis=0):
# possibly convert a list-like into a nested tuple
# but don't conver... | - [x] closes #15447
- [ ] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
This is not really meant for merging because I don't understand that piece code and don't have time to understand it. But if you want to merge it anyway I can add a test and a whatsnew... | https://api.github.com/repos/pandas-dev/pandas/pulls/15448 | 2017-02-17T22:20:36Z | 2017-02-17T22:32:24Z | null | 2017-02-21T01:01:29Z |
BUG: testing on windows | diff --git a/appveyor.yml b/appveyor.yml
index d96e1dfcf76de..1c14698430996 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -78,21 +78,19 @@ install:
# this is now the downloaded conda...
- cmd: conda info -a
- # build em using the local source checkout in the correct windows env
- - cmd: '%CMD_IN_ENV% conda ... | - we are passing builds which actually have an error
- fix the small dtype issue | https://api.github.com/repos/pandas-dev/pandas/pulls/15445 | 2017-02-17T20:17:43Z | 2017-02-18T17:05:35Z | null | 2020-04-01T20:21:34Z |
Add __copy__ and __deepcopy__ to NDFrame | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 26b9a880dd2c7..76fbb9884753d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3161,6 +3161,14 @@ def copy(self, deep=True):
data = self._data.copy(deep=deep)
return self._constructor(data).__finalize__(self)
+ ... | - [ ] closes #15370
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15444 | 2017-02-17T20:05:32Z | 2017-02-20T19:24:11Z | null | 2017-02-20T19:24:40Z |
BUG: rolling not accepting Timedelta-like window args (#15440) | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 8e48dbbb083e8..ae4a3d3c3d97f 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -551,6 +551,7 @@ Bug Fixes
- Bug in ``.to_json()`` causing single byte ascii characters to be expanded to four byte uni... | - [x] closes #15440
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Allow `rolling()` to accept `pd.Timedelta` or `datetime.timedelta` as a `window` argument. | https://api.github.com/repos/pandas-dev/pandas/pulls/15443 | 2017-02-17T20:05:22Z | 2017-02-18T12:08:54Z | 2017-02-18T12:08:54Z | 2017-12-20T02:04:10Z |
BUG: Categorical.unique() preserves categories | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 03ff62568b405..59f55914ea4d3 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -492,6 +492,43 @@ def time_groupby_sum(self):
self.df.groupby(['a'])['b'].sum()
+class groupby_categorical(... | - [X] closes #13179
- [x] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15439 | 2017-02-17T16:06:45Z | 2017-02-22T18:50:40Z | null | 2017-02-22T18:55:31Z |
BUG: pd.cut with bins=1 and input all 0s | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index ece9ff4a1adff..8dbc5673f1bcd 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -670,8 +670,8 @@ Bug Fixes
- Bug in ``DataFrame.loc`` with indexing a ``MultiIndex`` with a ``Series`` indexer (:issue:... | The special case of running pd.cut() qith bins=1 an input containing all
0s raises a ValueError
- [x] closes #15428
closes #15431
- [X] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15437 | 2017-02-17T14:35:00Z | 2017-03-08T13:43:24Z | null | 2017-03-08T13:51:17Z |
Documents touch-up for DataFrame.to_excel() freeze_panes option | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 2d6ddf98437e5..55ef2c09d43e4 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2832,8 +2832,8 @@ Style and Formatting
The look and feel of Excel worksheets created from pandas can be modified using the following parameters on the ``DataFrame``'s ``to_ex... | Follow-up to @jorisvandenbossche 's comments on pull request #15291.
Only doc strings and external documentation modified. | https://api.github.com/repos/pandas-dev/pandas/pulls/15436 | 2017-02-17T02:54:35Z | 2017-02-17T08:17:39Z | 2017-02-17T08:17:39Z | 2017-02-17T08:17:39Z |
BUG: GH15426 timezone lost in groupby-agg with cython functions | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 123fc346441cb..47cf789679617 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -622,6 +622,7 @@ Bug Fixes
- Bug in ``DataFrame.to_stata()`` and ``StataWriter`` which produces incorrectly formatted... | - [x] closes #15426
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15433 | 2017-02-16T23:19:19Z | 2017-02-27T15:46:31Z | null | 2017-02-27T15:46:38Z |
BUG: GH15429 transform result of timedelta from datetime | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index be487e165c602..9298d4b058d98 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -626,6 +626,7 @@ Bug Fixes
- Bug in ``.read_csv()`` with ``parse_dates`` when multiline headers are specified (:iss... | The transform() operation needs to return a like-indexed. To facilitate this, transform starts with a copy of the original series. Then, after the computation for each group, sets the appropriate elements of the copied series equal to the result. At that point is does a type comparison, and discovers that the timedelta... | https://api.github.com/repos/pandas-dev/pandas/pulls/15430 | 2017-02-16T22:13:26Z | 2017-02-27T21:38:08Z | null | 2017-02-27T21:38:46Z |
TST: remove yielding tests from test_msgpacks.py | diff --git a/pandas/tests/io/test_packers.py b/pandas/tests/io/test_packers.py
index 911cd8164571d..097c03937ca68 100644
--- a/pandas/tests/io/test_packers.py
+++ b/pandas/tests/io/test_packers.py
@@ -41,6 +41,22 @@
_ZLIB_INSTALLED = True
+@pytest.fixture(scope='module')
+def current_packers_data():
+ # our... | xref #15341 | https://api.github.com/repos/pandas-dev/pandas/pulls/15427 | 2017-02-16T19:17:40Z | 2017-02-17T14:51:47Z | 2017-02-17T14:51:47Z | 2017-02-17T14:51:47Z |
Mi indexing | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 8e48dbbb083e8..afadcb31a8885 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -501,7 +501,11 @@ Bug Fixes
- Bug in ``pd.tools.hashing.hash_pandas_object()`` in which hashing of categoricals depende... | - [x] closes #15424
- [x] closes #15434
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
This also fixes indexing with a ``DataFrame``, which was actually not mentioned in #15424 (but it's a twoliner) | https://api.github.com/repos/pandas-dev/pandas/pulls/15425 | 2017-02-16T15:44:48Z | 2017-02-20T14:44:02Z | null | 2017-02-21T01:00:44Z |
BUG: to_sql convert index name to string (#15404) | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 55e145b493dd9..bace43e785dff 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -750,7 +750,8 @@ def _get_column_names_and_types(self, dtype_mapper):
for i, idx_label in enumerate(self.index):
idx_type = dtype_mapper(
... | …rs with numeric index name - needs conversion to string
- [x] closes #15404
- [x] tests passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15423 | 2017-02-16T14:58:28Z | 2017-02-17T13:09:21Z | 2017-02-17T13:09:21Z | 2017-02-17T13:16:17Z |
Rank categorical | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index fa24c973a7549..0b501adba5039 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -578,6 +578,7 @@ Bug Fixes
+- Bug in ``.rank()`` which incorrectly ranks ordered categories (:issue:`15420`)
... | check for categorical, and then pass the underlying integer codes.
- [ ] closes #15420
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15422 | 2017-02-16T14:05:04Z | 2017-02-24T19:57:32Z | null | 2017-02-25T10:55:45Z |
Ensure the right values are set in SeriesGroupBy.nunique | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 4708abe4d592e..868ae003b8cd5 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -585,3 +585,5 @@ Bug Fixes
- Bug in ``Series.replace`` and ``DataFrame.replace`` which failed on empty replacement dict... | We only need to use the group boundaries as the index for `res` so that
the dimensions match those of `out`. Fixes #13453
- [x] closes #13453
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15418 | 2017-02-15T23:24:23Z | 2017-02-16T14:28:48Z | null | 2017-02-16T14:29:05Z |
TST: convert yield based test_pickle.py to parametrized to remove warnings | diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py
index 5445c506b050c..1e3816c1556f6 100644
--- a/pandas/tests/io/test_pickle.py
+++ b/pandas/tests/io/test_pickle.py
@@ -1,6 +1,17 @@
# pylint: disable=E1101,E1103,W0232
-""" manage legacy pickle tests """
+"""
+manage legacy pickle tests
+
... | xref #15341
| https://api.github.com/repos/pandas-dev/pandas/pulls/15416 | 2017-02-15T21:35:02Z | 2017-02-16T14:12:51Z | null | 2017-02-16T14:12:51Z |
BLD: use latest conda version with latest miniconda installer on appveyor | diff --git a/appveyor.yml b/appveyor.yml
index 42c3be13af809..d96e1dfcf76de 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -18,19 +18,19 @@ environment:
matrix:
- - CONDA_ROOT: "C:\\Miniconda3.5_64"
+ - CONDA_ROOT: "C:\\Miniconda3_64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: ... | change 3.6 build to use numpy=1.12 & add back xlwt (was not on defaults for a while) | https://api.github.com/repos/pandas-dev/pandas/pulls/15415 | 2017-02-15T19:01:20Z | 2017-02-15T20:21:24Z | null | 2017-02-15T20:21:24Z |
BUG: Accept Generic Array-Like for .where | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index fa24c973a7549..2d70d79509e77 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -548,6 +548,7 @@ Bug Fixes
+- Bug in ``Series.where()`` and ``DataFrame.where()`` where array-like conditionals we... | Setup:
~~~python
>>> s = Series([1, 2, 3])
>>> cond = [False, True, True]
~~~
Before:
~~~python
>>> s.where(cond)
...
ValueError: where requires an ndarray like object for its condition
~~~
After:
~~~python
>>> s.where(cond)
0 NaN
1 2.0
2 3.0
dtype: float64
~~~
Note that `Index` objects ca... | https://api.github.com/repos/pandas-dev/pandas/pulls/15414 | 2017-02-15T18:36:17Z | 2017-02-24T20:05:19Z | null | 2017-02-25T22:55:28Z |
STYLE: flake8 upgraded to 3.3 on conda | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index bfd770d7af2c6..4a9a2647ece0f 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -67,6 +67,7 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
return np.array(arr, *args, **kwargs)
+
_... | fixes for E305, 2 blank lines after a class definition
| https://api.github.com/repos/pandas-dev/pandas/pulls/15412 | 2017-02-15T17:39:59Z | 2017-02-15T17:59:12Z | 2017-02-15T17:59:12Z | 2017-02-15T17:59:12Z |
DOC: use shared_docs for Index.get_indexer, get_indexer_non_unique | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index bfd770d7af2c6..4a9a2647ece0f 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -67,6 +67,7 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
return np.array(arr, *args, **kwargs)
+
_... | https://api.github.com/repos/pandas-dev/pandas/pulls/15411 | 2017-02-15T16:52:48Z | 2017-02-15T18:00:37Z | 2017-02-15T18:00:37Z | 2017-02-15T18:00:37Z | |
TST: print skipped tests files | diff --git a/.travis.yml b/.travis.yml
index 6b90e49b336b2..6245213cec06f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -332,5 +332,6 @@ after_script:
- echo "after_script start"
- ci/install_test.sh
- source activate pandas && python -c "import pandas; pandas.show_versions();"
- - ci/print_skipped.py /tmp/py... | xref #15341 | https://api.github.com/repos/pandas-dev/pandas/pulls/15408 | 2017-02-15T13:31:47Z | 2017-02-15T15:23:55Z | null | 2017-02-15T15:23:55Z |
TST: skip gbq test again / fix parsers/test_network url | diff --git a/pandas/conftest.py b/pandas/conftest.py
index b3683de3a173b..623feb99e9cdc 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -17,5 +17,5 @@ def pytest_runtest_setup(item):
if 'slow' not in item.keywords and item.config.getoption("--only-slow"):
pytest.skip("skipping due to --only-sl... | https://api.github.com/repos/pandas-dev/pandas/pulls/15407 | 2017-02-15T01:23:34Z | 2017-02-15T02:46:48Z | null | 2017-02-16T04:26:47Z | |
TST: Parametrize simple yield tests | diff --git a/ci/script_multi.sh b/ci/script_multi.sh
index f5fbcbbc12f83..41f71fd21f63f 100755
--- a/ci/script_multi.sh
+++ b/ci/script_multi.sh
@@ -17,6 +17,12 @@ if [ -n "$LOCALE_OVERRIDE" ]; then
python -c "$pycmd"
fi
+# Workaround for pytest-xdist flaky collection order
+# https://github.com/pytest-dev/pyte... | Simple `yield` tests are those that do `for x in y: yield test, x` where `y` is some constant list/tuple. It also requires the tests to be in a simple class that doesn't subclass `unittest`'s classes (because parametrization doesn't work there).
There are still `yield` tests in
* frame/test_query_eval.py
* io/t... | https://api.github.com/repos/pandas-dev/pandas/pulls/15406 | 2017-02-15T00:30:18Z | 2017-02-16T14:17:52Z | null | 2017-02-20T14:46:28Z |
Don't add rowspan/colspan if it's 1. | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 75a8752c9bfa4..a639e1bf60614 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -154,6 +154,7 @@ Other enhancements
- ``pandas.tools.hashing`` has gained a ``hash_tuples`` routine, and ``hash_pandas_... | Just a small thing I noticed in a [footnote here](https://danluu.com/web-bloat/#appendix-irony). Probably can't do much about the extra classes, but rowspan/colspan seem like easy fixes to save a few bytes per row/col and it's already done in the other code path.
Don't really know if this is major enough to deserve ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15403 | 2017-02-14T22:28:13Z | 2017-02-17T15:08:20Z | null | 2017-02-18T08:42:54Z |
CLN: create core/sorting.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index aa03bfb9a54b9..16f8d4658dc20 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3141,7 +3141,7 @@ def duplicated(self, subset=None, keep='first'):
-------
duplicated : Series
"""
- from pandas.core.groupby imp... | just a small reorg to put sorting / grouping utilities into a separate area | https://api.github.com/repos/pandas-dev/pandas/pulls/15402 | 2017-02-14T21:46:38Z | 2017-02-14T22:36:51Z | null | 2017-02-14T22:36:51Z |
Catch SystemError thrown in 3.6 | diff --git a/pandas/tseries/index.py b/pandas/tseries/index.py
index 6cbb696783e09..eaaac83ecc5af 100644
--- a/pandas/tseries/index.py
+++ b/pandas/tseries/index.py
@@ -1416,7 +1416,7 @@ def get_loc(self, key, method=None, tolerance=None):
try:
stamp = Timestamp(key, tz=self.tz)
... | Trying to set an attribute on a non-empty timeseries now on 3.6
causes an SystemError here, which it didn't used to, which breaks
things.
In [28]: s = pandas.Series()
In [29]: s.test = 'test'
In [30]: s = pandas.Series([0] * 100, pandas.to_datetime(list(range(100)), unit='s'))
In [31]: s
Out[31]:
1970-0... | https://api.github.com/repos/pandas-dev/pandas/pulls/15399 | 2017-02-14T17:34:56Z | 2017-02-16T14:30:58Z | null | 2017-02-16T14:30:58Z |
BUG: Concat with inner join and empty DataFrame | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index aa620bce0df59..ec8e6653f34a6 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -570,7 +570,7 @@ Bug Fixes
- Bug in ``pd.read_csv()`` with ``float_precision='round_trip'`` which caused a segfault whe... | - [x] closes #15328
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15397 | 2017-02-14T17:19:59Z | 2017-02-16T17:41:27Z | null | 2017-02-16T18:59:52Z |
Numexpr 2.4.6 | diff --git a/ci/requirements-3.4_SLOW.run b/ci/requirements-3.4_SLOW.run
index 39018439a1223..90156f62c6e71 100644
--- a/ci/requirements-3.4_SLOW.run
+++ b/ci/requirements-3.4_SLOW.run
@@ -9,7 +9,7 @@ html5lib
patsy
beautiful-soup
scipy
-numexpr=2.4.4
+numexpr=2.4.6
pytables
matplotlib
lxml
diff --git a/doc/sourc... | - [x] closes #15213
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
This addresses #15213. Actually, the recommended version for me is 2.6.2, but I understand that this is too recent still. | https://api.github.com/repos/pandas-dev/pandas/pulls/15383 | 2017-02-13T10:52:43Z | 2017-02-15T15:21:24Z | null | 2017-02-15T15:21:24Z |
Require numexpr 2.6.2 | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index aa620bce0df59..edad63f9de9ce 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -1,12 +1,16 @@
.. _whatsnew_0200:
-v0.20.0 (????, 2016)
+v0.20.0 (????, 2017)
--------------------
This is a majo... | - [x] closes #15213
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
This addresses #15213. Numexpr 2.6.2 has [wheels for all major platforms already](https://pypi.python.org/pypi/numexpr), and although conda is still at 2.6.1, the [fixes in 2.6.2](https://github.com/pydata/numexp... | https://api.github.com/repos/pandas-dev/pandas/pulls/15382 | 2017-02-13T09:57:03Z | 2017-02-13T11:00:28Z | null | 2023-05-11T01:15:06Z |
TST: Fix gbq integration tests. gbq._Dataset.dataset() would not return full results | diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py
index 169a2b1df9b4c..0ffb6b4bf8c05 100644
--- a/pandas/io/gbq.py
+++ b/pandas/io/gbq.py
@@ -1056,21 +1056,32 @@ def datasets(self):
List of datasets under the specific project
"""
- try:
- list_dataset_response = self.service.dat... | - [ x ] passes ``git diff upstream/master | flake8 --diff``
This PR resolves an issue where `gbq._Dataset.datasets()` would not return all datasets under a Google BigQuery project.
If `'nextPageToken'` is populated, then another `datasets().list()` request should be sent with `'pageToken'` set to collect more ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15381 | 2017-02-13T05:32:42Z | 2017-02-14T13:30:41Z | null | 2017-02-14T13:30:51Z |
BUG: Parse two date columns broken in read_csv with multiple headers | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 9f86c777c665d..eaafb5cd4a552 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -574,6 +574,7 @@ Bug Fixes
+- Bug in ``.read_csv()`` which caused ``parse_dates={'datetime': [0, 1]}`` to fail wit... | Fix for GH15376
In `io/parsers/_try_convert_dates()` when selecting columns based on a
column index from a set of columns with multi-level names, the column
`name` was converted to a string. This appears to be a bug since the
`name` was a tuple before the conversion. This causes problems
downstream when there ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15378 | 2017-02-12T17:19:19Z | 2017-02-27T14:45:45Z | null | 2017-02-27T14:47:27Z |
Typo | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 8833d73cb0a84..b6f015c15606d 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -59,7 +59,7 @@ Creating a MultiIndex (hierarchical index) object
The ``MultiIndex`` object is the hierarchical analogue of the standard
``Index`` ob... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15377 | 2017-02-12T17:12:38Z | 2017-02-12T17:37:14Z | 2017-02-12T17:37:14Z | 2017-02-12T17:37:16Z |
CLN: remove pandas/io/auth.py, from ga.py (now removed) | diff --git a/pandas/io/auth.py b/pandas/io/auth.py
deleted file mode 100644
index e42df6a7309b7..0000000000000
--- a/pandas/io/auth.py
+++ /dev/null
@@ -1,126 +0,0 @@
-from __future__ import print_function
-# see LICENSES directory for copyright and license
-import os
-import sys
-import logging
-
-import httplib2
-
-i... | https://api.github.com/repos/pandas-dev/pandas/pulls/15374 | 2017-02-12T01:25:15Z | 2017-02-12T02:53:45Z | 2017-02-12T02:53:45Z | 2017-02-12T02:53:45Z | |
BUG: Avoid trying to graft missing examples directory | diff --git a/MANIFEST.in b/MANIFEST.in
index 2d26fbfd6adaf..b7a7e6039ac9a 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -7,7 +7,6 @@ include setup.py
graft doc
prune doc/build
-graft examples
graft pandas
global-exclude *.so
| The examples directory was removed by #9391. Remove it from the MANIFEST too. | https://api.github.com/repos/pandas-dev/pandas/pulls/15373 | 2017-02-12T00:51:00Z | 2017-02-12T02:21:57Z | 2017-02-12T02:21:57Z | 2017-02-14T13:04:51Z |
get_indexer_non_unique for orderable indexes | diff --git a/.travis.yml b/.travis.yml
index 2ff5d508d0371..6245213cec06f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -320,7 +320,8 @@ before_script:
script:
- echo "script start"
- ci/run_build_docs.sh
- - ci/script.sh
+ - ci/script_single.sh
+ - ci/script_multi.sh
- ci/lint.sh
- echo "script done"
... | Tackles the performance issue raised at #15364 by looping simultaneously over source and target indexes, avoiding dictionary and set lookups in for/while loops.
I guess it can be further improved in terms of static typing. For example, if both source and target indexes are simple C types, the function `_indexer_non_... | https://api.github.com/repos/pandas-dev/pandas/pulls/15372 | 2017-02-12T00:27:45Z | 2017-02-21T12:56:50Z | null | 2017-02-21T12:56:50Z |
TST: consolidate remaining tests under pandas.tests | diff --git a/pandas/api/tests/__init__.py b/pandas/tests/api/__init__.py
similarity index 100%
rename from pandas/api/tests/__init__.py
rename to pandas/tests/api/__init__.py
diff --git a/pandas/api/tests/test_api.py b/pandas/tests/api/test_api.py
similarity index 99%
rename from pandas/api/tests/test_api.py
rename to ... | built on #15368
move all remaining tests so that ALL tests are now under pandas/tests | https://api.github.com/repos/pandas-dev/pandas/pulls/15371 | 2017-02-11T22:54:30Z | 2017-02-12T14:52:02Z | null | 2017-02-12T14:52:02Z |
Test: use xdist | diff --git a/.travis.yml b/.travis.yml
index 2ff5d508d0371..6b90e49b336b2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -320,7 +320,8 @@ before_script:
script:
- echo "script start"
- ci/run_build_docs.sh
- - ci/script.sh
+ - ci/script_single.sh
+ - ci/script_multi.sh
- ci/lint.sh
- echo "script done"
... | on top of #15369
xref #15341
``pytest pandas --skip-slow --skip-network -m "not single" -n 4``
```
(pandas) bash-3.2$ ./test_fast.sh
==================================================================================================== test session starts ========================================================... | https://api.github.com/repos/pandas-dev/pandas/pulls/15369 | 2017-02-11T21:48:16Z | 2017-02-12T16:49:47Z | null | 2017-02-12T16:52:19Z |
TST: remove nose | diff --git a/.travis.yml b/.travis.yml
index b38c99e3a5be9..2ff5d508d0371 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -331,5 +331,5 @@ after_script:
- echo "after_script start"
- ci/install_test.sh
- source activate pandas && python -c "import pandas; pandas.show_versions();"
- - ci/print_skipped.py /tmp/no... | TST: raise nose.SkipTest -> pytest.skip
TST: remove KnownFailure (unused), should be replaced by pytest.xfail anyhow
xref #15341
| https://api.github.com/repos/pandas-dev/pandas/pulls/15368 | 2017-02-11T16:59:01Z | 2017-02-11T23:56:47Z | null | 2017-02-11T23:56:47Z |
TST: split up tests/indexing/test_indexing a bit | diff --git a/pandas/tests/indexing/common.py b/pandas/tests/indexing/common.py
new file mode 100644
index 0000000000000..73167393cf35d
--- /dev/null
+++ b/pandas/tests/indexing/common.py
@@ -0,0 +1,5 @@
+""" common utilities """
+
+
+def _mklbl(prefix, n):
+ return ["%s%s" % (prefix, i) for i in range(n)]
diff --git... | https://api.github.com/repos/pandas-dev/pandas/pulls/15367 | 2017-02-11T16:54:34Z | 2017-02-11T21:06:24Z | null | 2017-02-11T21:06:24Z | |
COMPAT: numpy master compat for groupby-filter | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index a228861270aea..66694798f341b 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -3805,7 +3805,8 @@ def filter(self, func, dropna=True, *args, **kwargs): # noqa
res = func(group, *args, **kwargs)
try:
- ... | xref https://github.com/numpy/numpy/pull/8591
I think we were relying on some sketchy behavior
https://travis-ci.org/pandas-dev/pandas/jobs/200459486
in ``pandas/core/groupby.py``
```
for name, group in gen:
object.__setattr__(group, 'name', name)
res = func(group, *ar... | https://api.github.com/repos/pandas-dev/pandas/pulls/15365 | 2017-02-10T21:16:02Z | 2017-02-12T18:55:02Z | null | 2017-02-12T18:55:02Z |
BUG: Fix #15344 by backporting ujson usage of PEP 393 API | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 9eae2b7a33923..5736d7269cc24 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -520,4 +520,7 @@ Bug Fixes
- Bug in ``DataFrame.boxplot`` where ``fontsize`` was not applied to the tick labels on bo... | Make use of the PEP 393 API to avoid expanding single byte ascii characters into four byte unicode characters when encoding objects to json.
- [ ] closes #15344
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15360 | 2017-02-09T19:38:28Z | 2017-02-10T14:12:05Z | null | 2017-02-10T21:36:15Z |
TST: Remaining tseries tests reorg (gh14854) | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 9eae2b7a33923..1d652bc35ae01 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -371,6 +371,7 @@ Other API Changes
- ``pandas.api.types.is_datetime64_ns_dtype`` will now report ``True`` on a tz-aware... | - [x] closes #14854
- [x] tests reorg
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew: Moved ```pandas/tseries/tests/*``` to ```pandas/tests/tseries/*```
| https://api.github.com/repos/pandas-dev/pandas/pulls/15359 | 2017-02-09T19:05:31Z | 2017-02-09T23:40:59Z | null | 2017-02-09T23:40:59Z |
CLN: strip out and form tools/concat.py from tools/merge.py | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 9eae2b7a33923..2279d0464a5c7 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -385,7 +385,7 @@ Deprecations
- ``TimedeltaIndex.searchsorted()``, ``DatetimeIndex.searchsorted()``, and ``PeriodIndex.... | will facilitate some changes in ``tools/merge`` w.r.t. #15321, plus these are independent anyhow. | https://api.github.com/repos/pandas-dev/pandas/pulls/15358 | 2017-02-09T18:22:18Z | 2017-02-09T22:37:10Z | null | 2017-02-09T22:37:10Z |
DEPR: remove statsmodels as a dependency | diff --git a/ci/requirements-2.7.pip b/ci/requirements-2.7.pip
index d7266fe88fb32..d16b932c8be4f 100644
--- a/ci/requirements-2.7.pip
+++ b/ci/requirements-2.7.pip
@@ -1,4 +1,3 @@
-statsmodels
blosc
httplib2
google-api-python-client==1.2
diff --git a/ci/requirements-2.7_COMPAT.run b/ci/requirements-2.7_COMPAT.run
i... | remove pd.ols, pd.fama_macbeth from top-level namespace
xref #11898
closes https://github.com/pandas-dev/pandas2/issues/26
previously deprecated in 0.18.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/15353 | 2017-02-09T01:12:58Z | 2017-02-09T16:44:28Z | null | 2017-02-09T16:44:28Z |
TST: Period tests reorg (gh14854) | diff --git a/pandas/tests/frame/test_period.py b/pandas/tests/frame/test_period.py
new file mode 100644
index 0000000000000..d533f2953de76
--- /dev/null
+++ b/pandas/tests/frame/test_period.py
@@ -0,0 +1,139 @@
+import numpy as np
+from numpy.random import randn
+from datetime import timedelta
+
+import pandas as pd
+i... | - [x] Almost completes #14854
- [x] tests reorg
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew: Reorganization of ```Period``` tests.
| https://api.github.com/repos/pandas-dev/pandas/pulls/15352 | 2017-02-08T22:08:48Z | 2017-02-09T15:29:42Z | null | 2017-02-09T17:42:57Z |
BUG: Fixed handling of non-list value_vars in melt | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 5fbce3d2594a9..229c87b464334 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -575,6 +575,5 @@ Bug Fixes
- Bug in ``DataFrame.boxplot`` where ``fontsize`` was not applied to the tick labels on bo... | The `value_vars` argument of `melt` is now cast to `list` like the `id_vars` argument. This works for tuples, lists, ndarrays, and scalars.
- [x] closes #15348
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15351 | 2017-02-08T18:27:15Z | 2017-02-10T19:51:05Z | null | 2017-02-10T19:51:12Z |
Small documentation fix for MultiIndex.sortlevel | diff --git a/pandas/indexes/multi.py b/pandas/indexes/multi.py
index d2469cf1a3eed..9ab07d87fd13b 100644
--- a/pandas/indexes/multi.py
+++ b/pandas/indexes/multi.py
@@ -1399,7 +1399,11 @@ def sortlevel(self, level=0, ascending=True, sort_remaining=True):
Returns
-------
- sorted_index : Multi... | MultiIndex.sortlevel returns two values (MultiIndex and indices that sort the MultiIndex). Only the MultiIndex was described in the documentation.
| https://api.github.com/repos/pandas-dev/pandas/pulls/15345 | 2017-02-08T10:35:47Z | 2017-02-08T14:58:25Z | 2017-02-08T14:58:25Z | 2017-02-08T14:58:33Z |
BUG: Multiline Eval broken for local variables after first line | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 3f6c06e20b546..f8e200b265ca2 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -516,3 +516,4 @@ Bug Fixes
- Bug in ``DataFrame.boxplot`` where ``fontsize`` was not applied to the tick labels on bo... | Also fixes the code which attempted to ignore any blank lines in the
multiline expression.
- [x] closes #15342
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15343 | 2017-02-08T06:02:58Z | 2017-02-09T17:05:36Z | null | 2017-02-09T17:05:36Z |
BUG: .groupby on Series' values without reindexing | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 3f6c06e20b546..9764f0febda60 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -462,6 +462,7 @@ Bug Fixes
- Bug in groupby operations with timedelta64 when passing ``numeric_only=False`` (:issue:... | - [X] closes #15338
- [X] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15340 | 2017-02-08T00:29:46Z | 2017-02-10T15:00:52Z | null | 2017-02-10T18:38:17Z |
TST/CLN: reorg groupby tests | diff --git a/pandas/tests/groupby/common.py b/pandas/tests/groupby/common.py
new file mode 100644
index 0000000000000..8a70777d08682
--- /dev/null
+++ b/pandas/tests/groupby/common.py
@@ -0,0 +1,52 @@
+""" Base setup """
+
+import numpy as np
+from pandas.util import testing as tm
+from pandas import DataFrame, MultiIn... | https://api.github.com/repos/pandas-dev/pandas/pulls/15336 | 2017-02-07T21:42:18Z | 2017-02-08T01:24:10Z | 2017-02-08T01:24:10Z | 2017-02-08T01:24:10Z | |
ENH: .squeeze accepts axis parameter | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 3f6c06e20b546..c1e8d35bbf1de 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -150,6 +150,8 @@ Other enhancements
- ``Series/DataFrame.resample.asfreq`` have gained a ``fill_value`` parameter, to f... | - [X] closes https://github.com/pandas-dev/pandas/issues/15339
- [X] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15335 | 2017-02-07T21:01:38Z | 2017-02-08T14:36:43Z | null | 2017-02-08T15:50:50Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.