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
CLN: Remove u and u_safe from pandas.compat
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 3a811ba7706c9..fcdbfc0639157 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -7,7 +7,6 @@ Key items to import for 2/3 compatible code: * iterators: reduce() * lists: lrange(), lmap(), lzip(), lfilter() -* unicode: u() ...
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Another incremental step in removing Python 2. Only non-standard changes were to `pandas/tests/test_strings.py` where I deleted a bunch of code, as removing `u` resulted in duplicate test scenarios.
https://api.github.com/repos/pandas-dev/pandas/pulls/25852
2019-03-23T20:51:38Z
2019-03-24T15:15:23Z
2019-03-24T15:15:23Z
2019-03-24T17:20:34Z
CLN: Remove redundant definitions in pandas.compat (filter, map, range, etc.)
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 88bb00cb54319..cffeb44b50910 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -698,7 +698,7 @@ cdef class TextReader: if ptr == NULL: if not os.path.exists(source): - raise co...
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Some more low hanging fruit in the Python 2 removal process. This should remove all references to the following functions in `pandas.compat` which are redundantly defined for Python 3: - `filter` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25845
2019-03-23T04:36:02Z
2019-03-23T20:13:30Z
2019-03-23T20:13:30Z
2019-03-23T20:14:38Z
MyPy CI Configuration
diff --git a/.gitignore b/.gitignore index 816aff376fc83..f4f64aac23905 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ dist .coverage coverage.xml coverage_html_report +.mypy_cache *.pytest_cache # hypothesis test database .hypothesis/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6c30e...
- [X] closes #14468 I think this is the minimal amount of work required to get MyPy configured for CI. Note that the list of files is the only [documented](https://mypy.readthedocs.io/en/latest/running_mypy.html#reading-a-list-of-files-from-a-file) way to whitelist things that I could find (see also https://github.c...
https://api.github.com/repos/pandas-dev/pandas/pulls/25844
2019-03-23T02:44:14Z
2019-03-26T15:45:07Z
2019-03-26T15:45:06Z
2020-01-16T00:34:37Z
Remove compat code in tseries
diff --git a/pandas/io/s3.py b/pandas/io/s3.py index 4998e4c0400ac..5a43b777bc0f9 100644 --- a/pandas/io/s3.py +++ b/pandas/io/s3.py @@ -1,5 +1,4 @@ """ s3 support for remote file interactivity """ -from pandas import compat try: import s3fs @@ -7,10 +6,7 @@ except ImportError: raise ImportError("The s3f...
- [ ] 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/25841
2019-03-22T21:43:52Z
2019-03-22T22:17:42Z
null
2019-09-17T18:55:10Z
Remove chainmap_impl compat code
diff --git a/pandas/compat/chainmap.py b/pandas/compat/chainmap.py index cf1cad5694570..e57a2ba3af0ac 100644 --- a/pandas/compat/chainmap.py +++ b/pandas/compat/chainmap.py @@ -1,7 +1,4 @@ -try: - from collections import ChainMap -except ImportError: - from pandas.compat.chainmap_impl import ChainMap +from collec...
Also avoid having a dependency in `compat` on `core`.
https://api.github.com/repos/pandas-dev/pandas/pulls/25840
2019-03-22T21:34:27Z
2019-03-23T20:08:42Z
2019-03-23T20:08:42Z
2019-03-23T21:37:04Z
Safe version of ascii macros, add missing tolower_ascii
diff --git a/pandas/_libs/src/headers/portable.h b/pandas/_libs/src/headers/portable.h index 9ac4ebc306baa..1976addace3f3 100644 --- a/pandas/_libs/src/headers/portable.h +++ b/pandas/_libs/src/headers/portable.h @@ -7,8 +7,9 @@ // GH-23516 - works around locale perf issues // from MUSL libc, MIT Licensed - see LIC...
- [x] fixes a warning introduced in #23981 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Using unparenthesized macro parameters is dangerous, so wrap `c` in braces. Example warning fixed by adding `tolower_ascii()`: ``` In file included...
https://api.github.com/repos/pandas-dev/pandas/pulls/25836
2019-03-22T14:33:42Z
2019-03-22T16:18:38Z
2019-03-22T16:18:38Z
2019-03-25T11:05:54Z
#25790 Updating type hints to Python3 syntax in pandas/core/array
diff --git a/pandas/core/arrays/array_.py b/pandas/core/arrays/array_.py index 254ab876af1ac..2404e1a71f5ad 100644 --- a/pandas/core/arrays/array_.py +++ b/pandas/core/arrays/array_.py @@ -7,15 +7,15 @@ from pandas.core.dtypes.common import ( is_datetime64_ns_dtype, is_extension_array_dtype, is_timedelta64_ns_dty...
- [x] addresses the other half of #25790 - [x] pandas/tests/arrays/ tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/25829
2019-03-22T03:50:01Z
2019-03-30T19:21:17Z
2019-03-30T19:21:17Z
2019-03-31T14:46:08Z
CI: exclude asv env directory from isort and tailing whitespace checks
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51df779341ed5..658c2bc50e87b 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -175,9 +175,9 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then set -o pipefail if [[ "$AZURE" == "true" ]]; then # we exclude all c/cpp files as the c...
When running `ci/code_checks.sh` on a local repository that has also been used to run `asv` benchmarks, a couple of the checks recurse into the `asv_bench/env` directory created for running benchmark environments. This massively increases the runtime and leads to linting errors on non-pandas packages, which is not info...
https://api.github.com/repos/pandas-dev/pandas/pulls/25827
2019-03-21T23:58:41Z
2019-03-22T11:22:34Z
2019-03-22T11:22:34Z
2019-03-22T11:22:37Z
WIP, MAINT: upstream timedelta64 changes
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index e1788db1cf8f8..77f5001443ae0 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1181,7 +1181,7 @@ class Timedelta(_Timedelta): kwargs = {key: _to_py_int_float(kwargs[key]) ...
**Background:** In NumPy, I've been working to expand the operations supported for `np.timedelta64` (`m8`) operands, adding support for modulus, floordiv and divmod operations. Historically, we've allowed casting from integer and bool types to `m8`, which may seem innocent enough, but is arguably sloppy from a units pe...
https://api.github.com/repos/pandas-dev/pandas/pulls/25826
2019-03-21T21:34:11Z
2019-03-22T19:46:59Z
2019-03-22T19:46:59Z
2019-03-22T19:48:49Z
Implement --with-debugging-symbols switch in setup.py
diff --git a/setup.py b/setup.py index 09e1e226881fd..e5ef0d7bd3aea 100755 --- a/setup.py +++ b/setup.py @@ -413,6 +413,11 @@ def run(self): # ---------------------------------------------------------------------- # Preparation of compiler arguments +debugging_symbols_requested = '--with-debugging-symbols' in sys.a...
- [x] closes N/A - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This implements a switch that enables building Pandas with debugging symbols - useful for debugging or profiling native parts of the code.
https://api.github.com/repos/pandas-dev/pandas/pulls/25822
2019-03-21T13:36:56Z
2019-03-21T15:12:09Z
2019-03-21T15:12:09Z
2019-03-28T14:30:52Z
[PERF] Get rid of MultiIndex conversion in IntervalIndex.is_monotonic methods
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index fb3001319d96c..11ff5444223d0 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -1,7 +1,7 @@ import numpy as np import pandas.util.testing as tm from pandas import (Series, date...
- xref #24813 - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ``` All benchmarks: before after ratio [85572de5] [445fbe56] <master> <GH24813-inc-dec> - 261±6ns 134±3ns 0.51 index_object.IntervalIndexMethod.time_monoton...
https://api.github.com/repos/pandas-dev/pandas/pulls/25820
2019-03-21T11:56:57Z
2019-04-21T16:02:26Z
2019-04-21T16:02:26Z
2019-04-22T02:41:40Z
TST: Remove compat.PY2 and compat.PY3 flags from tests
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index da1b3f1da5322..d556101ac2ecb 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -9,7 +9,7 @@ import numpy as np import pytest -from pandas.compat import PY3, Iterab...
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` These flags become trivial after dropping Python 2. There are still some Python 2 specific things that can be removed from the tests but this should eliminate a lot of the low hanging fruit. Can sp...
https://api.github.com/repos/pandas-dev/pandas/pulls/25817
2019-03-21T06:46:57Z
2019-03-21T11:23:46Z
2019-03-21T11:23:46Z
2019-03-21T14:58:04Z
BUG: Fix bug when using df.query with "str.contains()"
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index da712f84eb1b5..9e2e3faa8386d 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -412,6 +412,7 @@ Other - Improved :class:`Timestamp` type checking in various datetime functions to prevent exception...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixes bug in on line 588 of `pandas/core/computation/expr.py`: `AttributeError: 'dict' object has no attribute 'append'` Also addresses the specific example in #22172 Example: ```python impo...
https://api.github.com/repos/pandas-dev/pandas/pulls/25813
2019-03-21T01:36:14Z
2019-05-19T18:28:30Z
null
2019-05-19T18:28:30Z
PERF: Improve performance of Series.isin() on sets
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 3303483c50e20..42d530508eb87 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -29,10 +29,14 @@ class IsIn(object): def setup(self, dtype): self.s = Series(n...
- [x] closes #25507 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Issue #25507 pointed out that using `DataFrame.isin` or `Series.isin` on a set took extremely long due to the set being first converted to a list then back to a hash table to lo...
https://api.github.com/repos/pandas-dev/pandas/pulls/25812
2019-03-21T00:23:25Z
2019-03-24T14:05:39Z
null
2019-03-24T14:38:39Z
BUG: DatetimeIndex.to_frame does not drop timezone information
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2ed2c21ba5584..a33552119fc01 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -208,6 +208,7 @@ Timedelta Timezones ^^^^^^^^^ +- Bug in :func:`DatetimeIndex.to_frame` where timezone aware data wo...
- [x] closes #25809 - [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/25811
2019-03-20T23:59:02Z
2019-03-21T11:13:32Z
2019-03-21T11:13:32Z
2019-03-21T15:24:53Z
BUG: DataFrame.update with tz-aware date doesn't return naive data
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2ed2c21ba5584..7e9296b0e728b 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -211,6 +211,7 @@ Timezones - Bug in :func:`to_datetime` with ``utc=True`` and datetime strings that would apply previou...
- [x] closes #25807 - [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/25810
2019-03-20T23:31:14Z
2019-03-21T11:14:06Z
2019-03-21T11:14:06Z
2019-03-21T15:25:10Z
DOC: Improved README formatting.
diff --git a/doc/cheatsheet/README.txt b/doc/cheatsheet/README.txt index d32fe5bcd05a6..0eae39f318d23 100644 --- a/doc/cheatsheet/README.txt +++ b/doc/cheatsheet/README.txt @@ -1,8 +1,8 @@ The Pandas Cheat Sheet was created using Microsoft Powerpoint 2013. To create the PDF version, within Powerpoint, simply do a "Sa...
Fixed a couple of minor inconsistencies in the formatting of the CheatSheet README file.
https://api.github.com/repos/pandas-dev/pandas/pulls/25808
2019-03-20T21:54:01Z
2019-03-21T03:07:44Z
2019-03-21T03:07:44Z
2019-03-21T03:07:49Z
PERF: Improve performance of hash sets in read_csv
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2ed2c21ba5584..0d68826034afa 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -176,6 +176,7 @@ Performance Improvements int8/int16/int32 and the searched key is within the integer bounds for the ...
- [x] closes N/A - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Improved performance of checking of string presence in hashsets by: 1. implemented lookup table for first symbol of entries - this speeds up negative answers 2. increased size of...
https://api.github.com/repos/pandas-dev/pandas/pulls/25804
2019-03-20T16:36:42Z
2019-03-22T16:19:38Z
2019-03-22T16:19:38Z
2019-03-27T00:56:04Z
Update type hints to python3 style (non-array files)
diff --git a/pandas/core/base.py b/pandas/core/base.py index 5adf01a62352c..5a0fb02494236 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -786,8 +786,7 @@ def base(self): return self.values.base @property - def array(self): - # type: () -> ExtensionArray + def array(self) -> E...
- [X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Fixes #25790 (non-array part)
https://api.github.com/repos/pandas-dev/pandas/pulls/25802
2019-03-20T15:50:12Z
2019-03-30T19:08:52Z
2019-03-30T19:08:52Z
2019-03-31T14:46:27Z
Fix ReST formatting of pandas.read_excel usecols
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index c6d390692c789..781bb1f68d92f 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -70,11 +70,12 @@ usecols : int, str, list-like, or callable default None Return a subset of the columns. + * If None, then parse all co...
Fix some reStructuredText issues in *usecols* parameter of read_excel - bulletlists must start with a space - the deprecated/versionadded directives do only apply to the respective bullet point an thus need to be indented. Comapre http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html f...
https://api.github.com/repos/pandas-dev/pandas/pulls/25801
2019-03-20T14:38:21Z
2019-03-20T19:14:00Z
2019-03-20T19:14:00Z
2019-03-21T06:20:48Z
BUG: Respect na_rep in DataFrame.to_latex() when used with formatters (#9046)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 3a539199acd6f..00f3878766e31 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -355,6 +355,9 @@ I/O - Improved performance in :meth:`pandas.read_stata` and :class:`pandas.io.stata.StataReader` when ...
- [x] closes #9046 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry A very old issue so low priority! I'd be tempted to remove the shortcut in `_format_strings()` since I'd guess in most cases it doesn't really save much time.
https://api.github.com/repos/pandas-dev/pandas/pulls/25799
2019-03-20T12:47:42Z
2019-05-29T09:35:47Z
null
2019-05-29T10:08:31Z
BUG: pd.concat does not drop DatetimeIndex.freq when result is monotonic with even spacing
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 58c07a14dec39..883dd176f0a59 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -312,7 +312,7 @@ Reshaping - Bug in :func:`merge` when merging by index name would sometimes result in an incorrectly n...
- [x] closes #3232 - [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/25796
2019-03-20T06:49:44Z
2019-03-26T00:25:03Z
2019-03-26T00:25:02Z
2019-03-26T00:27:21Z
Move core.config to _config.config
diff --git a/pandas/__init__.py b/pandas/__init__.py index 427157acb433f..cdf7dafba0e75 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -36,6 +36,9 @@ from datetime import datetime +from pandas._config import (get_option, set_option, reset_option, + describe_option, option_co...
and update imports. Move `tests.test_config` to `tests.config.test_config`. Following this there will be one more follow-up that will 1) address the TODO in `tests.config.test_localization`, 2) fully disentangle `tslibs` from its dependency on `core`.
https://api.github.com/repos/pandas-dev/pandas/pulls/25793
2019-03-20T02:04:38Z
2019-03-24T18:34:11Z
2019-03-24T18:34:10Z
2019-03-24T18:35:01Z
DOC: clean bug fix section in whatsnew
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 5d5c5cd967e1f..73eb6a15a1b47 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -175,9 +175,6 @@ Performance Improvements Bug Fixes ~~~~~~~~~ -- Bug in :func:`to_datetime` which would raise an (in...
https://api.github.com/repos/pandas-dev/pandas/pulls/25792
2019-03-20T01:58:24Z
2019-03-20T02:16:52Z
2019-03-20T02:16:52Z
2019-03-20T02:16:52Z
Unpin pycodestyle
diff --git a/environment.yml b/environment.yml index ff7c5d56052d2..41f013c52041c 100644 --- a/environment.yml +++ b/environment.yml @@ -19,7 +19,7 @@ dependencies: - hypothesis>=3.82 - isort - moto - - pycodestyle=2.4 + - pycodestyle - pytest>=4.0.2 - pytest-mock - sphinx diff --git a/pandas/_libs/...
- [X] closes #25771 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Larger change than I would have hoped for but it's tough to split this up given the typing import errors get bundled in with F821 errors during LINTing that we certainly wouldn't want to ignore
https://api.github.com/repos/pandas-dev/pandas/pulls/25789
2019-03-19T21:50:02Z
2019-03-20T01:03:21Z
2019-03-20T01:03:21Z
2019-03-20T01:23:14Z
ENH: Add sort parameter to RangeIndex.union (#24471)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 561562f367db2..49b2349851479 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -31,6 +31,7 @@ Other Enhancements - ``Series.str`` has gained :meth:`Series.str.casefold` method to removes all case di...
- [ ] progress towards #24471 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is WIP for adding a ``sort`` parameter to ``RangeIndex.union`` that behaves in a similar way to the other index types. ``sort=None`` is the default to make it ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25788
2019-03-19T21:47:31Z
2019-03-26T20:05:56Z
2019-03-26T20:05:56Z
2019-03-26T20:05:59Z
DOC: Docstring script to not require ending period for bullet points
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 1506acc95edf9..d22eeb5a183ce 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -289,6 +289,59 @@ def say_hello(): else: return None + ...
- [X] closes #25461 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR tries to solve the issue #25461 . I thought that the validator should check that the last line of the parameter description is a part of a bullet point before raising the error PR09. In order to do that, I had to ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25786
2019-03-19T19:07:30Z
2019-10-25T16:10:22Z
null
2019-10-25T16:35:36Z
Speed up tokenizing of a row in csv and xstrtod parsing
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 73eb6a15a1b47..ce31f54ec6256 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -169,7 +169,7 @@ Performance Improvements - Improved performance of :meth:`Series.searchsorted`. The speedup is especia...
- [x] closes: N/A - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I will update the PR when CI finishes running, as I locally tested `io.parser.test_common` only.
https://api.github.com/repos/pandas-dev/pandas/pulls/25784
2019-03-19T16:46:03Z
2019-03-20T14:03:55Z
2019-03-20T14:03:54Z
2019-03-28T14:30:54Z
PERF: Improve performance of StataReader's processing of missing values
diff --git a/asv_bench/benchmarks/io/stata.py b/asv_bench/benchmarks/io/stata.py index a7f854a853f50..b4d78c5d8f528 100644 --- a/asv_bench/benchmarks/io/stata.py +++ b/asv_bench/benchmarks/io/stata.py @@ -12,12 +12,12 @@ class Stata(BaseIO): def setup(self, convert_dates): self.fname = '__test__.dta' - ...
Improve performance of StataReader when converting columns with missing values xref #25772 - [x] closes #N/A - [x] tests added / passed N/A, perf only - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/25780
2019-03-19T11:35:28Z
2019-03-20T14:06:44Z
2019-03-20T14:06:44Z
2019-03-21T13:27:38Z
fix length_of_indexer to handle boolean array indexer.
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 623a48acdd48b..15a4214a6f228 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -2444,6 +2444,9 @@ def length_of_indexer(indexer, target=None): step = -step return (stop - start + step - 1) // step elif is...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry To fix the issue #25774 .
https://api.github.com/repos/pandas-dev/pandas/pulls/25776
2019-03-19T08:46:29Z
2019-03-26T05:13:12Z
null
2019-10-18T01:22:58Z
TST: Check pytables<3.5.1 when skipping
diff --git a/pandas/tests/io/test_pytables.py b/pandas/tests/io/test_pytables.py index 69ff32d1b728b..01bf697509c04 100644 --- a/pandas/tests/io/test_pytables.py +++ b/pandas/tests/io/test_pytables.py @@ -38,7 +38,8 @@ # remove when gh-24839 is fixed; this affects numpy 1.16 # and pytables 3.4.4 xfail_non_writeable ...
`3.5.1` was made available on `conda`, causing `xfail_non_writeable` tests to fail. Note that this is just to get `master` to pass again (started failing when #25751 was merged). This new release of `pytables`, however, brings up the question of how we want to proceed with #24839, as it appears that all of our CI...
https://api.github.com/repos/pandas-dev/pandas/pulls/25773
2019-03-19T06:26:12Z
2019-03-19T18:17:35Z
2019-03-19T18:17:35Z
2019-03-19T18:54:01Z
DOC: Fix typo in docstring of DataFrame.memory_usage
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 99e5950f06382..b75680a2b48ef 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2468,8 +2468,8 @@ def memory_usage(self, index=True, deep=False): ---------- index : bool, default True Specifies whether to include...
Cherry picked commit from #25761 and removed trailing whitespace. @jorisvandenbossche if you don't mind taking a look
https://api.github.com/repos/pandas-dev/pandas/pulls/25770
2019-03-19T00:04:55Z
2019-03-19T09:06:12Z
2019-03-19T09:06:11Z
2019-03-19T13:46:32Z
BUG: reading windows utf8 filenames in py3.6
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 73eb6a15a1b47..807cad8c8eec8 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -271,6 +271,7 @@ I/O - Bug in :func:`json_normalize` for ``errors='ignore'`` where missing values in the input data, we...
- [x] closes #15086 properly - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Test that was added in prior fix was failing on my machine, where my locale was set to `CP-1251` (which apparently cannot handle some unicode symbols in the test even w...
https://api.github.com/repos/pandas-dev/pandas/pulls/25769
2019-03-18T15:35:16Z
2019-03-20T12:22:39Z
2019-03-20T12:22:39Z
2019-03-28T14:30:55Z
[BUG] Construction of Interval restricted to numeric/ Timestamp/ Timedelta (#23013)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2ed2c21ba5584..e4c462a71921e 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -242,7 +242,7 @@ Strings Interval ^^^^^^^^ -- +- Construction of :class:`Interval` is restricted to numeric, :class:...
- closes #23013 - 1 test replaced - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/25768
2019-03-18T14:57:07Z
2019-03-23T02:08:53Z
2019-03-23T02:08:52Z
2019-03-24T08:49:52Z
PERF: fixed performance degration becasue doesn't slice values array in to_native_types of DateTimeBlock
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index d48f37cc45e99..88c2a6f997a5e 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -50,6 +50,24 @@ def time_frame_date_formatting(self): self.data.to_csv(self.fname, date_format='%Y%m%d') +class...
- [x] closes #25708 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Slicing in [line 2181](https://github.com/pandas-dev/pandas/blob/707c7201a744c48c835f719421e47480beee2184/pandas/core/internals/blocks.py#L2181) only slice of i8values that make ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25765
2019-03-18T10:14:44Z
2019-04-19T01:06:47Z
2019-04-19T01:06:46Z
2019-04-21T11:09:03Z
25708 performance degradation when dumping large dataframe with datetime to csv
- [x] closes #25708 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Slicing in [line 2181](https://github.com/pandas-dev/pandas/blob/707c7201a744c48c835f719421e47480beee2184/pandas/core/internals/blocks.py#L2181) only slice of `i8values` that make...
https://api.github.com/repos/pandas-dev/pandas/pulls/25764
2019-03-18T09:30:59Z
2019-03-18T10:03:21Z
null
2019-03-18T10:40:37Z
Fix typo in docstring of DataFrame.memory_usage
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f5535096c967d..fb40c08aeb28a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2522,8 +2522,8 @@ def memory_usage(self, index=True, deep=False): ---------- index : bool, default True Specifies whether to include...
https://api.github.com/repos/pandas-dev/pandas/pulls/25761
2019-03-18T03:37:01Z
2019-03-18T04:42:57Z
2019-03-18T04:42:57Z
2019-03-18T14:16:39Z
BUG: Cleaner exception when `.iloc` called with non-integer list
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 8e72ce83ac028..cae73386bc1e1 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -205,7 +205,7 @@ Interval Indexing ^^^^^^^^ -- +- Improved exception message when calling :meth:`DataFrame.iloc` wit...
- [x] closes #25753 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Issue #25753 was raised requesting more verbose error messages when calling `loc` and `iloc` with mixed dtype arguments. In this pull request, I've added a new error message whe...
https://api.github.com/repos/pandas-dev/pandas/pulls/25759
2019-03-18T01:10:07Z
2019-03-26T00:28:43Z
2019-03-26T00:28:43Z
2019-03-26T00:28:47Z
Move locale code out of tm, into _config
diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py new file mode 100644 index 0000000000000..52150f526350d --- /dev/null +++ b/pandas/_config/__init__.py @@ -0,0 +1,4 @@ +""" +pandas._config is considered explicitly upstream of everything else in pandas, +should have no intra-pandas dependencies. +"""...
As discussed last week, one of ugliest runtime imports in `tslibs` is of `tm` for `tm.set_locale`. This moves `set_locale` and a couple of other locale-related functions out of `tm`. As discussed in #25162, #25203, #25613, this moves the affected functions to a new directory `pandas/_config`, intended to be strictl...
https://api.github.com/repos/pandas-dev/pandas/pulls/25757
2019-03-17T23:02:37Z
2019-03-20T01:06:17Z
2019-03-20T01:06:17Z
2019-03-20T01:17:41Z
remove unnecessary check_output copy/pasted code
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 6e88cd7f72dcd..ec276f883b85e 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -427,44 +427,9 @@ def close(fignum=None): # locale utilities -def check_output(*popenargs, **kwargs): - # shamelessly taken from Python 2.7 source -...
It isn't clear to me why this is needed. Maybe the CI will fail, in which case I'll just add a comment in the code explaining why it is needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/25755
2019-03-17T19:39:47Z
2019-03-18T12:02:36Z
2019-03-18T12:02:36Z
2019-03-18T15:02:00Z
PERF: cythonizing _concat_date_cols; conversion to float without exceptions in _does_string_look_like_datetime
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index c51fb09ad8671..36ba7c569d34f 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -96,6 +96,35 @@ def time_read_csv(self, infer_datetime_format, format): infer_datetime_format=infer_dateti...
- [x] closes N/A - [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/25754
2019-03-17T18:49:47Z
2019-05-12T20:54:25Z
2019-05-12T20:54:25Z
2019-05-12T20:54:49Z
Restore CI after PY2 drop
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 65f78c2786927..7119054cf2f53 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -15,6 +15,18 @@ jobs: PATTERN: "not slow and not network" ${{ if eq(parameters.name, 'Linux') }}: + py35_compat: + ENV_FILE: ci/deps/azu...
#24942 wanted to update the PY2-CI to newer python versions, but @jreback ultimately wanted to split this off. This takes the open changes from #24942. Quoting from the OP there: > I kept most of the CI jobs that used to be 2.7 at the lower end of the various supported versions, with 2x 2.7->3.5, 1x 2.7->3.6 and on...
https://api.github.com/repos/pandas-dev/pandas/pulls/25752
2019-03-17T15:31:22Z
2019-03-24T22:41:26Z
2019-03-24T22:41:26Z
2019-03-25T11:54:51Z
DOC: Fix function name.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f23aac9ad3a52..ac2ec40d6305d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3008,7 +3008,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, See Also -------- read_csv : Load a ...
Simple error that discovered during reading.
https://api.github.com/repos/pandas-dev/pandas/pulls/25751
2019-03-17T13:32:23Z
2019-03-18T23:59:47Z
2019-03-18T23:59:47Z
2019-03-18T23:59:54Z
[WIP] STY: activate pytest.raises context manager code check
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51df779341ed5..fc5b175d9b958 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -159,9 +159,8 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then # For any flake8-compliant code, the only way this regex gets # matched is if there is no "with"...
xref #24332 - [x] pandas/tests/arrays/sparse/test_libsparse.py - [x] pandas/tests/computation/test_eval.py - [x] pandas/tests/frame/test_nonunique_indexes.py - [x] pandas/tests/indexes/interval/test_interval_new.py - [x] pandas/tests/indexing/multiindex/test_partial.py - [ ] pandas/tests/indexing/test_floats.py...
https://api.github.com/repos/pandas-dev/pandas/pulls/25750
2019-03-17T10:46:43Z
2019-03-26T00:23:05Z
null
2019-03-26T00:23:05Z
TST: indexing/test_floats.py::TestFloatIndexers::test_scalar_non_numeric
diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py index b9b47338c9de2..087a2f2e77baf 100644 --- a/pandas/tests/indexing/test_floats.py +++ b/pandas/tests/indexing/test_floats.py @@ -61,109 +61,115 @@ def test_scalar_error(self): s.iloc[3.0] = 0 @ignore_ix -...
precursor to #25750 This test has some commented out code with a pytest.raises not used as a context manager. The goal here is primarily to remove the commented out code. some refactoring but not enough to allow full parametrization.
https://api.github.com/repos/pandas-dev/pandas/pulls/25748
2019-03-16T23:42:54Z
2019-03-27T08:28:11Z
null
2019-03-27T08:28:11Z
BUG: Fix localize_pydatetime using meta datetimes as Timestamp (#25734)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index ddc5e543c6165..8dbfa2a898694 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -136,7 +136,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ -- +- Bug with :class:`Timestamp` and :class:`CustomBusinessD...
- [x] closes #25734 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Proposed fix for #25734 The issue was due to localize_pydatetime assuming anything that was `not PyDateTime_CheckExact` must be a pandas `Timestamp`. However, in the rare ca...
https://api.github.com/repos/pandas-dev/pandas/pulls/25746
2019-03-16T19:51:58Z
2019-04-05T17:31:30Z
null
2019-04-05T17:31:39Z
BUG: Display precision doesn't affect complex float numbers #25514
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index c441244b4415d..e1ebbac49d7bd 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -292,6 +292,7 @@ Numeric - Bug in :meth:`to_numeric` in which large negative numbers were being improperly handled (:...
- [x] closes #25514 - [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/25745
2019-03-16T18:10:39Z
2019-04-12T17:08:31Z
2019-04-12T17:08:30Z
2019-04-12T17:08:36Z
BUG: Fix groupby with MultiIndex Series corner case (#25704)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 94f8fd16ea85a..37f609b847b02 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -371,6 +371,7 @@ Groupby/Resample/Rolling - Bug in :meth:`pandas.core.groupby.DataFrameGroupBy.nunique` in which the na...
- [x] closes #25704 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry There was an issue with `groupby` when you used `groupby` on a `Series` with a list of labels that was equal to the length of the entire `Series`. `core/groupby/grouper.py:_g...
https://api.github.com/repos/pandas-dev/pandas/pulls/25743
2019-03-15T22:14:51Z
2019-03-30T23:45:26Z
2019-03-30T23:45:26Z
2019-04-02T00:55:10Z
Dropna argument is now respected when false in pivot_table
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index b23da6ee4b806..da712f84eb1b5 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -394,6 +394,7 @@ Reshaping - Bug in :func:`merge` when merging by index name would sometimes result in an incorrectly n...
- [x] closes #22159 - [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/25738
2019-03-15T06:08:57Z
2019-04-12T22:00:03Z
2019-04-12T22:00:03Z
2019-04-12T22:00:08Z
Fix incorrect example in wide_to_long docstring
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51df779341ed5..2be8940478082 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -224,6 +224,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then pytest -q --doctest-modules \ pandas/core/reshape/concat.py \ pandas/core/reshape/p...
- [x] closes #25733 - [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/25736
2019-03-14T19:04:31Z
2019-04-10T05:32:06Z
null
2019-04-10T11:42:14Z
DOC: clarify corr behaviour when using a callable
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 7317682d95256..99e5950f06382 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7021,8 +7021,9 @@ def corr(self, method='pearson', min_periods=1): * kendall : Kendall Tau correlation coefficient * spearman : Spearman ...
fixes #25726 - [x] closes #25726 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/25732
2019-03-14T15:51:14Z
2019-03-18T12:23:52Z
2019-03-18T12:23:52Z
2019-03-18T12:23:55Z
BUG: Convert tuple to list before `_list_to_arrays` when construct DataFrame.
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 99b57e2427509..89c9f7ab68490 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -383,6 +383,7 @@ Reshaping - Bug in :func:`concat` where order of ``OrderedDict`` (and ``dict`` in Python 3.6+) is not ...
In `_list_to_arrays`, `to_object_array_tuples` or `to_object_array` is called, both require the argument to be a `list` (list of tuples or list of list). - [x] closes #25691 - [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/25731
2019-03-14T15:01:16Z
2019-04-05T00:45:20Z
2019-04-05T00:45:20Z
2019-04-05T00:45:31Z
Update ValueError message in corr
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 72c40b04a1195..d186fdfe0f322 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -124,7 +124,7 @@ Bug Fixes ~~~~~~~~~ - Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueError`` when...
to include the option of supplying a callable. - [x] closes #25727 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/25729
2019-03-14T13:39:55Z
2019-03-14T15:26:15Z
2019-03-14T15:26:14Z
2019-03-14T15:26:17Z
DOC: fix some grammar and inconsistency issues in the User Guide
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index 6f21a7d9beb36..f7fdfcf8bf882 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -46,8 +46,8 @@ Since ``df.columns`` is an Index object, we can use the ``.str`` accessor df.columns.str.lower() These...
https://api.github.com/repos/pandas-dev/pandas/pulls/25728
2019-03-14T12:53:43Z
2019-03-14T13:02:03Z
2019-03-14T13:02:03Z
2019-03-14T13:07:06Z
TST: assert_produces_warning works with filterwarnings
diff --git a/pandas/tests/util/test_assert_produces_warning.py b/pandas/tests/util/test_assert_produces_warning.py new file mode 100644 index 0000000000000..e125f01a494e7 --- /dev/null +++ b/pandas/tests/util/test_assert_produces_warning.py @@ -0,0 +1,22 @@ +import warnings + +import pytest + +import pandas.util.testin...
Previously, assert_produces_warning did not play well with pytest's filterwarnings. ``` ===================================================================================== FAILURES ====================================================================================== ____________________________________________...
https://api.github.com/repos/pandas-dev/pandas/pulls/25721
2019-03-14T02:51:43Z
2019-03-19T23:40:09Z
2019-03-19T23:40:09Z
2019-04-18T18:31:10Z
ENH: Add public start, stop, and step attributes to RangeIndex
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index e045f0dc0ee39..72c40b04a1195 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -26,6 +26,7 @@ Other Enhancements - :meth:`DataFrame.set_index` now works for instances of ``abc.Iterator``, provided t...
- [X] closes #25710 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Comments: - Was originally going to add the tests for this to `test_constructor` but decided to create a new test instead. I parametrized `test_constructor` to clean it up befo...
https://api.github.com/repos/pandas-dev/pandas/pulls/25720
2019-03-14T00:25:46Z
2019-03-14T12:38:53Z
2019-03-14T12:38:53Z
2019-03-14T18:38:07Z
API: concat on sparse values
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 1840c47b4054f..db0a4d00f95d9 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -64,6 +64,42 @@ is respected in indexing. (:issue:`24076`, :issue:`16785`) df = pd.DataFrame([0], index=pd.Datetime...
API breaking change to `concat(List[DataFrame[Sparse]])` to return a DataFrame with sparse values, rather than a SparseDataFrame. Doing an outright break, rather than deprecation, because I have a followup PR deprecating SparseDataFrame. We hit this internally in a few places (e.g. get_dummies on all-sparse data)...
https://api.github.com/repos/pandas-dev/pandas/pulls/25719
2019-03-13T23:00:37Z
2019-03-19T23:40:31Z
2019-03-19T23:40:31Z
2019-03-19T23:40:34Z
Backport PR #25262 on branch 0.24.x (REF/TST: resample/test_base.py)
diff --git a/pandas/tests/resample/test_base.py b/pandas/tests/resample/test_base.py index 911cd990ab881..809f3a00e925e 100644 --- a/pandas/tests/resample/test_base.py +++ b/pandas/tests/resample/test_base.py @@ -28,15 +28,10 @@ period_range, 'pi', datetime(2005, 1, 1), datetime(2005, 1, 10)) TIMEDELTA_RANGE = (t...
Backport PR #25262: REF/TST: resample/test_base.py
https://api.github.com/repos/pandas-dev/pandas/pulls/25718
2019-03-13T21:11:42Z
2019-03-26T00:24:19Z
2019-03-26T00:24:19Z
2019-03-26T00:24:24Z
Backport PR #25714 on branch 0.24.x (#25707 - Fixed flakiness in stata write test)
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 3354bca63be92..4051adc7ee4cb 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -251,7 +251,7 @@ def test_read_fspath_all_read_table(self, datapath): ('to_latex', {}, 'os'), ('to_msgpack...
Backport PR #25714: #25707 - Fixed flakiness in stata write test
https://api.github.com/repos/pandas-dev/pandas/pulls/25717
2019-03-13T20:11:05Z
2019-03-13T21:45:59Z
2019-03-13T21:45:59Z
2019-03-13T21:45:59Z
#25707 - Fixed flakiness in stata write test
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 3354bca63be92..4051adc7ee4cb 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -251,7 +251,7 @@ def test_read_fspath_all_read_table(self, datapath): ('to_latex', {}, 'os'), ('to_msgpack...
This is my first contribution, so please be gentle. For future reference, this error occurs when the two files are written in different minutes. I couldn't break the comparison by feeding the test datetime objects that only changed the seconds, so I assume only the date, hours, and minutes, are encoded. Anyway,...
https://api.github.com/repos/pandas-dev/pandas/pulls/25714
2019-03-13T17:13:41Z
2019-03-13T20:10:49Z
2019-03-13T20:10:48Z
2019-03-13T20:18:37Z
Auto backport of pr 25701 on 0.24.x
diff --git a/environment.yml b/environment.yml index 47fe8e4c2a640..ff7c5d56052d2 100644 --- a/environment.yml +++ b/environment.yml @@ -19,7 +19,9 @@ dependencies: - hypothesis>=3.82 - isort - moto - - pytest>=4.0 + - pycodestyle=2.4 + - pytest>=4.0.2 + - pytest-mock - sphinx - numpydoc diff --git...
@TomAugspurger @jorisvandenbossche @jreback want to double check I did this right. I didn't use the -m flag during the cherry-pick process as that was causing failures 0.24.3 at this point?
https://api.github.com/repos/pandas-dev/pandas/pulls/25713
2019-03-13T17:13:18Z
2019-03-18T14:45:41Z
2019-03-18T14:45:41Z
2020-01-16T00:34:34Z
Make Rolling.apply documentation clearer
diff --git a/pandas/core/window.py b/pandas/core/window.py index 9e29fdb94c1e0..b073a7f379db6 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -953,7 +953,7 @@ def count(self): ---------- func : function Must produce a single value from an ndarray input if ``raw=True`` - or a ...
Fix #25656 by making Rolling.apply documentation clearer (hope this is what @js3711 intended) - [x] closes #25656 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/25712
2019-03-13T16:49:03Z
2019-03-14T01:53:42Z
2019-03-14T01:53:42Z
2019-03-14T01:53:47Z
DOC: Add expanded index descriptors for specifying for RangeIndex-as-metadata in Parquet file schema
diff --git a/doc/source/development/developer.rst b/doc/source/development/developer.rst index a283920ae4377..923ef005d5926 100644 --- a/doc/source/development/developer.rst +++ b/doc/source/development/developer.rst @@ -37,12 +37,19 @@ So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a .. co...
Closes #25672 - [x] closes #xxxx - [x] tests added / passed (N/A) - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (N/A) - [ ] whatsnew entry (N/A)
https://api.github.com/repos/pandas-dev/pandas/pulls/25709
2019-03-13T14:56:55Z
2019-08-08T13:38:48Z
2019-08-08T13:38:48Z
2019-08-08T13:38:49Z
fix MacPython pandas-wheels failure (#25186)
diff --git a/pandas/tests/indexes/multi/test_analytics.py b/pandas/tests/indexes/multi/test_analytics.py index 632ab7aa7be7a..1b20e3f555647 100644 --- a/pandas/tests/indexes/multi/test_analytics.py +++ b/pandas/tests/indexes/multi/test_analytics.py @@ -3,7 +3,7 @@ import numpy as np import pytest -from pandas.compa...
(cherry picked from commit 93568cc3c529a10a897879561b4cd75486c618be)
https://api.github.com/repos/pandas-dev/pandas/pulls/25706
2019-03-13T13:25:34Z
2019-03-13T14:16:55Z
2019-03-13T14:16:55Z
2019-03-13T16:40:10Z
Pinned pycodestyle
diff --git a/environment.yml b/environment.yml index c1669c9f49017..ff7c5d56052d2 100644 --- a/environment.yml +++ b/environment.yml @@ -19,6 +19,7 @@ dependencies: - hypothesis>=3.82 - isort - moto + - pycodestyle=2.4 - pytest>=4.0.2 - pytest-mock - sphinx diff --git a/requirements-dev.txt b/require...
Fixes issues with the LINT failures as of recent. Quick fix with more permanent solutions split between #25697 and #25622 @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/25701
2019-03-13T01:23:30Z
2019-03-13T11:52:35Z
2019-03-13T11:52:35Z
2019-08-21T21:09:14Z
DOC: update date of 0.24.2 release notes
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 5b5c9c78d10da..6ad299de45e2a 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -2,8 +2,8 @@ .. _whatsnew_0242: -Whats New in 0.24.2 (February XX, 2019) ---------------------------------------- +...
https://api.github.com/repos/pandas-dev/pandas/pulls/25699
2019-03-12T21:05:45Z
2019-03-12T21:06:58Z
2019-03-12T21:06:58Z
2019-03-12T21:07:05Z
Add obj=obj to get it in failing assert messages
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 6e88cd7f72dcd..47e6d4c1b4af9 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1263,7 +1263,7 @@ def assert_series_equal(left, right, check_dtype=True, not check_categorical): pass else: - ...
Adding obj=obj in this call to assert_attr_equal helps make failing test cases more easily debuggable. This follows the pattern elsewhere in this same file of other calls to assert_attr_equal and related methods. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | fl...
https://api.github.com/repos/pandas-dev/pandas/pulls/25698
2019-03-12T20:47:25Z
2019-03-12T22:01:50Z
null
2019-03-12T22:01:50Z
Handle New PyFlakes Issues
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index cbcb098c47125..a03e6c6240db7 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -16,4 +16,5 @@ pycodestyle: - E731, # do not assign a lambda expression, use a def - C406, # Unnecessary list literal - rewrite as a dict literal. - C408, ...
Had some LINT issues pop up in CI with newest released version of PyFlakes which this should handle
https://api.github.com/repos/pandas-dev/pandas/pulls/25697
2019-03-12T20:36:18Z
2019-03-20T01:24:34Z
null
2019-03-20T01:24:39Z
CLN: handle EAs and fast path (no bounds checking) in safe_sort
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index a65b92737c220..2784b9299e447 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -428,6 +428,7 @@ Other ^^^^^ - Removed unused C functions from vendored UltraJSON implementation (:issue:`26198`) +-...
This is a possible alternative solution to what we have been discussing in https://github.com/pandas-dev/pandas/pull/25592. This moves the logic into `safe_sort`, with: - adding a `check_outofbounds` keyword to disable extra checks (otherwise the performance benefit of `take_1d` is lost) - fixing `safe_sort` to ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25696
2019-03-12T20:33:59Z
2019-05-07T01:01:43Z
2019-05-07T01:01:43Z
2019-05-07T01:01:55Z
Backport PR #25592 on branch 0.24.x (BUG: fix usage of na_sentinel with sort=True in factorize())
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 09deb69d3b39e..c07959c758780 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -33,6 +33,7 @@ Fixed Regressions - Fixed regression in :class:`Categorical`, where constructing it from a categorical `...
Backport PR #25592: BUG: fix usage of na_sentinel with sort=True in factorize()
https://api.github.com/repos/pandas-dev/pandas/pulls/25695
2019-03-12T20:25:37Z
2019-03-12T20:46:08Z
2019-03-12T20:46:08Z
2019-03-12T21:07:01Z
Replace dicts with OrderedDicts in groupby aggregation functions
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 546600e1b2f4b..8e72ce83ac028 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -253,6 +253,7 @@ Groupby/Resample/Rolling - Bug in :meth:`pandas.core.groupby.DataFrameGroupBy.nunique` in which the na...
- [x] closes #25692 - [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/25693
2019-03-12T19:15:40Z
2019-03-19T04:28:10Z
2019-03-19T04:28:10Z
2019-03-19T05:46:45Z
TST/CLN: empty DataFrames and some 'empty' Series
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 6503dba458399..307436e1e4786 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -435,7 +435,7 @@ def test_arith_flex_zero_len_raises(self): # GH 19522 passing fill_val...
xref https://github.com/pandas-dev/pandas/pull/24886#issuecomment-468984081 have included Series constructed with an empty dict. Series constructed with an empty list, tuple or generator are not the same as Series() or Series({}), so have not included them in this pass. (although for many tests the difference in ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25690
2019-03-12T15:43:12Z
2019-03-27T12:46:49Z
2019-03-27T12:46:49Z
2019-03-27T14:30:47Z
Precursor for #25607
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py old mode 100755 new mode 100644 index 16e93479eb2e7..a6c37bce92f25 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -454,9 +454,6 @@ def _setitem_with_indexer(self, indexer, value): elif self.ndim >= 3: re...
- [x] precursor for #25607 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Nothing new
https://api.github.com/repos/pandas-dev/pandas/pulls/25688
2019-03-12T13:06:54Z
2019-05-07T01:50:44Z
null
2019-05-07T01:50:44Z
Backport PR #25651 on branch 0.24.x (REGR: to_timedelta precision issues with floating data)
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 0af2427ead512..09deb69d3b39e 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -31,6 +31,7 @@ Fixed Regressions - Fixed regression in ``IntervalDtype`` construction where passing an incorrect string...
Backport PR #25651: REGR: to_timedelta precision issues with floating data
https://api.github.com/repos/pandas-dev/pandas/pulls/25687
2019-03-12T12:43:12Z
2019-03-12T13:49:26Z
2019-03-12T13:49:26Z
2019-03-12T13:49:27Z
BUG: Raise ValueError if a column index in usecols is out of bounds. …
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 58c07a14dec39..cff65967c4229 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -284,7 +284,7 @@ I/O - Bug in :meth:`DataFrame.to_string` and :meth:`DataFrame.to_latex` that would lead to incorrect o...
fixes #25623 - [x] closes #25623 - [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/25686
2019-03-12T10:36:18Z
2019-03-30T17:36:23Z
2019-03-30T17:36:23Z
2019-03-30T17:36:36Z
BUG: Raise ValueError if a column index in usecols is out of bounds.
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4840f1e836c4..51df779341ed5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -241,8 +241,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL06, GL07, GL09, SS04, SS05, PR03, PR04, PR05,...
Ignore this PR. History is a nightmare... Refer to #25686
https://api.github.com/repos/pandas-dev/pandas/pulls/25685
2019-03-12T09:05:58Z
2019-03-12T10:08:42Z
null
2019-03-12T19:02:00Z
Backport PR #25455 on branch 0.24.x (CI: add __init__.py to isort skip list)
diff --git a/ci/deps/azure-27-compat.yaml b/ci/deps/azure-27-compat.yaml index 986855c464852..c68b51fbd6644 100644 --- a/ci/deps/azure-27-compat.yaml +++ b/ci/deps/azure-27-compat.yaml @@ -21,6 +21,7 @@ dependencies: - pytest - pytest-xdist - pytest-mock + - isort - pip: - html5lib==1.0b2 - beaut...
Backport PR #25455: CI: add __init__.py to isort skip list
https://api.github.com/repos/pandas-dev/pandas/pulls/25684
2019-03-12T08:17:36Z
2019-03-12T08:36:18Z
2019-03-12T08:36:18Z
2019-03-12T09:03:32Z
Backport PR #25660 on branch 0.24.x (DOC: clean-up of 0.24.2 whatsnew file)
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 8da33a46e79c6..0af2427ead512 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -18,7 +18,7 @@ including other versions of pandas. .. _whatsnew_0242.regressions: Fixed Regressions -^^^^^^^^^^^^^^^...
Backport PR #25660: DOC: clean-up of 0.24.2 whatsnew file
https://api.github.com/repos/pandas-dev/pandas/pulls/25683
2019-03-12T08:04:05Z
2019-03-12T08:04:32Z
2019-03-12T08:04:32Z
2019-03-12T08:04:32Z
API: DataFrame.sparse accessor
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index cd3e6594f1d1e..dfa475684c834 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -311,6 +311,29 @@ specific plotting methods of the form ``DataFrame.plot.<kind>``. DataFrame.boxplot DataFrame.hist ...
Closes https://github.com/pandas-dev/pandas/issues/25681
https://api.github.com/repos/pandas-dev/pandas/pulls/25682
2019-03-12T03:27:15Z
2019-05-14T14:13:46Z
2019-05-14T14:13:46Z
2019-05-14T14:13:49Z
CLN: remove Panel from concat error message
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index a6c945ac2e464..6cc355fb62f23 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -282,10 +282,10 @@ def __init__(self, objs, axis=0, join='outer', join_axes=None, # consolidate data & figure out what ...
xref #25632 (NOTE: overlapping PR with #25675)
https://api.github.com/repos/pandas-dev/pandas/pulls/25676
2019-03-11T23:26:18Z
2019-03-12T12:44:37Z
2019-03-12T12:44:37Z
2019-03-13T11:54:40Z
TST/CLN: Remove more Panel tests
diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py index 599ab9a3c5f7c..51bf52c40ad3c 100644 --- a/pandas/tests/api/test_api.py +++ b/pandas/tests/api/test_api.py @@ -53,10 +53,10 @@ class TestPDApi(Base): ] # these are already deprecated; awaiting removal - deprecated_cl...
xref #25632
https://api.github.com/repos/pandas-dev/pandas/pulls/25675
2019-03-11T22:17:53Z
2019-03-13T12:49:50Z
2019-03-13T12:49:50Z
2019-03-13T13:29:21Z
Backport PR #25669 on branch 0.24.x (Add 0.24.1 and 0.24.2 to whatsnew index)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index d0aab4012ffd5..6c529d2e2e5f3 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,8 @@ Version 0.24 .. toctree:: :maxdepth: 2 + v0.24.2 + v0.24.1 v0.24.0 Version 0.23
Backport PR #25669: Add 0.24.1 and 0.24.2 to whatsnew index
https://api.github.com/repos/pandas-dev/pandas/pulls/25671
2019-03-11T17:42:15Z
2019-03-11T17:44:18Z
2019-03-11T17:44:18Z
2019-03-11T17:44:18Z
CLN: Remove unused test code
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 062d1876141f8..e52db86c7fd5e 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -23,16 +23,13 @@ from pandas.core.computation.expressions import ( _NUMEXPR_INSTALLED, _US...
cc @WillAyd same code as cleaned in #25647 intention originally to just deal with the commented out instance of `pytest.raises` for #24332 but may have gone too far!
https://api.github.com/repos/pandas-dev/pandas/pulls/25670
2019-03-11T17:37:14Z
2019-03-12T12:46:00Z
2019-03-12T12:46:00Z
2019-03-13T11:55:36Z
Add 0.24.1 and 0.24.2 to whatsnew index
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index d0aab4012ffd5..6c529d2e2e5f3 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,8 @@ Version 0.24 .. toctree:: :maxdepth: 2 + v0.24.2 + v0.24.1 v0.24.0 Version 0.23
For backport. Following up with an update including 0.25.0 (not for backport). cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/25669
2019-03-11T17:32:22Z
2019-03-11T17:41:48Z
2019-03-11T17:41:48Z
2019-03-11T17:41:48Z
DOC: update link to whatsnew in sidebar to 0.24.2
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 0f82592f084f4..f9617c3809cc9 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -40,7 +40,7 @@ See the :ref:`overview` for more detail about what's in the library. {% endif %} {% if not single_doc -%}...
Only for the 0.24.x branch
https://api.github.com/repos/pandas-dev/pandas/pulls/25668
2019-03-11T17:27:07Z
2019-03-11T17:42:05Z
2019-03-11T17:42:05Z
2019-03-11T17:42:08Z
Backport PR #25584 on branch 0.24.x (BUG: Redefine IndexOpsMixin.size, fix #25580)
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 0f603515c61cc..ee9419c79e265 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -102,7 +102,8 @@ Bug Fixes - Bug in :meth:`Series.is_unique` where single occurrences of ``NaN`` were not considered un...
Manual backport of https://github.com/pandas-dev/pandas/pull/25584
https://api.github.com/repos/pandas-dev/pandas/pulls/25667
2019-03-11T16:55:36Z
2019-03-11T18:31:21Z
2019-03-11T18:31:21Z
2019-03-11T18:31:24Z
Backport PR #25662 on branch 0.24.x (DOC: hardcode contributors for 0.24.x releases)
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index be0a2eb682e87..8f963f1285e1b 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -82,4 +82,15 @@ Bug Fixes Contributors ~~~~~~~~~~~~ -.. contributors:: v0.24.0..v0.24.1 +.. Including the contributo...
Backport PR #25662: DOC: hardcode contributors for 0.24.x releases
https://api.github.com/repos/pandas-dev/pandas/pulls/25666
2019-03-11T16:52:09Z
2019-03-11T16:57:00Z
2019-03-11T16:57:00Z
2019-03-11T16:57:00Z
PERF: speed up MPLPlot._apply_axis_properties by skipping expensive tick enumeration where feasible
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index b9ec4d58db739..b8ca69d9d2e12 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -468,12 +468,20 @@ def _adorn_subplots(self): self.axes[0].set_title(self.title) def _apply_axis_properties(self, axis, rot=...
This issue likely originates in `matplotlib`, as it seems enumeration of `axis.majorTicks` frequently requires re-creating all of the ticks. We sidestep that here by only enumerating the labels if we will mutate them; in particular, this is beneficial to `MPLPlot._post_plot_logic_common()`. ``` asv compare upstream...
https://api.github.com/repos/pandas-dev/pandas/pulls/25665
2019-03-11T16:38:10Z
2019-03-15T20:16:03Z
2019-03-15T20:16:03Z
2019-03-15T21:46:19Z
Backport PR #25134 on branch 0.24.x (DOC: restore toctree maxdepth)
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst index d67a6c3a2ca04..a149f31118ed5 100644 --- a/doc/source/development/index.rst +++ b/doc/source/development/index.rst @@ -6,6 +6,9 @@ Development =========== +.. If you update this toctree, also update the manual toctree in the + m...
Backport PR #25134: DOC: restore toctree maxdepth
https://api.github.com/repos/pandas-dev/pandas/pulls/25664
2019-03-11T16:12:47Z
2019-03-11T17:22:13Z
2019-03-11T17:22:13Z
2019-03-11T17:25:57Z
Backport PR #25625 on branch 0.24.x (BUG: to_csv line endings with compression)
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 2c6d1e01ed89b..0f603515c61cc 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -32,6 +32,7 @@ Fixed Regressions - Fixed regression in creating a period-dtype array from a read-only NumPy array of pe...
Backport PR #25625: BUG: to_csv line endings with compression
https://api.github.com/repos/pandas-dev/pandas/pulls/25663
2019-03-11T15:27:33Z
2019-03-11T16:10:59Z
2019-03-11T16:10:59Z
2019-03-11T16:26:31Z
DOC: hardcode contributors for 0.24.x releases
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index be0a2eb682e87..8f963f1285e1b 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -82,4 +82,15 @@ Bug Fixes Contributors ~~~~~~~~~~~~ -.. contributors:: v0.24.0..v0.24.1 +.. Including the contributo...
xref https://github.com/pandas-dev/pandas/issues/24949#issuecomment-460170519 The actual contributors are not picked up by our `.. contributors::` sphinx extension, as the commit authors area lost in the backporting process using MeeseeksDev.
https://api.github.com/repos/pandas-dev/pandas/pulls/25662
2019-03-11T15:23:05Z
2019-03-11T16:51:32Z
2019-03-11T16:51:32Z
2019-03-11T16:51:36Z
[BUG] TimedeltaIndex intersects with decreasing TimedeltaIndex
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index fe047b4a141ef..4544daf063197 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -273,7 +273,7 @@ Datetimelike Timedelta ^^^^^^^^^ -- +- Bug when :meth:`TimedeltaIndex.intersection` with another de...
- closes #17391 - tests added (two tests taken from #22114) - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry Beside the bug of decreasing TimedeltaIndex, this PR also solve the following ``` In [2]: idx1 = pd.to_timedelta(range(1,20), unit='s') ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25661
2019-03-11T15:22:11Z
2019-05-01T12:06:29Z
null
2019-05-01T12:06:29Z
DOC: clean-up of 0.24.2 whatsnew file
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 8da33a46e79c6..0af2427ead512 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -18,7 +18,7 @@ including other versions of pandas. .. _whatsnew_0242.regressions: Fixed Regressions -^^^^^^^^^^^^^^^...
https://api.github.com/repos/pandas-dev/pandas/pulls/25660
2019-03-11T14:09:30Z
2019-03-12T08:03:14Z
2019-03-12T08:03:14Z
2019-03-12T08:03:17Z
Backport PR #25624 on branch 0.24.x (DOC: file obj for to_csv must be newline='')
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index b23a0f10e9e2b..1b5d96fa9c146 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1689,7 +1689,7 @@ The ``Series`` and ``DataFrame`` objects have an instance method ``to_csv`` whic allows storing the contents of ...
Backport PR #25624: DOC: file obj for to_csv must be newline=''
https://api.github.com/repos/pandas-dev/pandas/pulls/25659
2019-03-11T13:58:56Z
2019-03-11T13:59:35Z
2019-03-11T13:59:35Z
2019-03-11T13:59:35Z
Backport PR #25629: Suppress incorrect warning in nargsort for timezo…
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index ef69939d6e978..0b5b017bec9ac 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -1,4 +1,5 @@ """ miscellaneous sorting / groupby utilities """ +import warnings import numpy as np @@ -254,7 +255,13 @@ def nargsort(items, kind='quic...
…ne-aware DatetimeIndex manual backport of https://github.com/pandas-dev/pandas/pull/25629
https://api.github.com/repos/pandas-dev/pandas/pulls/25657
2019-03-11T13:11:11Z
2019-03-11T13:55:46Z
2019-03-11T13:55:46Z
2019-03-11T13:56:27Z
CLN: remove pandas.core.categorical
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py deleted file mode 100644 index 43c35c4000bb6..0000000000000 --- a/pandas/core/categorical.py +++ /dev/null @@ -1,9 +0,0 @@ -import warnings - -from pandas.core.dtypes.dtypes import CategoricalDtype # noqa - -from pandas.core.arrays import Categorical...
xref #19269 https://github.com/pandas-dev/pandas/blob/de52d0b10c28318ae48390dbe7abcd1807a1154a/pandas/core/categorical.py#L7
https://api.github.com/repos/pandas-dev/pandas/pulls/25655
2019-03-11T12:47:45Z
2019-03-13T12:59:06Z
2019-03-13T12:59:06Z
2019-03-13T13:34:33Z
Backport PR #25653 on branch 0.24.x (TST: fix incorrect sparse test (now failing on scipy master))
diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index 9c13a20726553..11b5bcf702e75 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -1091,11 +1091,11 @@ def test_from_coo(self): row = [0, 3, 1, 0] c...
Backport PR #25653: TST: fix incorrect sparse test (now failing on scipy master)
https://api.github.com/repos/pandas-dev/pandas/pulls/25654
2019-03-11T12:14:12Z
2019-03-11T13:12:10Z
2019-03-11T13:12:10Z
2019-03-11T13:12:10Z
TST: fix incorrect sparse test (now failing on scipy master)
diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index 9c13a20726553..11b5bcf702e75 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -1091,11 +1091,11 @@ def test_from_coo(self): row = [0, 3, 1, 0] c...
Closes https://github.com/pandas-dev/pandas/issues/25652
https://api.github.com/repos/pandas-dev/pandas/pulls/25653
2019-03-11T10:37:19Z
2019-03-11T12:13:33Z
2019-03-11T12:13:33Z
2019-03-11T12:13:33Z
REGR: to_timedelta precision issues with floating data
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst index 8da33a46e79c6..bebd40b4adde2 100644 --- a/doc/source/whatsnew/v0.24.2.rst +++ b/doc/source/whatsnew/v0.24.2.rst @@ -31,6 +31,7 @@ Fixed Regressions - Fixed regression in ``IntervalDtype`` construction where passing an incorrect string...
Closes https://github.com/pandas-dev/pandas/issues/25077
https://api.github.com/repos/pandas-dev/pandas/pulls/25651
2019-03-11T09:37:20Z
2019-03-12T12:43:02Z
2019-03-12T12:43:02Z
2019-03-12T12:56:18Z
CLN: Panel reference from documentation
diff --git a/doc/source/conf.py b/doc/source/conf.py index c59d28a6dc3ea..8693a97bc00f1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -16,7 +16,6 @@ import inspect import importlib import logging -import warnings import jinja2 from sphinx.ext.autosummary import _import_by_name from numpydoc.docscrap...
xref #25632 I didn't remove Panel reference from the whatsnew docs. Figured they should still be kept there for users who install older versions.
https://api.github.com/repos/pandas-dev/pandas/pulls/25649
2019-03-11T04:54:07Z
2019-03-20T12:25:42Z
2019-03-20T12:25:42Z
2019-03-20T16:23:49Z