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 |
|---|---|---|---|---|---|---|---|
DEPR: Removed styler shim | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9a4747f40b86d..66b6923ef13e4 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -571,6 +571,7 @@ Removal of prior version deprecations/changes
- Strings passed into :meth:`DataFrame.groupby` that ref... | https://api.github.com/repos/pandas-dev/pandas/pulls/22691 | 2018-09-13T13:36:44Z | 2018-09-13T20:21:19Z | 2018-09-13T20:21:19Z | 2018-09-13T20:21:22Z | |
ENH: correlation function accepts method being a callable | diff --git a/doc/source/computation.rst b/doc/source/computation.rst
index 5e7b8be5f8af0..0d2021de8f88e 100644
--- a/doc/source/computation.rst
+++ b/doc/source/computation.rst
@@ -153,6 +153,21 @@ Like ``cov``, ``corr`` also supports the optional ``min_periods`` keyword:
frame.corr(min_periods=12)
+.. versiona... | - other than the listed strings for the `method` argument, accept a callable for generic correlation calculations
- ~~~minor fix of = to == in requirements file~~~
- [ ] closes #xxxx (no issue opened for PR)
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] wha... | https://api.github.com/repos/pandas-dev/pandas/pulls/22684 | 2018-09-13T08:44:25Z | 2018-09-26T10:20:21Z | 2018-09-26T10:20:21Z | 2018-09-26T10:20:26Z |
TST Replace unittest.TestCase.fail calls, use pytest.raises instead of legacy constructs | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index f0c4d7be2f293..96b2e98dd7e8d 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -71,12 +71,8 @@ def test_getitem(self):
def test_getitem_dupe_cols(self):
df = DataFrame... | Similarly to https://github.com/numpy/numpy/pull/11933,
> Following pytest migration there are unit tests that used to call unittest.TestCase.fail and now will produce a misleading error message on failure because the fail method no longer exists (test classes just inherit from object).
>
> This fixes this issue, b... | https://api.github.com/repos/pandas-dev/pandas/pulls/22681 | 2018-09-12T20:39:38Z | 2018-09-13T22:05:04Z | 2018-09-13T22:05:04Z | 2018-09-13T22:11:41Z |
Close ZipFile in compression test | diff --git a/pandas/conftest.py b/pandas/conftest.py
index fdac045e67ffa..28c24fc8c0640 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -8,11 +8,14 @@
import pandas as pd
from pandas.compat import PY3
import pandas.util._test_decorators as td
-
import hypothesis
-hypothesis.settings.suppress_health_chec... | Maybe fixes #22675
Maybe fixed #22682 | https://api.github.com/repos/pandas-dev/pandas/pulls/22679 | 2018-09-12T16:06:24Z | 2018-09-13T13:24:15Z | 2018-09-13T13:24:15Z | 2018-09-13T13:24:18Z |
DOC: Add section on MultiIndex.to_frame() ordering | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 955f1461075f9..ac83deee49b09 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1130,6 +1130,9 @@ def to_frame(self, index=True):
"""
Create a DataFrame with the levels of the MultiIndex as col... | - Closes #22662 | https://api.github.com/repos/pandas-dev/pandas/pulls/22674 | 2018-09-12T01:10:02Z | 2018-09-12T11:11:54Z | 2018-09-12T11:11:53Z | 2018-09-12T11:11:56Z |
DOC: Fix DataFrame.to_xarray doctests and allow the CI to run it. | diff --git a/ci/doctests.sh b/ci/doctests.sh
index a941515fde4ae..e7fe80e60eb6d 100755
--- a/ci/doctests.sh
+++ b/ci/doctests.sh
@@ -35,7 +35,7 @@ if [ "$DOCTEST" ]; then
fi
pytest --doctest-modules -v pandas/core/generic.py \
- -k"-_set_axis_name -_xs -describe -droplevel -groupby -interpolate -pct_... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Fix the docstring for DataFrame.to_xarray as described in #22459 . I removed the pandas.panel example since it was deprecated and I replaced it with a MultiIndex. | https://api.github.com/repos/pandas-dev/pandas/pulls/22673 | 2018-09-12T00:42:11Z | 2018-09-19T15:37:37Z | 2018-09-19T15:37:37Z | 2018-09-19T17:21:25Z |
MAINT: Standardize searchsorted signature | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index f2ec08c61a6d8..f311d72427d33 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -559,6 +559,7 @@ Deprecations
- :func:`pandas.read_table` is deprecated. Instead, use :func:`pandas.read_csv` passing `... | "value" is the law of the land.
xref #14645.
Follow-up to #15601. | https://api.github.com/repos/pandas-dev/pandas/pulls/22672 | 2018-09-12T00:24:12Z | 2018-09-15T17:53:41Z | 2018-09-15T17:53:41Z | 2018-09-16T04:00:56Z |
DOC: add cross references to advanced.rst | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 2be1a53aa6c93..611afb3670ebc 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -15,7 +15,7 @@
MultiIndex / Advanced Indexing
******************************
-This section covers indexing with a ``MultiIndex`` and more advanced i... | IMO the [MultiIndex / Advanced Indexing](http://pandas-docs.github.io/pandas-docs-travis/advanced.html) section of the docs are a bit thin on cross references, so it's too difficult to make deeper looks into the API, when you are in doubt.
I've added cross references. They're added relatively sparingly, typically o... | https://api.github.com/repos/pandas-dev/pandas/pulls/22671 | 2018-09-12T00:06:59Z | 2018-09-12T06:01:13Z | 2018-09-12T06:01:13Z | 2018-09-12T06:03:06Z |
CLN: Standardize searchsorted signatures | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 3660c1e843f6c..99a5d3b3966fc 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -570,6 +570,8 @@ Removal of prior version deprecations/changes
- Strings passed into :meth:`DataFrame.groupby` that ref... | The parameter is "value" across the board.
xref #14645. | https://api.github.com/repos/pandas-dev/pandas/pulls/22670 | 2018-09-11T23:23:23Z | 2018-09-13T19:52:35Z | 2018-09-13T19:52:35Z | 2018-09-14T18:10:21Z |
is_bool_dtype for ExtensionArrays | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index e2ba35c1ad7f9..2f70d4e5946a0 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -485,6 +485,7 @@ ExtensionType Changes
- ``ExtensionArray`` has gained the abstract methods ``.dropna()`` (:issue:`2118... | Closes #22326
Closes #22665
Two commits: https://github.com/pandas-dev/pandas/commit/fe3500248dec1b21469e94e054f636dc7707fae0 partially implements an Arrow-backed ExtensionArray. We need this as we don't currently have any boolean-values EAs.
https://github.com/pandas-dev/pandas/commit/04029ac94d1e53fbec18264b... | https://api.github.com/repos/pandas-dev/pandas/pulls/22667 | 2018-09-11T19:28:36Z | 2018-09-20T14:01:32Z | 2018-09-20T14:01:32Z | 2018-09-20T23:23:15Z |
API: register_extension_dtype class decorator | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 77d37ec2a7b2e..9c3770a497cf8 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -2559,6 +2559,7 @@ objects.
.. autosummary::
:toctree: generated/
+ api.extensions.register_extension_dtype
api.extensions.register_dataframe_accessor
api.... | Closes https://github.com/pandas-dev/pandas/issues/22664 | https://api.github.com/repos/pandas-dev/pandas/pulls/22666 | 2018-09-11T19:03:12Z | 2018-09-13T11:27:43Z | 2018-09-13T11:27:43Z | 2018-09-13T11:30:33Z |
DOC/CLN: small whatsnew fixes | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fb7af00f61534..3660c1e843f6c 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -164,7 +164,7 @@ This is the same behavior as ``Series.values`` for categorical data. See
Other Enhancements
^^^^^^^^^... | Small edits to fix some instances where the text isn't rendering as intended. | https://api.github.com/repos/pandas-dev/pandas/pulls/22659 | 2018-09-11T05:24:48Z | 2018-09-11T18:24:14Z | 2018-09-11T18:24:14Z | 2018-09-24T17:21:40Z |
Make show_versions not to reload modules (GH13684) | diff --git a/pandas/util/print_versions.py b/pandas/util/print_versions.py
index 70df1df336704..3747e2ff6ca8f 100644
--- a/pandas/util/print_versions.py
+++ b/pandas/util/print_versions.py
@@ -101,7 +101,10 @@ def show_versions(as_json=False):
deps_blob = list()
for (modname, ver_f) in deps:
try:
- ... | closes #13684
| https://api.github.com/repos/pandas-dev/pandas/pulls/14126 | 2016-08-31T10:35:26Z | 2016-09-01T07:28:54Z | 2016-09-01T07:28:53Z | 2016-09-01T07:29:28Z |
BUG: series resample with timedelta values looses dtype (GH13119) | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 45cdd23140487..1e14a2308e7e9 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -1260,7 +1260,7 @@ Bug Fixes
- Bug in ``.value_counts`` raises ``OutOfBoundsDatetime`` if data exceeds ``datetime64[ns]... | - [x] closes #13119
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/14118 | 2016-08-29T16:42:25Z | 2016-08-31T07:52:49Z | 2016-08-31T07:52:49Z | 2016-08-31T07:52:49Z |
TST: confirming tests for some fixed issues | diff --git a/pandas/tseries/tests/test_period.py b/pandas/tseries/tests/test_period.py
index 1ddcc11c15a59..468c3d5bfc37c 100644
--- a/pandas/tseries/tests/test_period.py
+++ b/pandas/tseries/tests/test_period.py
@@ -2180,6 +2180,13 @@ def test_getitem_nat(self):
pd.Period('2011-01', freq='M')... | closes #7710, closes #8617, closes #13119
Closes a few issues still tagged with 0.19.0 that only need a confirming test
| https://api.github.com/repos/pandas-dev/pandas/pulls/14117 | 2016-08-29T14:10:49Z | 2016-09-01T07:28:07Z | 2016-09-01T07:28:06Z | 2016-09-01T07:29:16Z |
API: Raise FileNotFoundError in read_csv | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 86897f51fd9d4..da91a1be660b3 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -455,6 +455,7 @@ API changes
- ``Timestamp.to_pydatetime`` will issue a ``UserWarning`` when ``warn=True``, and the ins... | For a nonexistent file, raise the more specific `FileNotFoundError` for Python >= 3.3 in `read_csv`.
Closes #14086.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14116 | 2016-08-29T03:50:30Z | 2016-09-01T08:19:15Z | 2016-09-01T08:19:15Z | 2016-09-01T08:20:02Z |
DOC: small update to install.rst page | diff --git a/README.md b/README.md
index 1334d9696764b..6ebc287fa2cf6 100644
--- a/README.md
+++ b/README.md
@@ -148,7 +148,7 @@ pip install pandas
- [pytz](http://pytz.sourceforge.net)
- Needed for time zone support with ``pandas.date_range``
-See the [full installation instructions](http://pandas.pydata.org/p... | Move some content from the removed content on dependencies from the README (see GH13882)
I was going through the install.rst, and updated some small things, but there was actually no content from README to be moved.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14115 | 2016-08-28T18:34:52Z | 2016-08-29T12:44:19Z | 2016-08-29T12:44:19Z | 2016-08-29T12:44:22Z |
DEPR: Deprecated PeriodIndex.to_datetime | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 45cdd23140487..027e75a007ed3 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -1061,6 +1061,7 @@ Deprecations
- ``Categorical.reshape`` has been deprecated and will be removed in a subsequent relea... | Continuation of #14096 by deprecating `PeriodIndex.to_datetime` in favour of `PeriodIndex.to_timestamp`.
Also addresses #8254.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14113 | 2016-08-28T17:25:56Z | 2016-09-01T08:03:39Z | 2016-09-01T08:03:39Z | 2016-09-01T08:18:46Z |
Test for segfault in factorize (gh12666) | diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py
index 9543d9bba2a3a..092e02ee261a0 100644
--- a/pandas/tests/test_algos.py
+++ b/pandas/tests/test_algos.py
@@ -299,6 +299,16 @@ def _test_vector_resize(htable, uniques, dtype, nvals):
_test_vector_resize(tbl(), vect(), dtype, 0)
... | - [x] closes #12666
- [x] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
Not sure about the last. It's my first PR.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14112 | 2016-08-28T15:09:35Z | 2016-08-31T16:17:14Z | 2016-08-31T16:17:14Z | 2016-08-31T16:17:19Z |
DEPR: Deprecate pandas.core.datetools | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 36e492df29983..924f286164225 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -7,7 +7,7 @@
from datetime import datetime, timedelta, time
import numpy as np
import pandas as pd
- from pandas import datetools
... | Title is self-explanatory. Closes #14094.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14105 | 2016-08-28T07:54:54Z | 2016-09-07T13:16:02Z | 2016-09-07T13:16:02Z | 2016-09-07T14:43:36Z |
DEPR: Deprecate Timestamp.to_datetime | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 9c5c36528d31b..62483816c3c8a 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -436,6 +436,7 @@ API changes
~~~~~~~~~~~
+- ``Timestamp.to_pydatetime`` will issue a ``UserWarning`` when ``warn=Tr... | 1) Deprecate `NaT.to_datetime`
2) Deprecate `Timestamp.to_datetime`
3) Issue `UserWarning` in `Timestamp.to_datetime` when nanoseconds is non-zero
`NaT` is also a `_Timestamp`, so the second deprecation covered the first one as well.
Closes #8254.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14101 | 2016-08-27T17:51:19Z | 2016-08-29T12:42:43Z | 2016-08-29T12:42:43Z | 2016-08-30T01:15:03Z |
COMPAT/BLD: int dtype in json tests | diff --git a/pandas/io/tests/json/test_ujson.py b/pandas/io/tests/json/test_ujson.py
index 0dda6ead2a3b9..704023bd847b7 100644
--- a/pandas/io/tests/json/test_ujson.py
+++ b/pandas/io/tests/json/test_ujson.py
@@ -1321,20 +1321,22 @@ def testSeries(self):
numpy=True))
out... | Fixes failing windows build
https://ci.appveyor.com/project/jreback/pandas-465/build/job/p8hju341jyhnkogc
| https://api.github.com/repos/pandas-dev/pandas/pulls/14100 | 2016-08-27T16:01:08Z | 2016-08-28T13:14:55Z | 2016-08-28T13:14:55Z | 2016-08-28T13:14:59Z |
CLN/PERF: clean-up of the benchmarks | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 53b7d55368f6a..c4a6117c0704a 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -3,7 +3,7 @@
from pandas.util import testing as tm
-class algorithm(object):
+class Algorithms(object):... | Related to https://github.com/pydata/pandas/issues/10849 (similar to https://github.com/pydata/pandas/pull/10998)
Just putting this up, was doing some time ago, but not yet fully ready, and thought to already merge this (if the content is OK) to not get too much conflicts.
Gist: removing redundancy by gathering tests... | https://api.github.com/repos/pandas-dev/pandas/pulls/14099 | 2016-08-27T15:53:54Z | 2016-12-10T14:30:31Z | 2016-12-10T14:30:31Z | 2016-12-10T14:33:32Z |
Added consistent pandas imports in io documentation | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 26e928020b893..96ec624f4fd3c 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -19,11 +19,10 @@
import matplotlib.pyplot as plt
plt.close('all')
- from pandas import *
- options.display.max_rows=15
import pandas.util.testing as tm
- cl... | Partially addresses #9886
| https://api.github.com/repos/pandas-dev/pandas/pulls/14097 | 2016-08-27T11:36:01Z | 2016-08-29T12:24:29Z | 2016-08-29T12:24:29Z | 2016-08-29T12:24:35Z |
DEPR: Deprecated Index.to_datetime | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 37c1be0289d40..7e857b254d0a6 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -1031,6 +1031,7 @@ Deprecations
- ``Categorical.reshape`` has been deprecated and will be removed in a subsequent relea... | Deprecates both `Index.to_datetime` and `DatetimeIndex.to_datetime` in favor of `pd.to_datetime`.
Partially addresses #8254.
Closes #5612 because `pd.to_datetime` does have a `format` argument.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14096 | 2016-08-27T06:02:54Z | 2016-08-27T09:21:45Z | 2016-08-27T09:21:45Z | 2016-08-27T16:30:47Z |
TST/DOC: apply date() with timezones | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index a35b8d561a5a7..6f44ee0c87945 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -544,8 +544,8 @@ There are several time/date properties that one can access from ``Timestamp`` or
second,"The seconds of the datetime"
... | - [x] closes #11757
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/14085 | 2016-08-25T00:24:10Z | 2016-08-25T22:20:12Z | 2016-08-25T22:20:12Z | 2016-08-25T22:20:22Z |
BUG: Don't parse index column as numeric when parse_dates=True | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 2811e31128156..01279da3b5796 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -1125,6 +1125,7 @@ Bug Fixes
- Bug in ``Categorical.from_codes()`` where an unhelpful error was raised when an invalid ... | When a thousands parameter is specified, if the index column data contains that thousands value for date purposes (e.g. '.'), do not interpret those characters as the thousands parameter.
Closes #14066.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14077 | 2016-08-24T07:57:28Z | 2016-08-27T13:31:30Z | 2016-08-27T13:31:30Z | 2016-08-27T16:25:14Z |
DOC: split docstring into multiple lines in excel.py | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index 5e4dd4379a8e3..89ce5aec8d264 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -29,6 +29,7 @@
from warnings import warn
from distutils.version import LooseVersion
from pandas.util.decorators import Appender
+from textwrap import fill
__all__ = [... | - [x] closes #13967
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
A follow-up on #14030.
Not sure whether this is the good way to do it - this seems too verbose.
I will add it to `parsers.py` or move it to `common.py` once it's done.
I also thought about mov... | https://api.github.com/repos/pandas-dev/pandas/pulls/14073 | 2016-08-23T18:36:41Z | 2016-09-15T14:59:32Z | 2016-09-15T14:59:32Z | 2016-09-15T14:59:32Z |
TST: Add tests for internal EOF in read_csv | diff --git a/pandas/io/tests/parser/common.py b/pandas/io/tests/parser/common.py
index 7777a9f2fadb5..b90fc304e125e 100644
--- a/pandas/io/tests/parser/common.py
+++ b/pandas/io/tests/parser/common.py
@@ -1593,3 +1593,11 @@ def test_read_csv_utf_aliases(self):
data = 'mb_num,multibyte\n4.8,test'.encode... | Title is self-explanatory. Closes #5500.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14069 | 2016-08-23T02:13:48Z | 2016-08-24T23:27:45Z | 2016-08-24T23:27:45Z | 2016-08-25T03:02:18Z |
BUG: Align to_csv signatures with DataFrame and Series | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 32edcf6e698a3..7979a230eed84 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2538,16 +2538,17 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,
return result
- def to_csv(self, path, index=True, sep=",",... | Default `path=None` in `Series.to_csv()` for consistency with `DataFrame.to_csv()`.
Closes #14054.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14063 | 2016-08-22T03:56:09Z | 2016-08-24T23:28:45Z | 2016-08-24T23:28:45Z | 2016-08-25T03:01:44Z |
ENH: add parameter to to_html for HTML border | diff --git a/doc/source/options.rst b/doc/source/options.rst
index 25f03df4040a3..77cac6d495d13 100644
--- a/doc/source/options.rst
+++ b/doc/source/options.rst
@@ -392,6 +392,9 @@ display.width 80 Width of the display in characters.
IPython qtconsole, or ... | Closes https://github.com/pydata/pandas/issues/11563
Previously this was hardcoded to `<table border="1" ...>`. Now we allow an option to `to_html`.
The only controversial bit here may be the option. I really don't like having options control output, but given that this is essentially a repr I think it's OK. It's als... | https://api.github.com/repos/pandas-dev/pandas/pulls/14061 | 2016-08-22T00:53:20Z | 2016-08-31T08:07:31Z | 2016-08-31T08:07:31Z | 2017-04-05T02:08:04Z |
Fix/read csv utf aliases | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 222bd250034d8..513a115c78da9 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -1095,3 +1095,5 @@ Bug Fixes
- Bug in ``Index`` raises ``KeyError`` displaying incorrect column when column is not in t... | - [x] closes #13549
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
-read_csv with engine=c throws error when encoding=UTF_16 (anything other than utf-16)
-improved nosetests and moved to in pandas/io/tests/common.py
-passes `pep8radius upstream/master --diff` a... | https://api.github.com/repos/pandas-dev/pandas/pulls/14060 | 2016-08-21T20:45:32Z | 2016-08-22T20:47:18Z | 2016-08-22T20:47:18Z | 2016-08-22T20:51:44Z |
BUG: Validate the ordered parameter for Categorical | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index e60ac7f3773f0..418532ca817c6 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -966,6 +966,7 @@ Bug Fixes
- Bug in ``DataFrame`` assignment with an object-dtyped ``Index`` where the resultant column... | Title is self-explanatory. Closes #14058.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14059 | 2016-08-21T17:39:12Z | 2016-08-21T19:53:49Z | 2016-08-21T19:53:49Z | 2016-08-21T20:47:43Z |
BUG, DOC: Fix inconsistencies with scalar na_values in read_csv | diff --git a/doc/source/io.rst b/doc/source/io.rst
index cc693170f055a..26e928020b893 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -208,7 +208,7 @@ memory_map : boolean, default False
NA and Missing Data Handling
++++++++++++++++++++++++++++
-na_values : str, list-like or dict, default ``None``
+na_val... | 1) Update documentation to state that scalars are accepted for `na_values`
2) Accept scalars for the values when a dictionary is passed in for `na_values`
Closes #12224.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14056 | 2016-08-21T02:56:25Z | 2016-08-21T19:34:41Z | 2016-08-21T19:34:41Z | 2016-08-21T20:47:36Z |
BUG: Don't error when usecols is a numpy array | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 7b261f6249e04..e1a66f0740e10 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -945,6 +945,7 @@ Bug Fixes
- Bug in ``groupby().cumsum()`` calculating ``cumprod`` when ``axis=1``. (:issue:`13994`)
-... | Converts `usecols` to a `set` just like we do on the C engine side.
Closes #12546.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14055 | 2016-08-20T18:06:24Z | 2016-08-21T14:17:47Z | 2016-08-21T14:17:47Z | 2016-08-21T16:18:38Z |
DOC: add data_columns to doc string of to_hdf and HDFStore.append | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b0045054a822a..8e295174771c4 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1105,18 +1105,20 @@ def to_hdf(self, path_or_buf, key, **kwargs):
and if the file does not exist it is created.
``'r+'``
... | Follow-up of #13951, rebase of PR #13065
| https://api.github.com/repos/pandas-dev/pandas/pulls/14046 | 2016-08-19T11:52:41Z | 2016-08-19T20:41:37Z | 2016-08-19T20:41:37Z | 2016-08-19T21:00:26Z |
CLN: Drop lags parameter from Panel.shift | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index c7f0beb439596..cc3cc631b9575 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -891,6 +891,7 @@ Removal of prior version deprecations/changes
- ``pd.Categorical`` has dropped setting of the ``ordere... | Title is self-explanatory.
xref #6928
| https://api.github.com/repos/pandas-dev/pandas/pulls/14041 | 2016-08-19T06:00:38Z | 2016-08-19T09:02:46Z | 2016-08-19T09:02:46Z | 2016-08-19T16:30:39Z |
CLN: Removed DataFrame.to_wide | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index cc3cc631b9575..f6a03a613f75f 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -894,6 +894,7 @@ Removal of prior version deprecations/changes
- ``Panel.shift()`` has dropped the ``lags`` parameter i... | `to_wide` was deprecated since 2011 (https://github.com/pydata/pandas/commit/1134c9f6c40398d8eba37c312c88ce294e31c6c5)
xref https://github.com/pydata/pandas/issues/13777
No tests for this deprecation beforehand to remove :disappointed:
| https://api.github.com/repos/pandas-dev/pandas/pulls/14039 | 2016-08-19T02:26:41Z | 2016-08-19T21:36:29Z | 2016-08-19T21:36:29Z | 2016-08-20T01:31:49Z |
DOC: unpin IPython version (GH13639) | diff --git a/ci/requirements-2.7_DOC_BUILD.run b/ci/requirements-2.7_DOC_BUILD.run
index cde0719aa027e..b87a41df4191d 100644
--- a/ci/requirements-2.7_DOC_BUILD.run
+++ b/ci/requirements-2.7_DOC_BUILD.run
@@ -1,4 +1,4 @@
-ipython=4.2.0
+ipython
ipykernel
sphinx
nbconvert
| https://api.github.com/repos/pandas-dev/pandas/pulls/14037 | 2016-08-18T20:55:34Z | 2016-08-27T13:34:27Z | 2016-08-27T13:34:27Z | 2016-08-27T13:34:27Z | |
ENH: Add groupby().ngroup() method to count groups (#11642) | diff --git a/doc/source/api.rst b/doc/source/api.rst
index e210849d9a0ca..cc8c5f6356e58 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1707,6 +1707,7 @@ Computations / Descriptive Stats
GroupBy.mean
GroupBy.median
GroupBy.min
+ GroupBy.ngroup
GroupBy.nth
GroupBy.ohlc
GroupBy.prod... | This basically adds a method to give access to the coding returned by `grouper.group_info[0]`, i.e. the number of the group that each row is in. This is a natural parallel to cumcount(), and while it's not the world's most important feature it's come in handy for me from time to time and deserves a public method, IMHO... | https://api.github.com/repos/pandas-dev/pandas/pulls/14026 | 2016-08-18T01:44:22Z | 2017-06-01T22:12:15Z | 2017-06-01T22:12:15Z | 2017-06-04T17:02:55Z |
DEPR: Deprecate SparseList | diff --git a/doc/source/sparse.rst b/doc/source/sparse.rst
index 2496335dc7b71..db9734edde482 100644
--- a/doc/source/sparse.rst
+++ b/doc/source/sparse.rst
@@ -90,6 +90,8 @@ can be converted back to a regular ndarray by calling ``to_dense``:
SparseList
----------
+.. note:: The ``SparseList`` class has been deprec... | Title is self-explanatory. Closes #13784.
| https://api.github.com/repos/pandas-dev/pandas/pulls/14007 | 2016-08-16T02:24:36Z | 2016-08-16T09:57:38Z | 2016-08-16T09:57:38Z | 2016-08-16T14:10:13Z |
BUG: No affect both index and column(GH 13522) | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 3600b8f52873b..e82332cd1d3b5 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -861,6 +861,7 @@ Bug Fixes
- Bug in ``io.json.json_normalize()``, where non-ascii keys raised an exception (:issue:`132... | - [x] closes #13522
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/14005 | 2016-08-15T15:40:29Z | 2016-08-17T22:03:59Z | 2016-08-17T22:03:59Z | 2016-08-18T08:49:57Z |
DOC: fixed using IP.prompt_manager which is removed from IPython 5.x | diff --git a/doc/sphinxext/ipython_sphinxext/ipython_directive.py b/doc/sphinxext/ipython_sphinxext/ipython_directive.py
index ad7ada8e4eea3..b8b0935cd5b96 100644
--- a/doc/sphinxext/ipython_sphinxext/ipython_directive.py
+++ b/doc/sphinxext/ipython_sphinxext/ipython_directive.py
@@ -802,10 +802,14 @@ def setup(self):
... | - [x] closes #14003, #13639
- [ ] tests added / passed (there's no test on building docs)
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry (it's not user facing bug fix)
this PR was made during PyCon APAC, pandas sprint
thanks
| https://api.github.com/repos/pandas-dev/pandas/pulls/14004 | 2016-08-15T08:03:05Z | 2016-08-18T20:50:14Z | 2016-08-18T20:50:14Z | 2016-08-18T20:50:26Z |
GH13347 ENH Allow true_values and false_values options in read_excel | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index f3a6736ff9920..ed2278c3116f0 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -513,6 +513,7 @@ Other enhancements
- ``Timestamp``, ``Period``, ``DatetimeIndex``, ``PeriodIndex`` and ``.dt`` accesso... | - [ X] closes #13347
- [ X] tests added / passed
- [ X] passes `git diff upstream/master | flake8 --diff`
- [ X] whatsnew entry
<img width="1016" alt="asv_tests" src="https://cloud.githubusercontent.com/assets/609873/17653246/3a3f842a-6260-11e6-8ed2-1d21cc2fccc8.png">
| https://api.github.com/repos/pandas-dev/pandas/pulls/14002 | 2016-08-15T00:47:17Z | 2016-09-13T23:07:26Z | 2016-09-13T23:07:26Z | 2017-12-12T15:39:45Z |
Fixed to_string with line_width and without index | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 3600b8f52873b..027669012cda3 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -989,3 +989,4 @@ Bug Fixes
- Bug in ``Index`` raises ``KeyError`` displaying incorrect column when column is not in the... | When calling to_string on a DataFrame with line_width, this calls
_join_multiline internally which only sets the idx variable when
index is True, otherwise idx is never set resulting in the error:
UnboundLocalError: local variable 'idx' referenced before assignment
| https://api.github.com/repos/pandas-dev/pandas/pulls/13998 | 2016-08-14T04:02:31Z | 2016-08-15T17:53:24Z | 2016-08-15T17:53:24Z | 2016-08-15T17:53:50Z |
CLN: move _na_value to DatetimeIndexOpsMixin | diff --git a/pandas/tseries/base.py b/pandas/tseries/base.py
index d10e77d7ae45d..353823e296cf8 100644
--- a/pandas/tseries/base.py
+++ b/pandas/tseries/base.py
@@ -353,6 +353,9 @@ def get_duplicates(self):
values = Index.get_duplicates(self)
return self._simple_new(values)
+ _na_value = tslib.Na... | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
Because `PeriodIndex` now shares the same `NaT` repr (#13609), can use the same definition on `DatetimeIndexOpsMixin`
| https://api.github.com/repos/pandas-dev/pandas/pulls/13997 | 2016-08-13T21:54:19Z | 2016-08-15T12:29:13Z | 2016-08-15T12:29:13Z | 2016-08-15T12:36:15Z |
DOC: suppress warnings for Panel4D deprecation | diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst
index 8f89cd6789f4f..b5ad681426b15 100644
--- a/doc/source/dsintro.rst
+++ b/doc/source/dsintro.rst
@@ -1042,6 +1042,7 @@ The following creates a Panel5D. A new panel type object must be sliceable into
Here we slice to a Panel4D.
.. ipython:: python
+ ... | Other options is to just remove those sections in the latest docs ... (they are always available in the older ones).
The example in the HDF5 docs with a legacy file will have to be updated to not include Panel4D, or the reading of such files will have to be adapted in the future to handle those when Panel4D is actuall... | https://api.github.com/repos/pandas-dev/pandas/pulls/13989 | 2016-08-13T13:29:36Z | 2016-08-13T20:14:08Z | 2016-08-13T20:14:08Z | 2016-08-13T20:14:09Z |
CLN: Datetimelike._can_hold_na | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 687782172693a..2c8031898c78e 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -8,6 +8,7 @@
from pandas import (Series, Index, Float64Index, Int64Index, RangeIndex,
MultiIndex, Cate... | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] no whatsnew, as it is internal fix
datetimelike `Index._can_hold_na` is all `False` even though these can store `NaT`.
```
idx = pd.DatetimeIndex(['2011-01-01', 'NaT'])
idx.hasnans
# True
idx._can_hold_na
# False
idx._nan_idxs
... | https://api.github.com/repos/pandas-dev/pandas/pulls/13983 | 2016-08-13T09:20:07Z | 2016-09-01T07:27:38Z | 2016-09-01T07:27:38Z | 2016-09-03T03:00:40Z |
API: change unique to return Index | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 9c5c36528d31b..29d6d972a7a55 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -457,7 +457,7 @@ API changes
- ``Timestamp``, ``Period``, ``DatetimeIndex``, ``PeriodIndex`` and ``.dt`` accessor have ... | - [x] closes #13395, closes #13565
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/13979 | 2016-08-13T01:39:54Z | 2016-08-29T12:29:04Z | 2016-08-29T12:29:04Z | 2016-08-29T22:41:39Z |
DOC: remove rplot seaborn equivalent example figures | diff --git a/doc/source/_static/rplot-seaborn-example1.png b/doc/source/_static/rplot-seaborn-example1.png
deleted file mode 100644
index d19a3a018bfbf..0000000000000
Binary files a/doc/source/_static/rplot-seaborn-example1.png and /dev/null differ
diff --git a/doc/source/_static/rplot-seaborn-example2.png b/doc/source... | https://api.github.com/repos/pandas-dev/pandas/pulls/13954 | 2016-08-10T10:47:29Z | 2016-08-10T14:16:10Z | 2016-08-10T14:16:10Z | 2016-08-10T14:16:10Z | |
DOC: add whatsnew for #11920 | diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt
index 4f81eafa3adaf..bf7ccd77d169b 100644
--- a/doc/source/whatsnew/v0.19.0.txt
+++ b/doc/source/whatsnew/v0.19.0.txt
@@ -409,6 +409,8 @@ Other enhancements
df.sort_values(by='row2', axis=1)
- Added documentation to :ref:`I/O<io.dty... | #11920 (forgot to add to commit when merging)
| https://api.github.com/repos/pandas-dev/pandas/pulls/13953 | 2016-08-10T10:22:03Z | 2016-08-10T12:27:13Z | 2016-08-10T12:27:13Z | 2016-08-11T15:48:26Z |
COMPAT/TST: windows sparse int comparisons | diff --git a/pandas/sparse/tests/test_arithmetics.py b/pandas/sparse/tests/test_arithmetics.py
index 87efc362581cd..b5945151db678 100644
--- a/pandas/sparse/tests/test_arithmetics.py
+++ b/pandas/sparse/tests/test_arithmetics.py
@@ -281,28 +281,29 @@ def test_int_array(self):
self._check_numeric_ops(a, b, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/13927 | 2016-08-07T01:08:27Z | 2016-08-07T01:24:12Z | 2016-08-07T01:24:12Z | 2016-08-07T01:24:12Z | |
TST: Multiindex slicing with NaNs, unexpected results for #25154 | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index 6c0d1c285acf3..d0ef95d2fa56c 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -229,6 +229,85 @@ def test_frame_getitem_nan_multiin... | - [x] closes #25154
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Added test case for Multiindex slicing with NaNs.
Executed linting test based on the ins... | https://api.github.com/repos/pandas-dev/pandas/pulls/39356 | 2021-01-23T21:41:51Z | 2021-02-05T15:41:15Z | 2021-02-05T15:41:15Z | 2022-08-17T16:08:34Z |
BUG: read_excel failing to check older xlrd versions properly | diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst
index c5825d0881515..51535501f5c1b 100644
--- a/doc/source/whatsnew/v1.2.2.rst
+++ b/doc/source/whatsnew/v1.2.2.rst
@@ -14,6 +14,8 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+
+- Fixed regression in :func:`r... | - [ ] closes #38955
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Probably should be in 1.2.1 given that this occurred after the deprecation of the xlrd eng... | https://api.github.com/repos/pandas-dev/pandas/pulls/39355 | 2021-01-23T20:43:59Z | 2021-02-01T13:45:49Z | 2021-02-01T13:45:48Z | 2023-12-31T14:12:31Z |
TST: remove incorrect xfails | diff --git a/pandas/tests/extension/test_numpy.py b/pandas/tests/extension/test_numpy.py
index 1f0181eec8830..5c8752eb86b93 100644
--- a/pandas/tests/extension/test_numpy.py
+++ b/pandas/tests/extension/test_numpy.py
@@ -364,18 +364,6 @@ class TestReshaping(BaseNumPyTests, base.BaseReshapingTests):
def test_concat... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39354 | 2021-01-23T19:44:23Z | 2021-01-24T21:13:03Z | 2021-01-24T21:13:03Z | 2021-01-24T21:22:28Z |
ENH: making mode stable/keeping original ordering | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index e3ab8b243e25a..3214b21133b72 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -284,16 +284,29 @@ def time_clip(self, n):
class ValueCounts:
- params = ["int", "ui... | - [x] closes #39007
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This is follow up of #39009 but for `mode`: now keys returned by `mode` are in the origina... | https://api.github.com/repos/pandas-dev/pandas/pulls/39353 | 2021-01-23T19:09:47Z | 2021-01-27T14:03:52Z | 2021-01-27T14:03:52Z | 2021-01-27T19:04:33Z |
STYLE: Fix incorrect path to ujson directory | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index d2f20a91cc654..597aced96eb18 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -64,7 +64,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
# this particular codebase (e.g. src/headers, src/klib). However,
# we can lint all header files since... | - [x] closes #39347
I fixed the path to `ujson` directory so `cpplint` will run on `pandas/_libs/src/ujson/` instead of `pandas/_libs/ujson`, which doesn't exist.
But the title of the issue says `cpplint (unintentionally?) skips pandas/_libs/src/ujson/`, so I understand there's a chance the `pandas/_libs/src/ujs... | https://api.github.com/repos/pandas-dev/pandas/pulls/39352 | 2021-01-23T19:04:06Z | 2021-01-26T22:37:11Z | 2021-01-26T22:37:11Z | 2021-01-27T16:44:13Z |
TST: fix xfailed tests for IntegerArray, FloatingArray | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index a28b119854bb7..0b2be53131af6 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -88,6 +88,7 @@
assert_timedelta_array_equal,
raise_assert_detail,
)
+from pandas._testing.compat import get_dtype # noqa:F40... | https://api.github.com/repos/pandas-dev/pandas/pulls/39350 | 2021-01-23T17:14:52Z | 2021-01-24T21:41:33Z | 2021-01-24T21:41:33Z | 2021-01-24T21:44:43Z | |
small typing fixes | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 9b957ab4d0686..f03b3c9eaf65a 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -91,7 +91,7 @@
Suffixes = Tuple[str, str]
Ordered = Optional[bool]
JSONSerializable = Optional[Union[PythonScalar, List, Dict]]
-Axes = Collection
+Axes = Collection[Any]
... | Some very small fixes to typing declarations to fix some errors found by `pyright`
Should not affect running code at all. mypy tests passed locally.
| https://api.github.com/repos/pandas-dev/pandas/pulls/39348 | 2021-01-23T16:35:46Z | 2021-01-30T20:44:05Z | 2021-01-30T20:44:05Z | 2023-02-13T20:50:52Z |
TST: fix incorrect extension test | diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py
index cb9a19b438feb..9ec842d801919 100644
--- a/pandas/tests/extension/base/setitem.py
+++ b/pandas/tests/extension/base/setitem.py
@@ -280,12 +280,11 @@ def test_setitem_frame_invalid_length(self, data):
with pytest.r... | https://api.github.com/repos/pandas-dev/pandas/pulls/39344 | 2021-01-23T03:32:16Z | 2021-01-24T21:31:11Z | 2021-01-24T21:31:11Z | 2021-01-24T23:31:00Z | |
REF: standardize get_indexer/get_indexer_non_unique | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e91a25a9e23e8..bb5f05147aefb 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3289,11 +3289,10 @@ def get_indexer(
if not self._index_as_unique:
raise InvalidIndexError(self._requires_unique_... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39343 | 2021-01-22T22:42:24Z | 2021-01-23T01:33:47Z | 2021-01-23T01:33:47Z | 2021-11-20T23:22:52Z |
TYP: Fix mypy ignores in parsers | diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py
index 0d23addbb5f21..8961fd0a7af06 100644
--- a/pandas/io/parsers/base_parser.py
+++ b/pandas/io/parsers/base_parser.py
@@ -2,7 +2,19 @@
import csv
import datetime
import itertools
-from typing import Any, Dict, Iterable, List, Optional... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Tried fixing the Mypy Errors in parsers
| https://api.github.com/repos/pandas-dev/pandas/pulls/39342 | 2021-01-22T22:39:38Z | 2021-02-04T15:55:17Z | 2021-02-04T15:55:17Z | 2021-02-04T17:57:23Z |
BUG: DataFrame.__setitem__ not raising ValueError when rhs is df and has wrong number of columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ff11ebc022ffb..2960199f2884d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -286,6 +286,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` raising ``ValueError`` with empty :class:`DataFrame` and s... | - [x] closes #38604
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Have to check how many columns key references before raising (duplicates or MultiIndex may... | https://api.github.com/repos/pandas-dev/pandas/pulls/39341 | 2021-01-22T20:29:19Z | 2021-01-24T22:01:02Z | 2021-01-24T22:01:02Z | 2021-01-25T19:01:19Z |
TYP: @final for more Index methods | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index f38b49a15c120..6ca613624d07c 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -822,6 +822,7 @@ def take(self, indices, axis=0, allow_fill=True, fill_value=None, **kwargs):
)
return self._shallow_c... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39333 | 2021-01-22T05:38:55Z | 2021-01-22T14:04:12Z | 2021-01-22T14:04:12Z | 2021-01-22T15:15:43Z |
PERF: DatetimeIndex.get_indexer with mismatched tz | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index e95e5bec5849c..86790063c5056 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -243,6 +243,20 @@ def time_loc_list(self, monotonic):
monotonic.loc[80000:]
+class DatetimeIndexIndexin... | Avoid casting to object dtype.
```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, tz="US/Pacific")
In [3]: dti2 = dti.tz_convert("UTC")
In [4]: %timeit dti.get_indexer(dti2)
127 ms ± 4.69 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- master
352 µs ± 10.2 µs per loop (mean ± std. dev... | https://api.github.com/repos/pandas-dev/pandas/pulls/39332 | 2021-01-22T05:08:55Z | 2021-01-25T16:35:04Z | 2021-01-25T16:35:03Z | 2021-01-25T16:50:03Z |
REF: Fix PeriodIndex._outer_indexer -> share remaining set methods | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e91a25a9e23e8..0dd452c53e3a4 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -115,6 +115,7 @@
if TYPE_CHECKING:
from pandas import MultiIndex, RangeIndex, Series
+ from pandas.core.indexes.datetimelike ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39331 | 2021-01-22T02:30:01Z | 2021-01-22T23:28:07Z | 2021-01-22T23:28:07Z | 2021-01-22T23:35:53Z |
REF: de-duplicate algos.try_sort calls | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index aa1a05aac9ad1..c79328ff23785 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2882,15 +2882,7 @@ def _union(self, other, sort):
else:
result = lvals
- if sort is None:
- ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39330 | 2021-01-22T02:28:12Z | 2021-01-22T13:57:13Z | 2021-01-22T13:57:13Z | 2021-01-22T15:17:23Z |
BUG: SeriesGroupBy.value_counts() raising error on an empty Series | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 19244ba858a4d..381a05a18b278 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -345,6 +345,7 @@ Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`SeriesGroupBy.value_counts` where uno... | - [x] closes #39172
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39326 | 2021-01-21T19:09:19Z | 2021-01-22T23:26:52Z | 2021-01-22T23:26:51Z | 2021-01-22T23:26:57Z |
Backport PR #39314 on branch 1.2.x (DOC: clarify in which version the excel engine default changed) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index a78af82ba4db8..b6d686ee2551f 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2834,7 +2834,7 @@ See the :ref:`cookbook<cookbook.excel>` for some advanced strategies.
The `xlrd <https://xlrd.readthedocs.io/... | Backport PR #39314: DOC: clarify in which version the excel engine default changed | https://api.github.com/repos/pandas-dev/pandas/pulls/39322 | 2021-01-21T17:59:53Z | 2021-01-21T23:50:43Z | 2021-01-21T23:50:43Z | 2021-01-21T23:50:43Z |
Backport PR #39316 on branch 1.2.x ([DOC] Update PR link in 1.2.0 release notes) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index dfd23309faaef..395f353b561eb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -746,7 +746,7 @@ I/O
- Parse missing values using :func:`read_json` with ``dtype=False`` to ``NaN`` instead of ``None`` (:i... | Backport PR #39316: [DOC] Update PR link in 1.2.0 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/39319 | 2021-01-21T15:45:36Z | 2021-01-21T17:35:29Z | 2021-01-21T17:35:29Z | 2021-01-21T17:35:29Z |
TST: Benchmarks for CSV writing for various index variations | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 24d21ad6a633d..9f5827eabee52 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -76,6 +76,54 @@ def time_frame(self, obs):
self.data.to_csv(self.fname)
+class ToCSVIndexes(BaseIO):
+
+ fna... | Benchmarks derived from GH37484 (https://github.com/pandas-dev/pandas/issues/37484). This captures a peculiar difference in timings between a DataFrame originating from `df.set_index(...).head(...)` and one from `df.head(...).set_index(...)`.
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here... | https://api.github.com/repos/pandas-dev/pandas/pulls/39318 | 2021-01-21T15:08:00Z | 2021-01-21T23:58:16Z | 2021-01-21T23:58:16Z | 2021-01-21T23:58:19Z |
BUG+DOC: Recent Styler Enhancements | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 24f344488d1ca..114b4688fffaf 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -15,30 +15,19 @@
"\n",
"The styling is accomplished using CSS.\n",
"You write \"style functions\"... | **DOC**: this edits the `style.ipynb` file to include examples of the 3 recent enhancements to `Styler`:
- Tooltips
- External CSS classes to datacells
- Row and Column styling via table styles
It also addresses 3 minor bugs that I detected when wirting the documentation:
**BUG1** (lines 696-703): `set_td... | https://api.github.com/repos/pandas-dev/pandas/pulls/39317 | 2021-01-21T12:26:29Z | 2021-01-24T21:46:22Z | 2021-01-24T21:46:21Z | 2021-01-25T06:34:17Z |
[DOC] Update PR link in 1.2.0 release notes | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index dfd23309faaef..395f353b561eb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -746,7 +746,7 @@ I/O
- Parse missing values using :func:`read_json` with ``dtype=False`` to ``NaN`` instead of ``None`` (:i... | - [x] closes #39291
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
~whatsnew entry~
| https://api.github.com/repos/pandas-dev/pandas/pulls/39316 | 2021-01-21T12:09:49Z | 2021-01-21T15:44:04Z | 2021-01-21T15:44:04Z | 2021-01-22T00:04:13Z |
DOC: clarify in which version the excel engine default changed | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 8c7e01dd999d3..d6934a3ca2a6c 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2853,7 +2853,7 @@ See the :ref:`cookbook<cookbook.excel>` for some advanced strategies.
The `xlrd <https://xlrd.readthedocs.io/... | Small clarification, because "previously" only made sense in the actual v1.2.0 release notes, and not in the main docs | https://api.github.com/repos/pandas-dev/pandas/pulls/39314 | 2021-01-21T10:31:33Z | 2021-01-21T17:59:40Z | 2021-01-21T17:59:40Z | 2021-01-21T18:00:02Z |
REF/TST: Move Series/DataFrame apply tests to tests.apply | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 45d545a522fc7..0b1c09b56a985 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -711,6 +711,24 @@ def float_frame():
return DataFrame(tm.getSeriesData())
+@pytest.fixture
+def mixed_type_frame():
+ """
+ Fixture for DataFrame of float/in... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Ref: https://github.com/pandas-dev/pandas/pull/39212#issuecomment-763112628
Just a move. Will be following up with combining Series/DataFrame tests where appr... | https://api.github.com/repos/pandas-dev/pandas/pulls/39312 | 2021-01-21T03:46:29Z | 2021-01-21T16:33:32Z | 2021-01-21T16:33:32Z | 2021-02-06T13:56:43Z |
REF: Move part of groupby.agg to apply | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cff9c16f5d17a..4a7d6af2fb472 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -135,7 +135,7 @@ repos:
files: ^pandas/tests/
- id: FrameOrSeriesUnion
name: Check for use of Union[Series, DataFrame] instead ... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
pre-commit adjusted to account for the false positive on `Union[SeriesGroupBy, DataFrameGroupBy]`.
Moves part of groupby.agg imple... | https://api.github.com/repos/pandas-dev/pandas/pulls/39311 | 2021-01-21T03:22:50Z | 2021-01-22T14:00:16Z | 2021-01-22T14:00:16Z | 2021-01-28T23:00:37Z |
CI: fix flaky tests | diff --git a/pandas/tests/io/pytables/test_select.py b/pandas/tests/io/pytables/test_select.py
index 87d0728e2418e..a8f63bdc5fb2f 100644
--- a/pandas/tests/io/pytables/test_select.py
+++ b/pandas/tests/io/pytables/test_select.py
@@ -840,7 +840,8 @@ def test_select_as_multiple(setup_path):
)
expected =... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39310 | 2021-01-21T02:52:50Z | 2021-01-21T15:13:00Z | 2021-01-21T15:13:00Z | 2021-01-21T15:21:43Z |
BUG: date_range hitting iNaT | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b061c4040096e..eed712ae7de0f 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -233,6 +233,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.intersection`, :meth:`DatetimeIndex.symmetric_difference`, :met... | - [x] closes #24124
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39308 | 2021-01-20T23:21:12Z | 2021-01-21T00:50:18Z | 2021-01-21T00:50:17Z | 2021-01-21T01:56:01Z |
ENH: PeriodIndex setops with incompatible freq cast instead of raise | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ce75eda458577..5351fe2bdfffa 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -271,6 +271,7 @@ Interval
- Bug in :meth:`IntervalIndex.intersection` and :meth:`IntervalIndex.symmetric_difference` always... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Did the same thing for IntervalIndex earlier in #39267 | https://api.github.com/repos/pandas-dev/pandas/pulls/39306 | 2021-01-20T22:23:46Z | 2021-01-21T15:16:16Z | 2021-01-21T15:16:16Z | 2021-01-21T15:24:33Z |
CLN: consistently put '|' at start of line in pygrep hooks #39301 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 88d18e3e230c6..cff9c16f5d17a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -60,11 +60,11 @@ repos:
entry: |
(?x)
# Check for imports from pandas.core.common instead of `import pandas.core.comm... | - [x] closes #39301
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
I moved the `|` symbols from the end of the line to the beginning of the line in pygrep hooks.
I also added the `|` symbol in the `non-... | https://api.github.com/repos/pandas-dev/pandas/pulls/39304 | 2021-01-20T20:20:43Z | 2021-01-20T22:15:15Z | 2021-01-20T22:15:15Z | 2021-01-20T22:15:36Z |
CLN, TYP Remove string type hints | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cff9c16f5d17a..e30cf3acd776d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -150,7 +150,6 @@ repos:
(?x)
\#\ type:\ (?!ignore)
|\#\ type:\s?ignore(?!\[)
- |\)\ ->\ \"
la... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
For some background: there was some consensus on doing this [here](https://github.com/pandas-dev/pandas/pull/36034#issuecomment-685186742)
Then [here](https:/... | https://api.github.com/repos/pandas-dev/pandas/pulls/39299 | 2021-01-20T16:02:21Z | 2021-01-21T11:21:08Z | 2021-01-21T11:21:08Z | 2021-01-21T12:15:35Z |
Backport PR #39234 on branch 1.2.x (DOC: Start v1.2.2 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 55e3971502c0a..c37255c765171 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.2
v1.2.1
v1.2.0
diff --git a/doc/source/whatsnew/... | Backport PR #39234: DOC: Start v1.2.2 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/39294 | 2021-01-20T13:24:12Z | 2021-01-20T14:40:23Z | 2021-01-20T14:40:23Z | 2021-01-20T14:40:23Z |
STYLE: dont use pd api types in tests | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cff9c16f5d17a..03c837d2e3162 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -169,6 +169,12 @@ repos:
pandas/tests/io/excel/test_writers\.py
|pandas/tests/io/pytables/common\.py
|pandas/test... | - [x] closes #39203
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [] whatsnew entry
I didn't add a whatsnew entry since it's only style fixes.
I'll open a new issue regardin... | https://api.github.com/repos/pandas-dev/pandas/pulls/39293 | 2021-01-20T13:23:01Z | 2021-01-21T15:04:53Z | 2021-01-21T15:04:52Z | 2021-01-21T17:30:12Z |
Backport PR #39239 on branch 1.2.x (DEPR: raise deprecation warning in numpy ufuncs on DataFrames if not aligned + fallback to <1.2.0 behaviour) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 95757448a7978..dfd23309faaef 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -286,6 +286,8 @@ Other enhancements
- Added methods :meth:`IntegerArray.prod`, :meth:`IntegerArray.min`, and :meth:`Integer... | Backport PR #39239: DEPR: raise deprecation warning in numpy ufuncs on DataFrames if not aligned + fallback to <1.2.0 behaviour | https://api.github.com/repos/pandas-dev/pandas/pulls/39288 | 2021-01-20T07:28:05Z | 2021-01-20T08:15:48Z | 2021-01-20T08:15:48Z | 2021-01-20T08:15:48Z |
REF: split describe categorical function | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 09862b72c4a4f..3eafdafa99518 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -6,7 +6,7 @@
from __future__ import annotations
from abc import ABC, abstractmethod
-from typing import TYPE_CHECKING, List, Optional, Sequence, Uni... | - [ ] xref #36833
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Moved handing timestamp data from ``describe_categorical_1d`` into ``describe_timestamp_as_c... | https://api.github.com/repos/pandas-dev/pandas/pulls/39287 | 2021-01-20T07:14:41Z | 2021-01-20T14:52:46Z | 2021-01-20T14:52:46Z | 2021-01-20T15:17:03Z |
Series with dtype=object does unexpected type conversion | diff --git a/pandas/tests/series/indexing/test_setitem.py b/pandas/tests/series/indexing/test_setitem.py
index 7f469f361fec7..2dff35cdcd300 100644
--- a/pandas/tests/series/indexing/test_setitem.py
+++ b/pandas/tests/series/indexing/test_setitem.py
@@ -367,6 +367,18 @@ def test_setitem_empty_series_datetimeindex_preser... | - [ ] closes #21881
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39285 | 2021-01-20T02:17:21Z | 2021-01-28T14:59:30Z | 2021-01-28T14:59:30Z | 2021-01-28T14:59:33Z |
BUG: DataFrame.__setitem__ raising ValueError when setting multiple values to dup columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5422134f220d7..776f3c184b88b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -275,6 +275,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` wh... | - [x] closes #15695
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Setting with a scalar key which is duplicated in columns should be the same as using a lis... | https://api.github.com/repos/pandas-dev/pandas/pulls/39280 | 2021-01-19T21:21:25Z | 2021-01-21T15:54:42Z | 2021-01-21T15:54:42Z | 2021-01-21T16:12:55Z |
REF: share start_time/end_time between Period/PeriodArray | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 8a62ad4e3d033..e276515ca1ae9 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1489,6 +1489,60 @@ cdef class PeriodMixin:
return FR_SEC
return base
+ @property
+ def start_... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
One thing that might make this undesirable is that the annotations on this are accurate for... | https://api.github.com/repos/pandas-dev/pandas/pulls/39279 | 2021-01-19T21:15:22Z | 2021-01-21T15:19:46Z | 2021-01-21T15:19:46Z | 2021-01-21T15:25:28Z |
BUG: loc.setitem raising ValueError when df has duplicate columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ab00b749d5725..c419884ee6ce1 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -276,6 +276,7 @@ Indexing
- Bug in :meth:`DataFrame.loc`, :meth:`Series.loc`, :meth:`DataFrame.__getitem__` and :meth:`Seri... | - [x] closes #38521
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39278 | 2021-01-19T20:36:45Z | 2021-01-21T15:53:36Z | 2021-01-21T15:53:35Z | 2021-01-21T17:28:21Z |
REF: share PeriodArray.asfreq with Period.asfreq | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 5d3ad559ea718..6cd24dac33f71 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1,11 +1,12 @@
import warnings
+cimport numpy as cnp
from cpython.object cimport Py_EQ, Py_NE, PyObject_RichCompareBool
... | Slightly faster for PeriodArray, no change for Period.
```
In [3]: pi = pd.period_range("2016-01-01", periods=100, freq="D")
In [4]: %timeit pi.asfreq("W")
43.5 µs ± 696 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <-- master
36.3 µs ± 1.06 µs per loop (mean ± std. dev. of 7 runs, 10000 loops ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39277 | 2021-01-19T20:13:25Z | 2021-01-20T19:21:59Z | 2021-01-20T19:21:59Z | 2021-01-20T19:24:12Z |
BUG: is_utc(dateutil_utc) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b061c4040096e..183f50b961d62 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -243,7 +243,7 @@ Timedelta
Timezones
^^^^^^^^^
- Bug in different ``tzinfo`` objects representing UTC not being treated a... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39276 | 2021-01-19T19:35:55Z | 2021-01-21T23:40:06Z | 2021-01-21T23:40:05Z | 2021-01-21T23:48:17Z |
ENH: Period comparisons with mismatched freq use py3 behavior | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cc1b1df3c3252..e2d84ed3056ae 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -321,7 +321,7 @@ I/O
Period
^^^^^^
-
+- Comparisons of :class:`Period` objects or :class:`Index`, :class:`Series`, or :c... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39274 | 2021-01-19T16:45:56Z | 2021-01-20T19:23:56Z | 2021-01-20T19:23:55Z | 2021-01-20T20:25:02Z |
Backport PR #39260 on branch 1.2.x (REGR: fix numpy accumulate ufuncs for DataFrame) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4e583ce4d3af9..4d41a2998bbb5 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -32,6 +32,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.replace` raising ``ValueError`` when :class:`DataFr... | Backport PR #39260: REGR: fix numpy accumulate ufuncs for DataFrame | https://api.github.com/repos/pandas-dev/pandas/pulls/39273 | 2021-01-19T16:19:59Z | 2021-01-19T17:38:33Z | 2021-01-19T17:38:33Z | 2021-01-19T17:38:33Z |
BUG: 2D ndarray of dtype 'object' is always copied upon construction | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index d114f26788f00..43f517fe5a02f 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -178,6 +178,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :func:`to_datetime` returning pd.NaT for inputs that prod... | This change is aesthetically unpleasing, it indents too far. #26825 already suggested to separate this part into a function. Please let me know what exactly I should abstract into a function, and where to put it. Alternatively, amend this PR yourself.
Thanks for pandas. :)
- [X] closes #39263
- [X] tests added /... | https://api.github.com/repos/pandas-dev/pandas/pulls/39272 | 2021-01-19T15:40:46Z | 2021-07-15T04:22:00Z | 2021-07-15T04:22:00Z | 2021-07-15T04:22:10Z |
Backport PR #39253 on branch 1.2.x (REGR: codecs.open() is always opened in text mode) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 24ba9be4383eb..4e583ce4d3af9 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`~Data... | Backport PR #39253: REGR: codecs.open() is always opened in text mode | https://api.github.com/repos/pandas-dev/pandas/pulls/39271 | 2021-01-19T14:00:24Z | 2021-01-19T15:00:02Z | 2021-01-19T15:00:02Z | 2021-01-19T15:00:02Z |
Backport PR #39256 on branch 1.2.x (DOC: keep color for note admonitions in sphinx theme) | diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css
index 43cd631890330..403d182e3d3e5 100644
--- a/doc/source/_static/css/pandas.css
+++ b/doc/source/_static/css/pandas.css
@@ -1,3 +1,10 @@
+/* Override some aspects of the pydata-sphinx-theme */
+
+:root {
+ /* Use softer blue from boot... | Backport PR #39256: DOC: keep color for note admonitions in sphinx theme | https://api.github.com/repos/pandas-dev/pandas/pulls/39269 | 2021-01-19T08:34:41Z | 2021-01-19T09:50:08Z | 2021-01-19T09:50:08Z | 2021-01-19T09:50:09Z |
CLN: remove pd import in pandas/core/computation | diff --git a/pandas/core/computation/expr.py b/pandas/core/computation/expr.py
index 88a25ad9996a0..babf8116a5588 100644
--- a/pandas/core/computation/expr.py
+++ b/pandas/core/computation/expr.py
@@ -558,11 +558,11 @@ def visit_Index(self, node, **kwargs):
return self.visit(node.value)
def visit_Subscr... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Remove ``import pandas as pd`` in ``pandas/core/computation``. | https://api.github.com/repos/pandas-dev/pandas/pulls/39268 | 2021-01-19T06:27:46Z | 2021-01-19T17:33:37Z | 2021-01-19T17:33:37Z | 2021-01-20T03:31:15Z |
ENH: cast instead of raise for IntervalIndex setops with differnet closed | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6a85bfd852e19..95f5a2789102b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -268,7 +268,7 @@ Interval
^^^^^^^^
- Bug in :meth:`IntervalIndex.intersection` and :meth:`IntervalIndex.symmetric_differen... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39267 | 2021-01-19T05:49:05Z | 2021-01-20T13:53:56Z | 2021-01-20T13:53:55Z | 2021-01-20T15:54:31Z |
BUG: setting dt64 values into Series[int] incorrectly casting dt64->int | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d24c595cacab5..5ab183ed81740 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -335,6 +335,7 @@ Indexing
- Bug in :meth:`DataFrame.__getitem__` and :meth:`Series.__getitem__` always raising ``KeyError``... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39266 | 2021-01-19T05:04:54Z | 2021-01-28T15:05:39Z | 2021-01-28T15:05:39Z | 2021-01-28T15:33:32Z |
CI/STYLE Fix misspellings exposed by codespell | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 339e0b5c39a86..4654c6be921b4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -189,7 +189,8 @@ repos:
hooks:
- id: codespell
types_or: [python, rst, markdown]
- files: ^pandas/core/
+ files: ^pan... | - [ ] partial fix for #38802
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39264 | 2021-01-19T02:08:34Z | 2021-01-21T23:59:14Z | 2021-01-21T23:59:14Z | 2021-01-21T23:59:18Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.