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 |
|---|---|---|---|---|---|---|---|
Updated URL for spam test | diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py
index e1e40edd48873..078b5f8448d46 100644
--- a/pandas/tests/io/test_html.py
+++ b/pandas/tests/io/test_html.py
@@ -99,10 +99,9 @@ def test_banklist_url(self):
assert_framelist_equal(df1, df2)
- @pytest.mark.xfail(reason="no tables... |
- [X] closes #20685
- [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/20689 | 2018-04-13T16:34:22Z | 2018-04-13T17:13:50Z | 2018-04-13T17:13:49Z | 2018-05-14T21:11:07Z |
README.md | diff --git a/README.md b/README.md
index 86cf95508a5d9..7f252dd205278 100644
--- a/README.md
+++ b/README.md
@@ -193,7 +193,7 @@ in automatically (the `-e` option is for installing it in [development
mode](https://pip.pypa.io/en/latest/reference/pip_install.html#editable-installs)):
```sh
-pip install -e .
+pip ins... | Checklist for PRs:
- [ ] 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/20687 | 2018-04-13T14:27:30Z | 2018-04-14T12:31:58Z | null | 2018-04-14T12:31:58Z |
Update README.md | diff --git a/README.md b/README.md
index 86cf95508a5d9..7f252dd205278 100644
--- a/README.md
+++ b/README.md
@@ -193,7 +193,7 @@ in automatically (the `-e` option is for installing it in [development
mode](https://pip.pypa.io/en/latest/reference/pip_install.html#editable-installs)):
```sh
-pip install -e .
+pip ins... | Remove dot (".") from end of pip command
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The... | https://api.github.com/repos/pandas-dev/pandas/pulls/20683 | 2018-04-13T11:23:13Z | 2018-04-14T12:32:27Z | null | 2018-04-14T12:32:27Z |
BUG: Fix problems in group rank when both nans and infinity are present #20561 | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index e340acc17fe9f..e19aedac80213 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -221,6 +221,12 @@ Current Behavior:
s.rank(na_option='top')
+These bugs were squashed:
+
+- Bug in :meth:`DataF... | Please include the output of the validation script below between the "```" ticks:
```
################################################################################
############# Docstring (pandas._libs.groupby.group_rank_float64) #############
################################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/20681 | 2018-04-13T09:35:40Z | 2018-04-21T18:23:55Z | 2018-04-21T18:23:55Z | 2018-05-09T10:22:30Z |
BUG: fixes indexing with monotonic decreasing DTI (#19362) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 1992c27fd11ed..0a46b444026b5 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1079,6 +1079,7 @@ Indexing
- Bug in :meth:`DataFrame.first_valid_index` and :meth:`DataFrame.last_valid_index` in pres... | - [x] closes #19362
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Seems that #19362 is caused by the fact that `np.any([0])` is false. Here's a suggested solution. Also added a test. | https://api.github.com/repos/pandas-dev/pandas/pulls/20677 | 2018-04-13T06:30:02Z | 2018-04-20T10:39:04Z | 2018-04-20T10:39:04Z | 2018-04-20T12:46:02Z |
BUG: Fixed exception when Series.str.get is used with dict values and the index is not an existing key (#20671) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index eee0f1997d081..24bea024bc9e5 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1053,6 +1053,10 @@ Numeric
- Bug in :meth:`Series.rank` and :meth:`DataFrame.rank` when ``ascending='False'`` failed t... | - [X] closes #20671
- [X] tests added / passed (* unrelated tests failed, with locale problems, not sure if caused by something on my system or something on pandas)
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20672 | 2018-04-12T22:50:28Z | 2018-04-24T10:36:47Z | 2018-04-24T10:36:47Z | 2018-04-24T10:36:50Z |
ERR: Consistent errors for non-numeric ranking. (#19560) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 408a52e0526ee..3ed1e6d869aa1 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -418,6 +418,8 @@ Other Enhancements
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+- Using :... | - [ ] closes #19560
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
*This is only partial solution to issue #19560.
*There were some errors with the tests, but I guess they are unrelated to these changes since I also
have them with master.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20670 | 2018-04-12T17:21:59Z | 2018-11-23T03:28:18Z | null | 2018-11-23T03:28:18Z |
Split test multi | diff --git a/pandas/tests/indexes/multi/test_constructor.py b/pandas/tests/indexes/multi/test_constructor.py
new file mode 100644
index 0000000000000..a68dde8543412
--- /dev/null
+++ b/pandas/tests/indexes/multi/test_constructor.py
@@ -0,0 +1,87 @@
+# -*- coding: utf-8 -*-
+
+import re
+
+import numpy as np
+
+from pan... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20669 | 2018-04-12T14:50:13Z | 2018-06-06T02:50:44Z | null | 2018-06-06T02:50:44Z |
DOC: Updated the docstring of pandas.Series.str.get | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 23c891ec4fcd0..bbb7ec7e77a59 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -1651,17 +1651,53 @@ def str_translate(arr, table, deletechars=None):
def str_get(arr, i):
"""
+ Extract element from each component at specified... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20667 | 2018-04-12T13:12:08Z | 2018-04-24T10:38:43Z | 2018-04-24T10:38:43Z | 2018-04-28T14:39:43Z |
Fix test__get_dtype test expecting little-endian | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 2960a12b133d2..edabc177535fc 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -570,8 +570,8 @@ def test_is_offsetlike():
(pd.CategoricalIndex(['a', 'b']), CategoricalDtype(['a', 'b'... | Similar to #14832, use = (native) instead of < (little-endian)
- [ ] 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/20662 | 2018-04-12T07:35:07Z | 2018-04-14T13:22:47Z | 2018-04-14T13:22:47Z | 2018-04-14T13:49:08Z |
Np Any/All Transformation Bug | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index daa7f937cca9d..94b4f6f3ab72f 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1130,6 +1130,7 @@ Groupby/Resample/Rolling
- Fixed a performance regression for ``GroupBy.nth`` and ``GroupBy.last`` w... | - [X] closes #20653
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
I believe this can be added to the whitelist of Cython functions as a result of #19722. I did similar changes with other agg funcs and will review separately to see if we should... | https://api.github.com/repos/pandas-dev/pandas/pulls/20655 | 2018-04-11T07:46:28Z | 2018-04-14T13:28:43Z | 2018-04-14T13:28:43Z | 2018-04-14T15:05:51Z |
BUG: Add uint64 support to IntervalTree | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index a6c92bf9faf9b..239c9b9fbe1c9 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1065,6 +1065,7 @@ Indexing
- Bug in ``Index`` subclasses constructors that ignore unexpected keyword arguments (:issue... | - [X] xref https://github.com/pandas-dev/pandas/issues/20636#issuecomment-380276144
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Note that this doesn't fully close the linked issue; this just resolves the `uint64` case, which was relatively s... | https://api.github.com/repos/pandas-dev/pandas/pulls/20651 | 2018-04-11T01:05:57Z | 2018-04-11T10:05:48Z | 2018-04-11T10:05:48Z | 2018-09-24T17:24:36Z |
Fixing melt() when col_level>0 in a multi-index column | diff --git a/pandas/core/reshape/melt.py b/pandas/core/reshape/melt.py
index ce99d2f8c9a63..8ab65dfa44d88 100644
--- a/pandas/core/reshape/melt.py
+++ b/pandas/core/reshape/melt.py
@@ -24,6 +24,10 @@
other='DataFrame.melt'))
def melt(frame, id_vars=None, value_vars=None, var_name=None,
value_... | Example Input DataFrame -
```
import pandas as pd
x = pd.DataFrame([[0, 1], [2, 3]], columns=[list('AB'), list('CD')])
"""
A B
C D
0 0 1
1 2 3
"""
x.melt(col_level=1, id_vars=['C'], value_vars=['D'])
```
Current Output -
```
KeyError: 'C'
```
Desired Output -
```
C variable value
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20646 | 2018-04-10T05:17:33Z | 2018-09-25T15:44:17Z | null | 2018-09-25T15:44:17Z |
MAINT: Remove console encode | diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py
index e0f53f671017a..a101113da23ba 100644
--- a/pandas/io/formats/printing.py
+++ b/pandas/io/formats/printing.py
@@ -81,12 +81,7 @@ def _join_unicode(lines, sep=''):
# It will always return unicode text which can handled by other
# part... | Closes #20616
Nice to finally get back to some `pandas` work! | https://api.github.com/repos/pandas-dev/pandas/pulls/20645 | 2018-04-10T04:39:02Z | 2018-04-10T05:54:14Z | 2018-04-10T05:54:13Z | 2018-04-10T05:54:17Z |
added check if categoricalDtype for issue #19278 | diff --git a/pandas/core/sparse/series.py b/pandas/core/sparse/series.py
index 714cd09a27294..671da44a02866 100644
--- a/pandas/core/sparse/series.py
+++ b/pandas/core/sparse/series.py
@@ -19,6 +19,7 @@
import pandas.core.ops as ops
import pandas._libs.index as libindex
from pandas.util._decorators import Appender
+... | Checklist for other PRs:
- [x] closes #19278
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20644 | 2018-04-10T03:35:57Z | 2018-10-11T01:51:53Z | null | 2018-10-11T01:51:53Z |
Save the name of undefined variables in expressions. | diff --git a/pandas/core/computation/ops.py b/pandas/core/computation/ops.py
index ca0c4db4947c4..d5e1b35403469 100644
--- a/pandas/core/computation/ops.py
+++ b/pandas/core/computation/ops.py
@@ -34,6 +34,8 @@ class UndefinedVariableError(NameError):
"""NameError subclass for local variables."""
def __init... | This can be useful information for downstream error-handling code. | https://api.github.com/repos/pandas-dev/pandas/pulls/20637 | 2018-04-08T17:43:49Z | 2018-11-23T03:29:33Z | null | 2018-11-23T03:29:33Z |
update the pandas.Series.str.repeat docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index ed1111ed3558a..cc5b9ad3071ac 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -678,17 +678,45 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True):
def str_repeat(arr, repeats):
"""
- Duplicate each stri... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20634 | 2018-04-08T10:36:23Z | 2018-09-18T12:41:48Z | null | 2018-09-18T12:41:48Z |
DOC: clean io.rst codeblocks for PEP8 | diff --git a/doc/source/io.rst b/doc/source/io.rst
index fd998d32cfbfb..c5b7eff292722 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -20,9 +20,9 @@
plt.close('all')
import pandas.util.testing as tm
- pd.options.display.max_rows=15
- clipdf = pd.DataFrame({'A':[1,2,3],'B':[4,5,6],'C':['p','q','r... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20632 | 2018-04-08T01:40:44Z | 2018-04-11T02:26:32Z | 2018-04-11T02:26:32Z | 2018-08-02T14:03:55Z |
DOC: Updated the docstring of pandas.Series.str.get | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 23c891ec4fcd0..ad8aaf41ef153 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -1651,17 +1651,34 @@ def str_translate(arr, table, deletechars=None):
def str_get(arr, i):
"""
+ Extract element for each component.
+
Extra... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20630 | 2018-04-07T18:06:51Z | 2018-04-12T13:15:03Z | null | 2018-04-24T04:36:26Z |
DOC: update the pandas.Series.str.strip docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 23c891ec4fcd0..8fa56c797fe4b 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2094,8 +2094,46 @@ def encode(self, encoding, errors="strict"):
return self._wrap_result(result)
_shared_docs['str_strip'] = ("""
- Stri... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20628 | 2018-04-07T17:01:36Z | 2018-07-07T22:14:37Z | null | 2018-07-07T22:14:38Z |
TST: Parametrized index tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index e78f565b0a9af..559b5e44631b6 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1,7 +1,7 @@
import pytest
-import numpy
-import pandas
+import numpy as np
+import pandas as pd
import pandas.util._test_decorators as td
@@ -36,15 +36,15 @@ def p... | I came across this module on another change and noticed that a lot of the tests could really use refactoring. There's a ton more to be done with this module but submitting as is so it doesn't get too large.
Can either add other commits on top of this or have this merged (assuming looks OK) and continue down the modu... | https://api.github.com/repos/pandas-dev/pandas/pulls/20624 | 2018-04-06T16:41:31Z | 2018-04-24T10:12:29Z | 2018-04-24T10:12:29Z | 2018-04-24T15:44:54Z |
BUG: excel index label can be an array | diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py
index 76ffd41f93090..2cc14994311f8 100644
--- a/pandas/io/formats/excel.py
+++ b/pandas/io/formats/excel.py
@@ -497,12 +497,13 @@ def _format_regular_rows(self):
if self.index:
# check aliases
# if list only take fir... | Fixes "ValueError: The truth value of an array with more than one element is ambiguous." where self.index_label could be a list, tuple np.ndarray, or Index type
closes #20622 | https://api.github.com/repos/pandas-dev/pandas/pulls/20623 | 2018-04-06T15:09:03Z | 2018-09-25T15:43:47Z | null | 2018-09-25T15:43:47Z |
changes | diff --git a/doc/source/io.rst b/doc/source/io.rst
index ff505f525fc22..c7f4b63b981fa 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -3978,7 +3978,7 @@ Sometimes you want to get the coordinates (a.k.a the index locations) of your qu
df_coord = pd.DataFrame(np.random.randn(1000,2),index=pd.date_range('200... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20621 | 2018-04-06T14:35:16Z | 2018-04-06T14:36:11Z | null | 2018-04-06T14:36:11Z |
DOC: update the str_replace docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 23c891ec4fcd0..083e4067cdbd6 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -439,8 +439,7 @@ def str_endswith(arr, pat, na=np.nan):
def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True):
r"""
Replace occur... | Remove claim in `str_replace` docstring of equivalence to base Python `str.replace` -- the former does regex parsing while the latter does not. | https://api.github.com/repos/pandas-dev/pandas/pulls/20618 | 2018-04-05T18:24:38Z | 2018-07-22T00:31:53Z | null | 2018-07-22T00:31:53Z |
BUG: Avoid splitting string with list() (#20592) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 1d6f770d92795..d1edbc5ec5e56 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -951,7 +951,10 @@ def _set_with(self, key, value):
if not isinstance(key, (list, Series, np.ndarray, Series)):
try:
- ... | Solves #20592 and I doubt that there are any cases when a key string should be split by `list()` | https://api.github.com/repos/pandas-dev/pandas/pulls/20615 | 2018-04-05T12:28:42Z | 2018-09-25T16:22:46Z | null | 2018-09-25T16:22:46Z |
Stop concat from attempting to sort mismatched columns by default | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index 74b21c21252ec..1161656731f88 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -153,10 +153,10 @@ Set logic on the other axes
~~~~~~~~~~~~~~~~~~~~~~~~~~~
When gluing together multiple DataFrames, you have a choice of how to handle
... | Preserve column order upon concatenation to obey
least astonishment principle.
Allow old behavior to be enabled by adding a boolean switch to
concat and DataFrame.append, mismatch_sort, which is by default disabled.
- [x] Close #4588
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*... | https://api.github.com/repos/pandas-dev/pandas/pulls/20613 | 2018-04-05T03:29:11Z | 2018-05-01T20:06:12Z | 2018-05-01T20:06:11Z | 2018-05-01T20:07:06Z |
REF: IntervalIndex[IntervalArray] | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index c460b19640f46..c18b94fea9a28 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -1924,11 +1924,24 @@ untouched. If the data is modified, it is because you did so explicitly.
dtypes
------
-The main types stored in pandas objects are ``f... | Closes #19453
Closes #19209
| https://api.github.com/repos/pandas-dev/pandas/pulls/20611 | 2018-04-04T16:49:54Z | 2018-07-13T20:57:26Z | 2018-07-13T20:57:26Z | 2018-11-08T18:16:49Z |
BUG/PERF: Fixed IntervalIndex.nbytes and itemsize | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index fb63dc16249b2..f098202281ab8 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -896,6 +896,7 @@ Performance Improvements
- Improved performance of :func:`pandas.core.groupby.GroupBy.ffill` and :func... | Avoid materializing the ndarray of Intervals. Just get from left and right
instead.
Closes https://github.com/pandas-dev/pandas/issues/19209 | https://api.github.com/repos/pandas-dev/pandas/pulls/20600 | 2018-04-04T00:11:41Z | 2018-04-04T18:43:31Z | null | 2023-05-11T01:17:40Z |
BUG: HDFStore failures on timezone-aware data | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index fb63dc16249b2..661402e4f2f27 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1099,6 +1099,7 @@ I/O
- Bug in :meth:`pandas.io.json.json_normalize` where subrecords are not properly normalized if a... | - [x] closes #20594
- [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/20595 | 2018-04-03T15:39:09Z | 2018-11-23T03:25:15Z | null | 2018-11-23T03:25:15Z |
Safely raise errors when object contains unicode | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 09bd09b06d9b9..ca46f94752731 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1165,3 +1165,4 @@ Other
- Improved error message when attempting to use a Python keyword as an identifier in a ``num... | This safely turns nd.array objects that contain unicode into a
representation that can be printed
Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
- [x] closes #20503
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --d... | https://api.github.com/repos/pandas-dev/pandas/pulls/20593 | 2018-04-03T13:38:07Z | 2018-04-09T18:33:59Z | 2018-04-09T18:33:59Z | 2018-04-10T10:21:42Z |
TST: add hypothesis-based tests | diff --git a/ci/appveyor-27.yaml b/ci/appveyor-27.yaml
index 84107c605b14f..0f1bedd5b01a0 100644
--- a/ci/appveyor-27.yaml
+++ b/ci/appveyor-27.yaml
@@ -27,3 +27,4 @@ dependencies:
- pytest
- pytest-xdist
- moto
+ - hypothesis
diff --git a/ci/appveyor-36.yaml b/ci/appveyor-36.yaml
index 5e370de39958a..9f2499a... | Addition of "hypothesis usage" in test cases of
tests/reshape/test_util.py as kind of POC.
- [x] closes #17978
- [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/20590 | 2018-04-03T06:49:43Z | 2018-08-20T22:47:41Z | null | 2018-08-20T22:47:41Z |
[WIP] Implement new Interval / IntervalIndex behavior, and update tests | diff --git a/pandas/tests/indexes/interval/test_interval.py b/pandas/tests/indexes/interval/test_interval.py
index 71a6f78125004..2df8a91a5505c 100644
--- a/pandas/tests/indexes/interval/test_interval.py
+++ b/pandas/tests/indexes/interval/test_interval.py
@@ -31,6 +31,13 @@ def setup_method(self, method):
... | - [x] More for #16316
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20587 | 2018-04-02T21:32:03Z | 2018-09-25T15:43:15Z | null | 2018-09-25T15:43:15Z |
API: rolling.apply will pass Series to function | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 18c4dca5b69da..110550d9f85cd 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -65,6 +65,35 @@ The :func:`get_dummies` now accepts a ``dtype`` argument, which specifies a dtyp
pd.get_dummies(df, ... | closes #5071
| https://api.github.com/repos/pandas-dev/pandas/pulls/20584 | 2018-04-02T14:09:07Z | 2018-04-16T14:54:04Z | 2018-04-16T14:54:04Z | 2018-08-02T14:16:32Z |
API: categorical grouping will no longer return the cartesian product | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 407fad39ba232..3616a7e1b41d2 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -91,10 +91,10 @@ The mapping can be specified many different ways:
- A Python function, to be called on each of the axis labels.
- A list or NumPy arr... | closes #14942
closes #15217
closes #17594
closes #8869
xref #8138
| https://api.github.com/repos/pandas-dev/pandas/pulls/20583 | 2018-04-02T14:06:17Z | 2018-05-01T15:09:11Z | 2018-05-01T15:09:10Z | 2019-01-30T17:44:14Z |
TST: add tests for take() on empty arrays | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index c281bd80cb274..d49a0d799526a 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -458,11 +458,23 @@ def take(self, indexer, allow_fill=True, fill_value=None):
Fill value to replace -1 values with. If applicab... | Another noticed during geopandas testing: `ExtensionArray.take` needs to be able to handle the case where it is empty.
Added a example implementation for Decimal/JSONArray.
And apparently, this was also failing for Categorical, so fixed that as well.
| https://api.github.com/repos/pandas-dev/pandas/pulls/20582 | 2018-04-02T12:48:48Z | 2018-04-17T07:53:32Z | 2018-04-17T07:53:32Z | 2018-04-17T07:53:36Z |
BUG: Series[EA].astype(str) works | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index b0a6086c450ef..e8fab3748bacf 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -655,7 +655,7 @@ def _astype(self, dtype, copy=False, errors='raise', values=None,
# astype formatting
e... | Closes https://github.com/pandas-dev/pandas/issues/20578
cc @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/20581 | 2018-04-02T11:37:09Z | 2018-04-03T06:32:08Z | 2018-04-03T06:32:07Z | 2018-04-03T06:32:14Z |
BUG: Fixed Series.align(frame) with ExtensionArray | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index d19f19b7224a7..75434fcc2b40d 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -12,6 +12,7 @@
is_complex, is_datetimetz, is_categorical_dtype,
is_datetimelike,
... | Closes https://github.com/pandas-dev/pandas/issues/20576
cc @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/20580 | 2018-04-02T11:11:59Z | 2018-04-03T06:33:35Z | 2018-04-03T06:33:35Z | 2018-04-03T06:33:35Z |
TST: remove skip for values/index length mismatch in ExtensionArray tests | diff --git a/pandas/tests/extension/base/constructors.py b/pandas/tests/extension/base/constructors.py
index 4ac04d71338fd..5ac3a84517fe9 100644
--- a/pandas/tests/extension/base/constructors.py
+++ b/pandas/tests/extension/base/constructors.py
@@ -41,10 +41,7 @@ def test_dataframe_from_series(self, data):
ass... | https://github.com/pandas-dev/pandas/issues/19342 is fixed in the meantime | https://api.github.com/repos/pandas-dev/pandas/pulls/20577 | 2018-04-02T09:54:01Z | 2018-04-02T13:35:29Z | 2018-04-02T13:35:29Z | 2018-04-03T21:02:15Z |
Adding test_map_missing_mixed to test_apply.py in pandas test suite series | diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py
index 0780c846a6c19..b28b9f342695f 100644
--- a/pandas/tests/series/test_apply.py
+++ b/pandas/tests/series/test_apply.py
@@ -576,3 +576,14 @@ def f(x):
result = s.map(f)
exp = pd.Series(['Asia/Tokyo'] * 25, name='XX')
... | Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
- [x] closes #20495
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry (n/a)
| https://api.github.com/repos/pandas-dev/pandas/pulls/20574 | 2018-04-02T04:22:32Z | 2018-04-03T19:22:12Z | 2018-04-03T19:22:11Z | 2018-04-03T19:22:17Z |
Feat/scatter by size | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 6c3d07124215b..3108aa74ef913 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -19,7 +19,9 @@
is_integer,
is_number,
is_hashable,
- is_iterator)
+ is_iterator,
+ is_numeric_dtype,
+ is_categorical_dty... | - [x] closes part of #16827 : makes bubble plots easy with df.plot.scatter(x='col1', y='col2', s='col3') with nice automatic bubble sizing and bubble size legend
- [x] 2 tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/20572 | 2018-04-01T16:58:22Z | 2018-08-18T23:14:15Z | null | 2018-08-18T23:14:15Z |
BUG: .unique() on MultiIndex: preserve names | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index ce63cb2473bc4..1f477c4f18811 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1069,6 +1069,8 @@ MultiIndex
- Bug in :func:`MultiIndex.__contains__` where non-tuple keys would return ``True`` even ... | - [x] closes #20308
- [x] closes #20570
- [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/20571 | 2018-03-31T22:25:04Z | 2018-04-01T15:49:57Z | 2018-04-01T15:49:56Z | 2018-04-01T15:50:27Z |
BUG: Fix first_last_valid_index, now preserves the frequency. | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index ce63cb2473bc4..1f5948649c5e2 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1061,7 +1061,7 @@ Indexing
- Bug in :meth:`DataFrame.drop_duplicates` where no ``KeyError`` is raised when passing in ... | Checklist
- [X] closes #20499
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I'm not sure if I should add a test somewhere else. Notice that I've added a new function [`_find_first_valid`](https://github.com/mmngreco/pandas/blob/ff8d3964cba0... | https://api.github.com/repos/pandas-dev/pandas/pulls/20569 | 2018-03-31T16:35:04Z | 2018-04-01T13:40:21Z | 2018-04-01T13:40:20Z | 2018-04-18T07:20:58Z |
TST: xfail matmul under numpy < 1.12 | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index f9f079cb21858..430c571aab0a4 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -90,7 +90,7 @@ def test_factorize(self, data_for_grouping, na_sentinel):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20567 | 2018-03-31T15:43:48Z | 2018-03-31T16:37:32Z | 2018-03-31T16:37:32Z | 2018-03-31T16:37:32Z | |
ENH/DOC: update pandas-gbq signature and docstring | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 43c7c23c5e20d..965b537c15ce5 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -350,6 +350,7 @@
intersphinx_mapping = {
'statsmodels': ('http://www.statsmodels.org/devel/', None),
'matplotlib': ('http://matplotlib.org/', None),
+ 'pandas... | Delegates more of the behavior and documentation for `to_gbq` and
`read_gbq` methods to the `pandas-gbq` library. This duplicate
documentation was getting out of sync.
Please include the output of the validation script below between the "```" ticks:
```
$ scripts/validate_docstrings.py pandas.DataFrame.to_gb... | https://api.github.com/repos/pandas-dev/pandas/pulls/20564 | 2018-03-30T23:58:01Z | 2018-04-09T10:02:24Z | 2018-04-09T10:02:24Z | 2019-12-11T20:30:19Z |
CLN: Use new-style classes instead of old-style classes | diff --git a/ci/lint.sh b/ci/lint.sh
index 545ac9c90c5c1..2cbf6f7ae52a9 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -165,6 +165,14 @@ if [ "$LINT" ]; then
RET=1
fi
echo "Check for deprecated messages without sphinx directive DONE"
+
+ echo "Check for old-style classes"
+ grep -R --include="*.py... | Noticed some [lgtm.com alerts](https://lgtm.com/projects/g/pydata/pandas/snapshot/f85a69a8fdaed49747c4db61f5177a296cf290eb/files/scripts/validate_docstrings.py?sort=name&dir=ASC&mode=heatmap&showExcluded=false#L108) about the [`@property` decorator not working in old-style classes](https://lgtm.com/rules/10030086/) in ... | https://api.github.com/repos/pandas-dev/pandas/pulls/20563 | 2018-03-30T23:44:01Z | 2018-04-03T07:00:44Z | 2018-04-03T07:00:44Z | 2018-09-24T17:24:43Z |
[WIP] Complete offset prefix mapping | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 466c48b780861..58d3cb1091f97 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -1155,6 +1155,8 @@ frequencies. We will refer to these aliases as *offset aliases*.
"L, ms", "milliseconds"
"U, us", "microseconds"
... | Checklist for PRs :
- [x] closes #7985
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20562 | 2018-03-30T23:26:28Z | 2018-11-04T16:13:15Z | null | 2018-11-04T16:13:15Z |
CI: move 2.7_SLOW -> 3.6_SLOW | diff --git a/.travis.yml b/.travis.yml
index 22ef6c819c6d4..e4dab4eb53afb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -56,7 +56,7 @@ matrix:
# In allow_failures
- dist: trusty
env:
- - JOB="2.7_SLOW" SLOW=true
+ - JOB="3.6_SLOW" SLOW=true
# In allow_failures
- dist: trusty
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20559 | 2018-03-30T21:08:51Z | 2018-03-31T15:27:26Z | 2018-03-31T15:27:26Z | 2018-03-31T15:28:00Z | |
BUG: usecols kwarg accepts string when it should only allow list-like or callable. | diff --git a/doc/source/io.rst b/doc/source/io.rst
index ff505f525fc22..fd998d32cfbfb 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -130,11 +130,11 @@ index_col : int or sequence or ``False``, default ``None``
MultiIndex is used. If you have a malformed file with delimiters at the end of
each line, y... | - [x] closes #20529
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Since string is iterable, when passed into usecols in read_csv or read_table, it is currently treated as array of characters instead of being caught properly. For example, when... | https://api.github.com/repos/pandas-dev/pandas/pulls/20558 | 2018-03-30T20:50:12Z | 2018-04-01T13:42:26Z | 2018-04-01T13:42:26Z | 2018-04-01T15:22:40Z |
BUG: Allow overwriting object columns with EAs | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index a0e122d390240..f5956aacf8646 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -2379,7 +2379,10 @@ def should_store(self, value):
return not (issubclass(value.dtype.type,
(np.integer, np... | Closes https://github.com/pandas-dev/pandas/issues/20555 | https://api.github.com/repos/pandas-dev/pandas/pulls/20556 | 2018-03-30T18:59:37Z | 2018-03-31T16:03:00Z | 2018-03-31T16:03:00Z | 2018-03-31T16:03:05Z |
COMPAT: Remove use of private re attribute | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index aefa1ddd6cf0b..8885064b22ea8 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -26,6 +26,7 @@
# pylint disable=W0611
# flake8: noqa
+import re
import functools
import itertools
from distutils.version import LooseVers... | Closes https://github.com/pandas-dev/pandas/issues/20551 | https://api.github.com/repos/pandas-dev/pandas/pulls/20553 | 2018-03-30T16:58:42Z | 2018-03-31T16:04:13Z | 2018-03-31T16:04:12Z | 2018-05-16T13:30:13Z |
TST: tests for inconsistent indexing with datetimes | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index 6d74ce54faa94..7149c9e27408f 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -1548,6 +1548,25 @@ def test_setitem_single_column_mixed_datetime(self):
# pytest.raises(
... |
- [X] closes #9336
- [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/20550 | 2018-03-30T14:18:18Z | 2018-05-29T01:34:34Z | 2018-05-29T01:34:34Z | 2018-05-29T01:34:39Z |
Fixed WOM offset when n=0 | diff --git a/doc/source/api.rst b/doc/source/api.rst
index e224e9927f55c..e43632ea46bfb 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -2106,6 +2106,7 @@ Standard moving window functions
Rolling.skew
Rolling.kurt
Rolling.apply
+ Rolling.aggregate
Rolling.quantile
Window.mean
Windo... | Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
- [x] closes #20517
- [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/20549 | 2018-03-30T14:10:52Z | 2018-04-21T18:14:15Z | 2018-04-21T18:14:15Z | 2018-04-21T18:38:01Z |
ERR: disallow non-hashables in Index/MultiIndex construction & rename | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index e19aedac80213..3f7c4b3b0ccb7 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -827,6 +827,7 @@ Other API Changes
- A :class:`Series` of ``dtype=category`` constructed from an empty ``dict`` will no... | Index & MultiIndex names need to be hashable. Both constructing and renaming without a hashable name raise TypeError exceptions now.
**Examples:**
- Index:
```
In [2]: pd.Index([1, 2, 3], name=['foo'])
>>> Int64Index([1, 2, 3], dtype='int64', name=['foo'])
```
```
In [3]: pd.Index([1, 2, 3], name='foo')... | https://api.github.com/repos/pandas-dev/pandas/pulls/20548 | 2018-03-30T12:41:55Z | 2018-04-23T19:05:14Z | 2018-04-23T19:05:13Z | 2018-06-27T21:13:53Z |
CLN: Use pandas.compat instead of sys.version_info for Python version checks | diff --git a/pandas/_version.py b/pandas/_version.py
index 624c7b5cd63a1..26e4d987e9f2e 100644
--- a/pandas/_version.py
+++ b/pandas/_version.py
@@ -12,6 +12,7 @@
import re
import subprocess
import sys
+from pandas.compat import PY3
def get_keywords():
@@ -83,7 +84,7 @@ def run_command(commands, args, cwd=None,... | Hopefully this will make code changes related to dropping support for specific versions of Python slightly easier to identify.
Summary:
- Replaced instances `sys.version_info` with equivalent checks from `pandas.compat`
- Removed code blocks specific to unsupported versions of Python (<2.7, 3.0-3.4)
<br />
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20545 | 2018-03-30T02:41:28Z | 2018-03-31T16:01:21Z | 2018-03-31T16:01:21Z | 2018-09-24T17:25:07Z |
Deprecated Index.get_duplicates() | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 3f7c4b3b0ccb7..eb0fa49170d44 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -887,6 +887,7 @@ Deprecations
- :func:`Series.rolling().apply() <pandas.core.window.Rolling.apply>`, :func:`DataFrame.r... | - [X] closes #20239
- [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/20544 | 2018-03-30T01:37:36Z | 2018-04-24T10:17:16Z | 2018-04-24T10:17:16Z | 2018-04-24T15:41:53Z |
DOC: Sprint recap | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index e83f149db1f18..560eb0df8ccf7 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -901,6 +901,22 @@ Performance Improvements
Documentation Changes
~~~~~~~~~~~~~~~~~~~~~
+Thanks to all of the contrib... | Included a small note for this. Should we plan a blogpost as well?
closes #20515 | https://api.github.com/repos/pandas-dev/pandas/pulls/20543 | 2018-03-29T21:31:09Z | 2018-03-30T20:03:41Z | 2018-03-30T20:03:41Z | 2018-10-25T19:10:38Z |
[WIP]DOC: Fixed more warnings | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index cfd3f9e88e4ea..74b21c21252ec 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -583,7 +583,7 @@ and ``right`` is a subclass of DataFrame, the return type will still be
``merge`` is a function in the pandas namespace, and it is also ... | Also trying to fail on warnings. I think it's not working yet. | https://api.github.com/repos/pandas-dev/pandas/pulls/20542 | 2018-03-29T21:12:20Z | 2018-04-04T19:20:20Z | 2018-04-04T19:20:20Z | 2018-04-08T09:58:34Z |
DOC: Plans for 2.7 | diff --git a/doc/source/install.rst b/doc/source/install.rst
index c96d4fbeb4ad2..82a97ba7b04e1 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -15,6 +15,31 @@ Instructions for installing from source,
`PyPI <http://pypi.python.org/pypi/pandas>`__, `ActivePython <https://www.activestate.com/activepy... | Closes https://github.com/pandas-dev/pandas/issues/18894
Just some sample text, essentially following NumPy.
Of course, it'd be nice if 1.0 happened to be the LTS, but we'll see. | https://api.github.com/repos/pandas-dev/pandas/pulls/20540 | 2018-03-29T19:34:02Z | 2018-04-14T13:41:44Z | 2018-04-14T13:41:43Z | 2018-05-06T08:08:48Z |
ERR: Better error message for missing matplotlib | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index c6dadb7589869..5f008a7bc8dea 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1024,6 +1024,7 @@ I/O
Plotting
^^^^^^^^
+- Better error message when attempting to plot but matplotlib is not insta... | Closes https://github.com/pandas-dev/pandas/issues/19810 | https://api.github.com/repos/pandas-dev/pandas/pulls/20538 | 2018-03-29T18:45:37Z | 2018-04-09T08:01:39Z | 2018-04-09T08:01:39Z | 2018-04-09T08:01:39Z |
BUG: Presence of softlink in HDF5 file breaks HDFStore.keys() (GH20523) | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 09bd09b06d9b9..fb63dc16249b2 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1098,6 +1098,7 @@ I/O
- Bug in :func:`read_pickle` when unpickling objects with :class:`TimedeltaIndex` or :class:`Flo... | - [x] closes #20523
- [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/20537 | 2018-03-29T13:43:21Z | 2018-04-03T13:00:17Z | 2018-04-03T13:00:16Z | 2018-04-03T13:01:48Z |
ENH20521 Added metadata argument to DataFrame.to_parquet | The argument allows for custom file metadata updating the default one.
Closes #20521
Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] w... | https://api.github.com/repos/pandas-dev/pandas/pulls/20534 | 2018-03-29T12:21:47Z | 2018-10-07T16:06:24Z | null | 2019-05-02T08:43:07Z | |
DOC: Extension whatsenw | diff --git a/ci/build_docs.sh b/ci/build_docs.sh
index 5de9e158bcdb6..90a666dc34ed7 100755
--- a/ci/build_docs.sh
+++ b/ci/build_docs.sh
@@ -24,6 +24,7 @@ if [ "$DOC" ]; then
source activate pandas
mv "$TRAVIS_BUILD_DIR"/doc /tmp
+ mv "$TRAVIS_BUILD_DIR/LICENSE" /tmp # included in the docs.
cd /tmp... | Closes https://github.com/pandas-dev/pandas/issues/20532 | https://api.github.com/repos/pandas-dev/pandas/pulls/20533 | 2018-03-29T12:10:56Z | 2018-03-29T20:10:04Z | 2018-03-29T20:10:04Z | 2018-03-29T20:10:09Z |
COMPAT: 32-bit compat for testing | diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py
index ada4f880e92a4..8a8a6f7de70d7 100644
--- a/pandas/tests/test_algos.py
+++ b/pandas/tests/test_algos.py
@@ -266,7 +266,7 @@ def test_parametrized_factorize_na_value_default(self, data):
# arrays that include the NA default for that type, ... | xref #20502
| https://api.github.com/repos/pandas-dev/pandas/pulls/20528 | 2018-03-29T10:17:36Z | 2018-03-30T19:01:17Z | 2018-03-30T19:01:17Z | 2018-03-30T19:01:48Z |
BUG: #19497 FIX. Add tupleize_cols option to internals._transform_index() | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ace975385ce32..236b0109da786 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3642,6 +3642,10 @@ def rename(self, *args, **kwargs):
level : int or level name, default None
In case of a MultiIndex, only rename labels in ... | - Closes #19497
- NO TESTS have been added/passed. Currently experiencing issues getting pandas conda environment installed so unable to do this myself. Very simple alteration however...
- Code passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- Implements tupleize_cols option for pandas.core.internals_... | https://api.github.com/repos/pandas-dev/pandas/pulls/20526 | 2018-03-29T06:42:17Z | 2018-03-30T19:09:40Z | null | 2018-05-14T01:32:37Z |
PERF: GH2003 Series.isin for categorical dtypes | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 7743921003353..0ffd5f881d626 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -148,3 +148,24 @@ def time_rank_int_cat(self):
def time_rank_int_cat_ordered(self):
... | I have added a branching for the categorical case in `Series.isin` function.
I have also added a test for the most crucial cases (nans).
closes #20003 | https://api.github.com/repos/pandas-dev/pandas/pulls/20522 | 2018-03-28T18:49:50Z | 2018-04-25T12:38:18Z | 2018-04-25T12:38:18Z | 2018-04-25T12:38:43Z |
Set pd.options.display.max_rows = 20 by default | diff --git a/doc/source/options.rst b/doc/source/options.rst
index 48247eb48baaf..0e5fa41be1d7a 100644
--- a/doc/source/options.rst
+++ b/doc/source/options.rst
@@ -352,7 +352,7 @@ display.max_info_rows 1690785 df.info() will usually show
and ... | As a follow-up to #17023, I propose to change the default number of displayed rows to 20.
- [ ] closes #xxxx
- [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/20514 | 2018-03-28T09:14:20Z | 2018-12-19T11:55:50Z | null | 2018-12-19T11:55:50Z |
API/BUG: Enforce "normalized" pytz timezones for DatetimeIndex | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index fb63dc16249b2..852a8d327707d 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -767,6 +767,8 @@ Datetimelike API Changes
- :func:`pandas.merge` provides a more informative error message when trying ... | closes #3746
closes #18595
closes #13238
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Addressing 3 birds with 2 stones here. Using @pganssle suggested implementation for a tz property and directly raising an error per #3746 (could depreciat... | https://api.github.com/repos/pandas-dev/pandas/pulls/20510 | 2018-03-28T03:19:52Z | 2018-04-11T02:29:55Z | 2018-04-11T02:29:54Z | 2018-04-11T17:10:07Z |
DOC: Fix various warnings | diff --git a/doc/source/comparison_with_r.rst b/doc/source/comparison_with_r.rst
index eb97aeeb7e696..a7586f623a160 100644
--- a/doc/source/comparison_with_r.rst
+++ b/doc/source/comparison_with_r.rst
@@ -397,7 +397,7 @@ In Python, this list would be a list of tuples, so
pd.DataFrame(a)
For more details and exam... | https://api.github.com/repos/pandas-dev/pandas/pulls/20509 | 2018-03-27T21:29:47Z | 2018-03-29T02:31:38Z | 2018-03-29T02:31:38Z | 2018-03-29T02:31:41Z | |
Move GroupBy to Submodule and Add FutureWarning | diff --git a/pandas/core/api.py b/pandas/core/api.py
index aa37ddffa1156..640baf31268a7 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... | ref #20485 @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/20506 | 2018-03-27T17:04:15Z | 2018-04-02T22:38:33Z | 2018-04-02T22:38:32Z | 2018-05-14T21:11:31Z |
Option_context Dictionary argument | diff --git a/pandas/core/config.py b/pandas/core/config.py
index 369e0568346ef..24a3c44ac019c 100644
--- a/pandas/core/config.py
+++ b/pandas/core/config.py
@@ -379,6 +379,8 @@ class option_context(object):
Context manager to temporarily set options in the `with` statement context.
You need to invoke as ``o... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
Not a documentation sprint participant
Please include the output of the validation script below between the "```" ticks:
```
root@dfb9f788ea02:/pandas# scripts/validate_docstrings.py pandas.option_context
#######... | https://api.github.com/repos/pandas-dev/pandas/pulls/20504 | 2018-03-27T16:34:52Z | 2018-03-28T15:10:50Z | null | 2018-03-28T15:10:50Z |
ENH: Support ExtensionArray in Groupby | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 601acac20c96d..7c89cab6b1428 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -44,7 +44,7 @@
DataError, SpecificationError)
from pandas.core.index import (Index, MultiIndex,
... | ```python
In [1]: import pandas as pd
In [2]: from cyberpandas import IPArray
In [3]: df = pd.DataFrame({"A": IPArray([0, 0, 1, 2, 2]), "B": [1, 5, 1, 1, 3]})
In [4]: df
Out[4]:
A B
0 0.0.0.0 1
1 0.0.0.0 5
2 0.0.0.1 1
3 0.0.0.2 1
4 0.0.0.2 3
In [5]: df.groupby("A").B.mean()
Out[... | https://api.github.com/repos/pandas-dev/pandas/pulls/20502 | 2018-03-27T15:54:39Z | 2018-03-28T10:35:45Z | 2018-03-28T10:35:45Z | 2018-05-02T13:10:02Z |
Add interpolation options to rolling quantile | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index ba25ad6c5eda6..e3bf551fa5f2b 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -22,6 +22,7 @@ def setup(self, constructor, window, dtype, method):
def time_rolling(self, constructor, window, dty... | It version 0.21.0 rolling quantile started to use linear interpolation, it broke backward compatibility.
Regular (not rolling) quantile supports these interpolation options: `linear`, `lower`, `higher`, `nearest` and `midpoint`.
This commit adds the same options to moving quantile.
Performance issues of this com... | https://api.github.com/repos/pandas-dev/pandas/pulls/20497 | 2018-03-27T09:34:52Z | 2018-04-24T11:29:35Z | 2018-04-24T11:29:34Z | 2018-04-24T11:30:07Z |
DOC: update the pandas.Series.str.endswith docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index b98fa106336fc..1703de5714bdf 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -348,19 +348,54 @@ def str_startswith(arr, pat, na=np.nan):
def str_endswith(arr, pat, na=np.nan):
"""
- Return boolean Series indicating whether... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ X] The PEP8 style check passes: `git diff upstr... | https://api.github.com/repos/pandas-dev/pandas/pulls/20491 | 2018-03-26T14:20:57Z | 2018-03-28T16:15:13Z | 2018-03-28T16:15:13Z | 2018-03-28T16:15:13Z |
CLN: remove deprecated infer_dst keyword | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index e1a6bc7a68e9d..eada401d2930b 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -75,8 +75,7 @@ def setup(self):
freq='S'))
def tim... | This has come up a few times during the docstring improvements: we still had the `infer_dst` deprecations left over (deprecated in 0.15) | https://api.github.com/repos/pandas-dev/pandas/pulls/20490 | 2018-03-26T13:12:29Z | 2018-03-27T10:22:33Z | 2018-03-27T10:22:33Z | 2018-03-27T11:21:12Z |
CI: Fixed deprecationWarning | diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py
index 7d959ea4fcd84..b6303ededd0dc 100644
--- a/pandas/tests/extension/decimal/test_decimal.py
+++ b/pandas/tests/extension/decimal/test_decimal.py
@@ -134,7 +134,7 @@ def test_series_constructor_with_same_dtype... | Closes #20479
Hopefully. I can't reproduce locally. | https://api.github.com/repos/pandas-dev/pandas/pulls/20489 | 2018-03-26T12:19:50Z | 2018-03-26T14:29:06Z | 2018-03-26T14:29:05Z | 2018-03-26T14:29:17Z |
BUG: raise error when setting cached properties | diff --git a/pandas/_libs/properties.pyx b/pandas/_libs/properties.pyx
index e3f16f224db1c..0f2900619fdb6 100644
--- a/pandas/_libs/properties.pyx
+++ b/pandas/_libs/properties.pyx
@@ -37,6 +37,9 @@ cdef class CachedProperty(object):
PyDict_SetItem(cache, self.name, val)
return val
+ def __se... | A bug I introduced myself some time ago in https://github.com/pandas-dev/pandas/pull/19991. Apparently the object needs to explicitly raise in the `__set__` method, otherwise the property is assumed to be settable:
```
In [6]: idx = pd.Index([1, 2, 3])
In [7]: idx.is_unique
Out[7]: True
In [8]: idx.is_unique... | https://api.github.com/repos/pandas-dev/pandas/pulls/20487 | 2018-03-26T09:49:38Z | 2018-03-26T12:48:49Z | 2018-03-26T12:48:49Z | 2018-03-26T12:48:53Z |
POC for New GroupBy Dispatching Module | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 601acac20c96d..96816824d724f 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -53,6 +53,7 @@
from pandas.core.sorting import (get_group_index_sorter, get_group_index,
compress_group_index, get_flatte... | This is nowhere near completion but looking for feedback on the direction.
@jreback
- [ ] 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/20485 | 2018-03-26T05:23:26Z | 2018-07-08T16:06:34Z | null | 2018-12-25T06:12:48Z |
TST: test_nanops some parametrize & catch warnings (RuntimeWarning: All-Nan slice in tests) | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 7b68ad67675ff..601acac20c96d 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -3860,7 +3860,7 @@ def count(self):
mask = (ids != -1) & ~isna(val)
ids = _ensure_platform_int(ids)
- out = np.bincount(ids[mask]... | closes #20011 | https://api.github.com/repos/pandas-dev/pandas/pulls/20484 | 2018-03-25T22:56:33Z | 2018-03-26T01:17:39Z | 2018-03-26T01:17:39Z | 2018-03-26T01:17:39Z |
TST: 32-bit compat for categorical factorization tests | diff --git a/pandas/tests/categorical/test_algos.py b/pandas/tests/categorical/test_algos.py
index 61764ec0ff632..f727184e862d8 100644
--- a/pandas/tests/categorical/test_algos.py
+++ b/pandas/tests/categorical/test_algos.py
@@ -15,7 +15,7 @@ def test_factorize(categories, ordered):
categories... | https://travis-ci.org/MacPython/pandas-wheels/jobs/357947315
cc @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/20482 | 2018-03-25T13:38:15Z | 2018-03-25T14:10:14Z | 2018-03-25T14:10:14Z | 2018-03-25T14:10:15Z |
removed not necessary bn switch decorator on nansum | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index d4851f579dda4..90333c23817c5 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -326,7 +326,6 @@ def nanall(values, axis=None, skipna=True):
@disallow('M8')
-@bottleneck_switch()
def nansum(values, axis=None, skipna=True, min_count=0)... | Removed not necessary bottleneck_switch decorator on nansum function like nanprod. | https://api.github.com/repos/pandas-dev/pandas/pulls/20481 | 2018-03-25T09:50:01Z | 2018-03-29T02:31:13Z | 2018-03-29T02:31:13Z | 2018-03-31T16:37:48Z |
BUG: read_excel return empty dataframe when using usecols | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 658b9ff15783d..4a26497fa83c2 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2852,23 +2852,46 @@ Parsing Specific Columns
It is often the case that users will insert columns to do temporary computations
in Excel and you may not want to read in thos... | - [x] closes #18273
- [x] tests added / passed
- [x] passes git diff master --name-only -- "*.py" | grep "pandas/" | xargs -r flake8
- [x] whatsnew entry
As mentioned read_excel returns an empty DataFrame when usecols argument is a list of strings.
Now lists of strings are correctly interpreted by read_excel fun... | https://api.github.com/repos/pandas-dev/pandas/pulls/20480 | 2018-03-25T04:53:02Z | 2018-11-08T13:19:35Z | null | 2018-11-08T13:19:36Z |
Additional DOC and BUG fix related to merging with mix of columns and… | diff --git a/doc/source/merging.rst b/doc/source/merging.rst
index 98914c13d4d31..8a25d991c149b 100644
--- a/doc/source/merging.rst
+++ b/doc/source/merging.rst
@@ -31,10 +31,10 @@ operations.
Concatenating objects
---------------------
-The :func:`~pandas.concat` function (in the main pandas namespace) does all of... | Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
- [x] closes #20452
- [x] tests added / passed
- test_join.py
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- added to v0.24 related to bug fix
This PR adds... | https://api.github.com/repos/pandas-dev/pandas/pulls/20475 | 2018-03-23T22:20:56Z | 2018-12-04T13:11:04Z | 2018-12-04T13:11:04Z | 2019-07-12T17:21:10Z |
DOC: docstring to series.unique | diff --git a/pandas/core/base.py b/pandas/core/base.py
index b3eb9a0ae7530..7c31ea32bfa19 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1020,30 +1020,6 @@ def value_counts(self, normalize=False, sort=True, ascending=False,
normalize=normalize, bins=bins, dropna=dropna)
... | - [x] closes #20075
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
seems that no one has picked this up. moving _shared_doc['unique'] used by Series.unique() only to Series.unique.
```
########################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/20474 | 2018-03-23T22:08:19Z | 2018-03-27T20:50:12Z | 2018-03-27T20:50:12Z | 2018-03-27T21:39:46Z |
Parametrized NA sentinel for factorize | diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx
index 07b4b80603e03..15d93374da3a9 100644
--- a/pandas/_libs/hashtable.pyx
+++ b/pandas/_libs/hashtable.pyx
@@ -70,7 +70,7 @@ cdef class Factorizer:
return self.count
def factorize(self, ndarray[object] values, sort=False, na_sentinel=... | Adds a new keyword `na_value` to control the NA sentinel inside the factorize
routine.
```python
In [3]: arr = np.array([0, 1, 0, 2], dtype='u8')
In [4]: pd.factorize(arr)
Out[4]: (array([0, 1, 0, 2]), array([0, 1, 2], dtype=uint64))
In [5]: pd.factorize(arr, na_value=0)
Out[5]: (array([-1, 0, -1, 1]), a... | https://api.github.com/repos/pandas-dev/pandas/pulls/20473 | 2018-03-23T19:12:53Z | 2018-03-27T10:28:11Z | 2018-03-27T10:28:10Z | 2018-05-02T13:10:07Z |
DOC: update the pandas.Series.shift docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6ca8f6731bbb8..096abd4255779 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8361,32 +8361,59 @@ def mask(self, cond, other=np.nan, inplace=False, axis=None, level=None,
errors=errors)
_shared_docs[... | Checklist for the pandas documentation sprint (ignore this if you are doing an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream/... | https://api.github.com/repos/pandas-dev/pandas/pulls/20472 | 2018-03-23T18:54:42Z | 2018-11-04T15:24:10Z | 2018-11-04T15:24:10Z | 2018-11-04T15:24:23Z |
DOC: Fix broken dependency links | diff --git a/doc/source/install.rst b/doc/source/install.rst
index 7d741c6c2c75a..c96d4fbeb4ad2 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -212,7 +212,7 @@ Recommended Dependencies
``numexpr`` uses multiple cores as well as smart chunking and caching to achieve large speedups.
If installe... | - Change bottleneck link to github repository page.
- Fix link to fastparquet documentation. | https://api.github.com/repos/pandas-dev/pandas/pulls/20471 | 2018-03-23T13:39:39Z | 2018-03-25T14:32:14Z | 2018-03-25T14:32:14Z | 2018-03-25T14:32:16Z |
TST: Fixed version comparison | diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py
index aec561ece8573..8083a1ce69092 100644
--- a/pandas/tests/extension/json/test_json.py
+++ b/pandas/tests/extension/json/test_json.py
@@ -1,15 +1,14 @@
import operator
-import sys
import pytest
+from pandas.compat... | This failed to skip for 3.5.x because the micro component made it False.
closes https://github.com/pandas-dev/pandas/issues/20468 | https://api.github.com/repos/pandas-dev/pandas/pulls/20469 | 2018-03-23T11:11:38Z | 2018-03-24T01:14:11Z | 2018-03-24T01:14:11Z | 2018-03-24T01:14:14Z |
TST: clean deprecation warnings & some parametrizing | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8ff2b6c85eeed..9b09c87689762 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2153,7 +2153,7 @@ def _verbose_repr():
lines.append(_put_str(col, space) + tmpl % (count, dtype))
def _non_verbose_repr():
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/20467 | 2018-03-23T10:18:52Z | 2018-03-23T14:48:19Z | 2018-03-23T14:48:19Z | 2018-03-23T14:48:57Z | |
DOC: update the pandas.DatetimeIndex docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 75f4ec4f0d341..8288fac026730 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -175,41 +175,49 @@ def _new_DatetimeIndex(cls, d):
class DatetimeIndex(DatelikeOps, TimelikeOps, DatetimeIndexOpsMi... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the pandas.DatetimeIndex docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py pandas.DatetimeIndex`
- [ ] The PEP8 style check passes: `git diff upstream/master -u... | https://api.github.com/repos/pandas-dev/pandas/pulls/20465 | 2018-03-23T07:27:59Z | 2018-11-01T01:38:35Z | null | 2018-11-02T14:18:05Z |
DOC: update the Series.str.join docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index b98fa106336fc..6796c14a18eaa 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -941,17 +941,59 @@ def str_get_dummies(arr, sep='|'):
def str_join(arr, sep):
"""
- Join lists contained as elements in the Series/Index with
- ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20463 | 2018-03-22T21:57:36Z | 2018-03-27T12:10:37Z | 2018-03-27T12:10:37Z | 2018-03-27T12:10:49Z |
DOC: Improving the docstring of Series.str.upper and related | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index b98fa106336fc..09eed94b36c6b 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2145,11 +2145,68 @@ def rindex(self, sub, start=0, end=None):
_shared_docs['casemethods'] = ("""
Convert strings in the Series/Index to %(type)... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20462 | 2018-03-22T21:53:54Z | 2018-03-28T16:22:12Z | 2018-03-28T16:22:12Z | 2018-03-28T16:22:13Z |
CLN: Replacing %s with .format in pandas/core/frame.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f476bff4df2cd..a71ade3da87de 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -411,7 +411,7 @@ def __init__(self, data=None, index=None, columns=None, dtype=None,
arr = np.array(data, dtype=dtype, copy=copy)
exce... | - [x] Progress towards #16130
- [x] tests added / passed
- [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff | https://api.github.com/repos/pandas-dev/pandas/pulls/20461 | 2018-03-22T21:49:32Z | 2018-04-17T10:31:43Z | 2018-04-17T10:31:43Z | 2018-04-17T10:48:55Z |
ENH: fill_value argument for shift #15486 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index cf41737a04ba6..64a793d7be05c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3619,9 +3619,9 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
method=method, axis=axis... | This is a work in progress.
Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):
- [X] closes #15486
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20460 | 2018-03-22T21:39:37Z | 2018-10-11T02:00:30Z | null | 2018-10-11T02:00:30Z |
DOC: update the isna, isnull, notna and notnull docstring | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index 01c88c269e7e0..2c8d229f9b0cb 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -29,23 +29,78 @@
def isna(obj):
- """Detect missing values (NaN in numeric arrays, None/NaN in object arrays)
+ """
+... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20459 | 2018-03-22T21:27:35Z | 2018-03-26T20:12:21Z | 2018-03-26T20:12:21Z | 2018-03-26T20:12:24Z |
DOC: update the pandas.Series.str.startswith docstring | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index b98fa106336fc..d6a67435aeb09 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -328,19 +328,54 @@ def str_contains(arr, pat, case=True, flags=0, na=np.nan, regex=True):
def str_startswith(arr, pat, na=np.nan):
"""
- Return b... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20458 | 2018-03-22T21:21:21Z | 2018-03-25T22:49:17Z | 2018-03-25T22:49:17Z | 2018-03-26T06:26:16Z |
CLN: Removed dead GroupBy code | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 4352a001aa989..7b68ad67675ff 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -944,23 +944,6 @@ def _cumcount_array(self, ascending=True):
rev[sorter] = np.arange(count, dtype=np.intp)
return out[rev].astype(np.int64... |
- [X] closes #20456
- [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/20457 | 2018-03-22T18:45:18Z | 2018-03-22T22:48:48Z | 2018-03-22T22:48:47Z | 2018-12-25T06:12:49Z |
DOC: update the pandas.Series.map docstring | diff --git a/pandas/core/series.py b/pandas/core/series.py
index df0fa1c6c0659..2e6270e8739ae 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2951,74 +2951,25 @@ def unstack(self, level=-1, fill_value=None):
def map(self, arg, na_action=None):
"""
- Map values of Series using i... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20450 | 2018-03-22T12:40:32Z | 2018-08-18T22:22:28Z | 2018-08-18T22:22:28Z | 2018-08-19T10:50:51Z |
DOC: general docstring formatting fixes | diff --git a/pandas/core/base.py b/pandas/core/base.py
index f686975366419..b3eb9a0ae7530 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -855,6 +855,7 @@ def min(self):
'a'
For a MultiIndex, the minimum is determined lexicographically.
+
>>> idx = pd.MultiIndex.from_product([... | Some general formatting fixes (+ fix example in DatetimeIndex.strftime to actually use that method and not Timestamp.strftime).
Merging directly as it contains some PEP8 issues I merged in master. | https://api.github.com/repos/pandas-dev/pandas/pulls/20449 | 2018-03-22T10:32:17Z | 2018-03-22T10:34:27Z | 2018-03-22T10:34:27Z | 2018-03-22T10:34:30Z |
scatter plot and hexbin plot lose x-axis when colorbar is included. | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 0ca5b9cdf1d57..68f634bd5f85f 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -304,7 +304,7 @@ I/O
Plotting
^^^^^^^^
--
+- Bug in :func:'DataFrame.plot.scatter' and :func:'DataFrame.plot.hexbin'... | closes https://github.com/pandas-dev/pandas/issues/10611
closes https://github.com/pandas-dev/pandas/issues/10678.
The x-axis for scatter plot and hexbin plot disappears when colorbar is included. This seems to be because colorbar axis is looped through in `_handle_shared_axes`: https://github.com/pandas-dev/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/20446 | 2018-03-22T02:47:27Z | 2018-07-04T12:59:42Z | 2018-07-04T12:59:41Z | 2018-07-04T13:01:54Z |
API: Preserve int columns in to_dict('index') | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 1d60febe29b4a..c9653f3b7a3bd 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -715,6 +715,7 @@ Other API Changes
- :func:`Series.str.replace` now takes an optional `regex` keyword which, when set t... | - [x] closes #18580
- [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/20444 | 2018-03-21T22:58:59Z | 2018-03-25T14:10:27Z | 2018-03-25T14:10:27Z | 2018-03-25T16:09:09Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.