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
BUG: SystemError in df.sum
diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx index 6e6b809b9b5a6..ed1df5f4fa595 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -57,11 +57,12 @@ def integer_op_not_supported(obj): # the caller; mypy finds this more palatable. ...
- [x] closes #30886 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30905
2020-01-10T23:21:16Z
2020-01-15T14:19:18Z
2020-01-15T14:19:17Z
2020-01-15T16:12:40Z
Implement C Level Timedelta ISO Function; fix JSON usage
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e540626dc1e14..24d14e49b3db0 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -341,6 +341,7 @@ I/O timestamps with ``version="2.0"`` (:issue:`31652`). - Bug in :meth:`read_csv` was raising `TypeErro...
- [X] closes #28256 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry similar to @cbertinato great work in #28595 but done deeper in the C extension
https://api.github.com/repos/pandas-dev/pandas/pulls/30903
2020-01-10T23:08:40Z
2020-03-19T00:57:22Z
2020-03-19T00:57:22Z
2023-04-12T20:17:16Z
BUG: raise on non-hashable in __contains__
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index e5e3b27c41721..e4ec9db560b80 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -72,9 +72,10 @@ cdef class IndexEngine: self.over_size_threshold = n >= _SIZE_CUTOFF self.clear_mapping() - def __contains__(self, ob...
By checking before we get to the `Engine.__contains__` call, we can avoid a redundant call to `hash`
https://api.github.com/repos/pandas-dev/pandas/pulls/30902
2020-01-10T23:05:59Z
2020-01-20T17:19:08Z
2020-01-20T17:19:08Z
2020-01-20T19:00:48Z
TYP: typing annotations
diff --git a/pandas/_config/display.py b/pandas/_config/display.py index 067b7c503baab..ef319f4447565 100644 --- a/pandas/_config/display.py +++ b/pandas/_config/display.py @@ -1,6 +1,7 @@ """ Unopinionated display configuration. """ + import locale import sys @@ -11,7 +12,7 @@ _initial_defencoding = None -...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30901
2020-01-10T21:37:12Z
2020-01-10T23:48:04Z
2020-01-10T23:48:04Z
2020-01-12T09:12:26Z
REGR: Fixed hash_key=None for object values
diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py index 43655fa3ea913..3366f10b92604 100644 --- a/pandas/core/util/hashing.py +++ b/pandas/core/util/hashing.py @@ -2,6 +2,7 @@ data hash pandas / numpy objects """ import itertools +from typing import Optional import numpy as np @@ -58,7 +59,...
Closes https://github.com/pandas-dev/pandas/issues/30887
https://api.github.com/repos/pandas-dev/pandas/pulls/30900
2020-01-10T20:46:18Z
2020-01-13T15:22:04Z
2020-01-13T15:22:04Z
2020-01-13T15:22:07Z
CLN: simplify Float64Index.__contains__
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index b9b44284edaa9..fade58eea73b4 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -477,20 +477,7 @@ def __contains__(self, other) -> bool: if super().__contains__(other): return True ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30899
2020-01-10T19:39:59Z
2020-01-16T19:56:30Z
2020-01-16T19:56:30Z
2020-01-16T21:48:12Z
DOC: Add pandas_path to the accesor list in the documentation
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 7bd5ba7ecdf0b..be61b83d46a26 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -41,6 +41,16 @@ Pyjanitor provides a clean API for cleaning data, using method chaining. Engarde is a lightweight library used to explicitly state ...
Added the [`pandas_path`](https://github.com/drivendataorg/pandas-path/) package that I just released to the list of third-party accessor extensions. As a bonus, added a Description column for the existing libraries.
https://api.github.com/repos/pandas-dev/pandas/pulls/30898
2020-01-10T19:06:19Z
2020-01-16T20:00:05Z
2020-01-16T20:00:05Z
2020-01-16T20:00:11Z
TYP: offsets
diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index 8bb98a271bce8..d31c23c7ccf1d 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -365,7 +365,7 @@ def apply_index(self, i): "applied vectorized" ) - def is_anchored(self): + def is_anchor...
https://api.github.com/repos/pandas-dev/pandas/pulls/30897
2020-01-10T18:01:56Z
2020-01-10T23:57:34Z
2020-01-10T23:57:34Z
2020-01-11T00:19:03Z
CLN: remove unnecessary arg from _to_dt64
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index f24dce28cd5f7..31dc2945f0395 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -216,7 +216,7 @@ def _get_calendar(weekmask, holidays, calendar): holidays = holidays + calendar.holidays().tol...
https://api.github.com/repos/pandas-dev/pandas/pulls/30895
2020-01-10T17:13:56Z
2020-01-16T19:55:21Z
2020-01-16T19:55:21Z
2020-01-16T21:46:04Z
[BUG] Series.diff was always setting the dtype to object
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 0879189a822f8..6f84fb9592449 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1146,6 +1146,7 @@ ExtensionArray - Bug in :class:`arrays.PandasArray` when setting a scalar string (:issue:`28118`, :issue...
- [x] closes #30889 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30894
2020-01-10T17:10:00Z
2020-01-19T16:31:03Z
null
2023-05-11T01:19:26Z
WEB: Remove from roadmap moving the docstring script
diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst index 00598830e2fe9..fafe63d80249c 100644 --- a/doc/source/development/roadmap.rst +++ b/doc/source/development/roadmap.rst @@ -129,20 +129,6 @@ Some specific goals include * Improve the overall organization of the documentation and s...
The docstring validation script was moved to numpydoc, so it's probably worth removing this task from the roadmap. The integration of the new numpydoc script in pandas is ready in #30746
https://api.github.com/repos/pandas-dev/pandas/pulls/30893
2020-01-10T17:06:52Z
2020-01-10T23:21:21Z
2020-01-10T23:21:21Z
2020-01-10T23:21:21Z
WEB: Link from the website to the docs
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index e2a95a5039884..65844379b0219 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -35,15 +35,7 @@ navbar: - name: "Getting started" target: /getting_started.html - name: "Documentation" - target: - - name: "User guide" - ...
The navigation of the web was implemented assuming the docs will render with the same layout. Since this is not finally the case, and the website and the docs are finally independent, I guess it makes more sense to simply link to the home of the docs. Otherwise, we'd need to rethink those links, since the last one i...
https://api.github.com/repos/pandas-dev/pandas/pulls/30891
2020-01-10T16:33:39Z
2020-02-05T15:50:45Z
2020-02-05T15:50:44Z
2020-02-05T15:50:58Z
WEB: Removing Discourse links
diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html index 120058afd1190..92126a7b5a2f2 100644 --- a/web/pandas/_templates/layout.html +++ b/web/pandas/_templates/layout.html @@ -84,11 +84,6 @@ <i class="fab fa-stack-overflow"></i> </a> ...
Just realized that the discourse links are still in the web. They should be removed, since we're not planning to use discourse for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/30890
2020-01-10T16:26:59Z
2020-01-10T19:26:21Z
2020-01-10T19:26:21Z
2020-01-10T19:26:27Z
DOC: Move import conventions from wiki to docs #30808
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 2fc2f1fb6ee8d..a295038b5a0bd 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -127,3 +127,29 @@ For example: value = str f"Unknown recived type, got: '{type(value...
- [x] closes #30808 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30888
2020-01-10T15:48:25Z
2020-01-13T13:05:17Z
2020-01-13T13:05:17Z
2020-01-13T18:10:26Z
[DOC] set klass correctly for series and dataframe set_axis
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 676b78573399c..e22e20febb68e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3819,6 +3819,46 @@ def align( broadcast_axis=broadcast_axis, ) + @Appender( + """ + >>> df = pd.DataFrame({"A": [1, 2, 3],...
- [x] closes #30881 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30885
2020-01-10T14:28:37Z
2020-01-20T18:04:01Z
2020-01-20T18:04:01Z
2020-01-20T22:27:09Z
Backport PR #30878 on branch 1.0.x (DEPR: fix missing stacklevel in pandas.core.index deprecation)
diff --git a/pandas/core/index.py b/pandas/core/index.py index a9c8e6731a17e..8cff53d7a8b74 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -27,4 +27,5 @@ "pandas.core.index is deprecated and will be removed in a future version. " "The public classes are available in the top-level namespace."...
Backport PR #30878: DEPR: fix missing stacklevel in pandas.core.index deprecation
https://api.github.com/repos/pandas-dev/pandas/pulls/30883
2020-01-10T14:01:42Z
2020-01-10T19:23:33Z
2020-01-10T19:23:33Z
2020-01-10T19:23:34Z
raise more specific error if dict is appended to frame wit…
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 1cd325dad9f07..a9585fd13e36b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -161,7 +161,8 @@ ExtensionArray Other ^^^^^ -- +- Appending a dictionary to a :class:`DataFrame` without passing ``ignor...
…hout ignore_index - [x] closes #30871 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30882
2020-01-10T13:39:36Z
2020-01-20T18:11:02Z
2020-01-20T18:11:02Z
2020-01-20T22:28:04Z
DEPR: fix missing stacklevel in pandas.core.index deprecation
diff --git a/pandas/core/index.py b/pandas/core/index.py index a9c8e6731a17e..8cff53d7a8b74 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -27,4 +27,5 @@ "pandas.core.index is deprecated and will be removed in a future version. " "The public classes are available in the top-level namespace."...
xref https://github.com/pandas-dev/pandas/issues/30872
https://api.github.com/repos/pandas-dev/pandas/pulls/30878
2020-01-10T07:50:41Z
2020-01-10T14:01:10Z
2020-01-10T14:01:10Z
2020-01-10T14:04:27Z
CLN: misc cleanups
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 28d269a9a809e..ce6d12d61c521 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -85,7 +85,6 @@ cdef class IndexEngine: """ cdef: object loc - void* data_ptr loc = self.get_loc(key) ...
Things I find myself doing in multiple branches.
https://api.github.com/repos/pandas-dev/pandas/pulls/30877
2020-01-10T04:12:59Z
2020-01-13T20:25:58Z
2020-01-13T20:25:58Z
2020-01-14T04:20:44Z
ENH Avoid redundant CSS in Styler.render
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 294183e24c96f..01c089b46b4a1 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -18,6 +18,7 @@ Enhancements Other enhancements ^^^^^^^^^^^^^^^^^^ +- :class:`Styler` may now render CSS more efficiently...
Where multiple styled cells have the same CSS, only make one CSS declaration. This can reduce the output size substantially. - [x] ~~closes #xxxx~~ - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30876
2020-01-10T00:51:21Z
2020-01-20T19:52:09Z
2020-01-20T19:52:09Z
2020-01-20T19:52:11Z
CLN: remove unnecessary overriding in subclasses
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 7c1e95e12d339..477db9b0dc8d7 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -428,19 +428,6 @@ def _engine(self): codes = self.codes return self._engine_type(lambda: codes, len(se...
https://api.github.com/repos/pandas-dev/pandas/pulls/30875
2020-01-10T00:35:00Z
2020-01-10T02:11:31Z
2020-01-10T02:11:31Z
2020-01-10T02:18:23Z
CLN: fix wrong types getting passed to TDI._get_string_slice
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ca929b188dc33..e6747c90168cb 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -96,6 +96,7 @@ duplicated="np.ndarray", ) _index_shared_docs = dict() +str_t = str def _make_comparison_op(op, cls): @@ -463...
Removes unreachable code paths.
https://api.github.com/repos/pandas-dev/pandas/pulls/30874
2020-01-10T00:27:19Z
2020-01-20T17:21:25Z
2020-01-20T17:21:25Z
2020-01-20T18:57:16Z
BUG: set_index() and reset_index() not preserving object dtypes
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e07a8fa0469f4..6e10047cfb86f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -148,6 +148,8 @@ Indexing ^^^^^^^^ - Bug in slicing on a :class:`DatetimeIndex` with a partial-timestamp dropping high-res...
* changes to `set_index()` and `ensure_index_from_sequences()` to pass current dtype of key through call stack onto Index constructor, rather than letting Index constructor infer the dtype. For now I just aimed to patch a single key param from `set_index()`, as that is the lowest hanging fruit for this issue I think. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30870
2020-01-09T22:51:42Z
2020-04-07T16:22:42Z
null
2020-04-07T16:22:43Z
DOC: add note about many removals in pandas 1.0
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 724525476c629..97fdd8d2566b9 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -6,6 +6,15 @@ What's new in 1.0.0 (??) These are the changes in pandas 1.0.0. See :ref:`release` for a full changelog incl...
cc @TomAugspurger Adding a note about the recommended way to upgrade to pandas 1.0, if that sounds OK
https://api.github.com/repos/pandas-dev/pandas/pulls/30865
2020-01-09T20:45:50Z
2020-01-09T21:14:05Z
2020-01-09T21:14:05Z
2020-01-09T21:14:10Z
DOC: Encourage use of pre-commit in the docs
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 93c65ba7358c9..2dc5ed07544d1 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -635,6 +635,8 @@ many errors as possible, but it may not correct *all* of them. Thus, it...
Previously, we stated it as merely optional. xref https://github.com/pandas-dev/pandas/pull/30773, https://github.com/pandas-dev/pandas/pull/30814
https://api.github.com/repos/pandas-dev/pandas/pulls/30864
2020-01-09T20:33:30Z
2020-01-10T19:22:38Z
2020-01-10T19:22:37Z
2020-01-10T23:52:45Z
TYP: Fix typing errors in ExtensionOpsMixin
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 9723343ea7af5..ceae53bf09311 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -1084,43 +1084,54 @@ class ExtensionOpsMixin: implementation to be called when involved in binary operations with NumPy arra...
On newest mypy (0.761) I get 160 when running ``!mypy pandas``. This PR gets that number down to 106, which is nice.
https://api.github.com/repos/pandas-dev/pandas/pulls/30863
2020-01-09T19:59:58Z
2020-01-09T22:03:57Z
null
2021-05-27T10:55:29Z
Parallel Cythonization for spawned Processes
diff --git a/setup.py b/setup.py index 191fe49d1eb89..ca5c67fc079ab 100755 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ import argparse from distutils.sysconfig import get_config_vars from distutils.version import LooseVersion +import multiprocessing import os from os.path import join as pjoin import platform @@...
Originally thought this only affected Windows, but parallel Cythonization is also broken on Python 3.8 on macOS as they shifted from using fork to start sub-processes to using spawn https://bugs.python.org/issue33725 This fix should make things work regardless of platform / python version
https://api.github.com/repos/pandas-dev/pandas/pulls/30862
2020-01-09T19:33:18Z
2020-01-24T04:01:16Z
2020-01-24T04:01:16Z
2023-04-12T20:17:03Z
BUG: ExtensionArray._formatter does not need to handle nulls
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index b981c2feea380..6adf69a922000 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1230,7 +1230,7 @@ def _format(x): if x is None: return "None" elif x...
See https://github.com/pandas-dev/pandas/pull/30821/files#r364917242 Currently, I don't think this is really specified whether the `_formatter` of ExtensionArray should be able to handle NAs/nulls or not, but in practice, it didn't need to do that. And eg the geopandas one is also implemented right now that it would...
https://api.github.com/repos/pandas-dev/pandas/pulls/30861
2020-01-09T19:31:40Z
2020-01-09T20:19:39Z
2020-01-09T20:19:39Z
2020-01-09T20:19:43Z
REF: gradually move ExtensionIndex delegation to use inherit_names
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 268ab9ba4e4c4..85f8515907fd2 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -27,7 +27,7 @@ import pandas.core.common as com import pandas.core.indexes.base as ibase from pandas.core.indexes.bas...
https://api.github.com/repos/pandas-dev/pandas/pulls/30860
2020-01-09T19:25:38Z
2020-01-28T01:54:14Z
2020-01-28T01:54:14Z
2020-04-05T17:34:17Z
BUG: aggregations were getting overwritten if they had the same name
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 088f1d1946fa9..5f71cd0e8b814 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1101,6 +1101,7 @@ Reshaping - Bug in :func:`crosstab` when inputs are two Series and have tuple names, the output will kee...
- [x] closes #30880 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry xref #30092
https://api.github.com/repos/pandas-dev/pandas/pulls/30858
2020-01-09T18:22:21Z
2020-07-14T20:34:56Z
2020-07-14T20:34:56Z
2020-07-15T07:15:33Z
REF: Move generic methods to aggregation.py
diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py new file mode 100644 index 0000000000000..79b87f146b9a7 --- /dev/null +++ b/pandas/core/aggregation.py @@ -0,0 +1,198 @@ +""" +aggregation.py contains utility functions to handle multiple named and lambda +kwarg aggregations in groupby and DataFrame/S...
xref #29116 https://github.com/pandas-dev/pandas/pull/29116#pullrequestreview-340272465 based on @jreback comment, this PR is a precursor PR for #29116 to make PR smaller and more readable
https://api.github.com/repos/pandas-dev/pandas/pulls/30856
2020-01-09T18:04:47Z
2020-01-20T23:31:20Z
2020-01-20T23:31:20Z
2020-01-20T23:31:25Z
DOC: fixed about link
diff --git a/web/pandas/index.html b/web/pandas/index.html index df6e5ab9a330b..5aac5da16295b 100644 --- a/web/pandas/index.html +++ b/web/pandas/index.html @@ -35,7 +35,7 @@ <h5>Documentation</h5> <div class="col-md-4"> <h5>Community</h5> <ul> - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30855
2020-01-09T18:00:36Z
2020-01-09T18:37:50Z
2020-01-09T18:37:50Z
2020-01-09T18:38:09Z
CLN: remove pydt_to_i8
diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd index d4ae3fa8c5b99..c74307a3d2887 100644 --- a/pandas/_libs/tslibs/conversion.pxd +++ b/pandas/_libs/tslibs/conversion.pxd @@ -23,6 +23,4 @@ cdef _TSObject convert_datetime_to_tsobject(datetime ts, object tz, cdef int64_t get_datet...
It's only used in one non-test place, and all supported python versions now support datetime.timestamp, so we can use that directly. Its a little bit less performant, but not used often.
https://api.github.com/repos/pandas-dev/pandas/pulls/30854
2020-01-09T17:05:39Z
2020-01-24T03:56:07Z
2020-01-24T03:56:07Z
2020-01-24T04:32:18Z
REF: share searchsorted and insert for DTI/TDI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index c4dac9d1c4a11..bb7aa84520019 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -27,7 +27,7 @@ ) from pandas.core.dtypes.concat import concat_compat from pandas.core.dtypes.generic ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30853
2020-01-09T16:37:45Z
2020-01-13T23:43:57Z
null
2020-02-28T00:22:19Z
ENH: Added DataFrame.compare and Series.compare (GH30429)
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index cf81540a77d11..12b9f67ddb846 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -240,13 +240,14 @@ Reshaping, sorting, transposing DataFrame.T DataFrame.transpose -Combining / joining / merging ...
Added `DataFrame.differences` and `Series.differences` methods. Have not yet added whatsnew entries. Will do so after review of API and behavior design. A few design considerations open for discussion (among other things): 1. Index/column names: (self, other) vs (left, right) vs (old, new) I used the (self, ot...
https://api.github.com/repos/pandas-dev/pandas/pulls/30852
2020-01-09T16:14:08Z
2020-05-28T17:08:46Z
2020-05-28T17:08:46Z
2020-05-28T17:08:53Z
BLD: Run flake8 check on Cython files in pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 139b9e31df46c..896765722bf32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,20 @@ repos: - id: flake8 language: python_venv additional_dependencies: [flake8-comprehensions>=3.1.0] + - id: ...
- [x] closes #30843 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30847
2020-01-09T13:27:14Z
2020-02-12T16:00:42Z
2020-02-12T16:00:42Z
2020-02-12T16:00:49Z
BUG: Handle nested arrays in array_equivalent_object
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 77e19953ba970..fed88d0f7016b 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1074,6 +1074,7 @@ Other - Bug in :class:`DataFrame` constructor when passing a 2D ``ndarray`` and an extension dtype (:iss...
- [x] closes #30841 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30842
2020-01-09T06:53:25Z
2020-01-09T15:51:26Z
2020-01-09T15:51:26Z
2020-01-09T18:11:49Z
CLN: remove _to_M8
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index d9c4b27da8698..60ee60876075a 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -70,22 +70,6 @@ def tz_to_dtype(tz): return DatetimeTZDtype(tz=tz) -def _to_M8(key, tz=None): - """ - ...
a couple of recently-merged PRs removed the last usages of this function
https://api.github.com/repos/pandas-dev/pandas/pulls/30840
2020-01-09T04:57:17Z
2020-01-09T05:44:38Z
2020-01-09T05:44:38Z
2020-01-09T05:47:59Z
TYP: __array__
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index a67d31344ff55..8e33596bd86c1 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1264,7 +1264,7 @@ def shift(self, periods, fill_value=None): return self.from_codes(codes, dtype=sel...
https://api.github.com/repos/pandas-dev/pandas/pulls/30839
2020-01-09T04:55:16Z
2020-01-09T18:54:35Z
2020-01-09T18:54:35Z
2020-01-09T19:00:15Z
BUG: added missing fill_na parameter to DataFrame.unstack() with list of levels
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 58a7a466471b7..bb4996258111f 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1040,6 +1040,7 @@ Reshaping - Dtypes are now preserved when transposing a ``DataFrame`` where each column is the same exte...
- [x] closes #30740 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30838
2020-01-09T04:44:29Z
2020-01-09T19:19:07Z
2020-01-09T19:19:07Z
2020-01-09T19:19:10Z
CI: Fix linting error
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 0c40900d54b53..b620818004f98 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -16,7 +16,6 @@ from pandas.core.accessor import delegate_names from pandas.core.arrays.datetimes import ( Dat...
Fixing a linting error that got merged into `master` and is breaking CI, e.g. see [this build](https://github.com/pandas-dev/pandas/runs/380663768).
https://api.github.com/repos/pandas-dev/pandas/pulls/30837
2020-01-09T04:09:48Z
2020-01-09T05:10:30Z
null
2020-01-09T05:10:35Z
DOC: whatsnew fixes
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 77e19953ba970..762a293e41801 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1,4 +1,4 @@ -.. _whatsnew_1000: +.. _whatsnew_100: What's new in 1.0.0 (??) ------------------------ @@ -148,7 +148,7 @...
Some small fixes I noticed reading over the whatsnew.
https://api.github.com/repos/pandas-dev/pandas/pulls/30836
2020-01-09T02:05:16Z
2020-01-09T09:18:58Z
2020-01-09T09:18:58Z
2020-01-09T16:34:17Z
REF: get_value do less inside try
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 9db30ce710c0d..dcc28446f50e5 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -657,7 +657,7 @@ def get_value(self, series, key): return series.take(locs) try: - ...
Separating out mostly-cosmetic bits from other get_value work
https://api.github.com/repos/pandas-dev/pandas/pulls/30835
2020-01-09T01:43:34Z
2020-01-09T02:33:00Z
2020-01-09T02:33:00Z
2020-01-09T05:03:51Z
DOC: Fix indentation in docstring example
diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst index d897889ed9eff..cb32f0e1ee475 100644 --- a/doc/source/development/contributing_docstring.rst +++ b/doc/source/development/contributing_docstring.rst @@ -22,39 +22,39 @@ Next example gives an idea on h...
- [x] closes #30830 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30833
2020-01-09T01:19:40Z
2020-01-09T15:52:31Z
2020-01-09T15:52:31Z
2020-01-10T20:42:33Z
CLN: Removed "# noqa: F401" comments
diff --git a/pandas/api/extensions/__init__.py b/pandas/api/extensions/__init__.py index a7e84bb046e61..3019dd0e9b371 100644 --- a/pandas/api/extensions/__init__.py +++ b/pandas/api/extensions/__init__.py @@ -1,15 +1,27 @@ -"""Public API for extending pandas objects.""" -from pandas._libs.lib import no_default # noqa:...
Implemented ```__all__``` for each changed file - [x] ref https://github.com/pandas-dev/pandas/pull/30828#discussion_r364500688 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30832
2020-01-09T01:13:40Z
2020-01-09T02:39:51Z
2020-01-09T02:39:51Z
2020-01-10T20:43:01Z
BUG: TimedeltaIndex.searchsorted accepting invalid types/dtypes
diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py index d1d8db0746cf8..a94e19d99c867 100644 --- a/pandas/core/indexes/timedeltas.py +++ b/pandas/core/indexes/timedeltas.py @@ -357,11 +357,25 @@ def _partial_td_slice(self, key): @Appender(_shared_docs["searchsorted"]) def searc...
TimedeltaIndex analogue to #30826.
https://api.github.com/repos/pandas-dev/pandas/pulls/30831
2020-01-09T01:07:04Z
2020-01-09T02:37:24Z
2020-01-09T02:37:24Z
2020-01-09T05:11:15Z
DOC: Added a single '-'
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index d1c574adeb236..db84a522f55b1 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -743,7 +743,7 @@ def raise_on_incompatible(left, right): right : None, DateOffset, Period, ndarray, or timedelta-like Re...
Feels weird to open a PR just for that, but I must get this fixed ;)
https://api.github.com/repos/pandas-dev/pandas/pulls/30829
2020-01-09T00:03:19Z
2020-01-09T00:42:47Z
2020-01-09T00:42:47Z
2020-01-09T01:20:21Z
STY: absolute imports in __init__ files
diff --git a/pandas/api/__init__.py b/pandas/api/__init__.py index d0a26864a1102..bebbb38b4aefa 100644 --- a/pandas/api/__init__.py +++ b/pandas/api/__init__.py @@ -1,2 +1,2 @@ """ public toolkit API """ -from . import extensions, indexers, types # noqa +from pandas.api import extensions, indexers, types # noqa diff...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30828
2020-01-08T23:30:57Z
2020-01-09T00:06:59Z
2020-01-09T00:06:59Z
2020-01-09T13:38:33Z
STY: absolute imports
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 524e3fcf309cb..a67d31344ff55 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -46,6 +46,11 @@ from pandas.core.accessor import PandasDelegate, delegate_names import pandas.core.algorithms ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30827
2020-01-08T23:07:17Z
2020-01-08T23:49:21Z
2020-01-08T23:49:21Z
2020-01-08T23:50:56Z
BUG: DTI.searchsorted accepting invalid types/dtypes
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 88b841e7d4a88..1d7f84352d9da 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -359,7 +359,7 @@ def _convert_for_op(self, value): Convert value to be insertable to ndarray. """ ...
Analogous to #30763 which fixed the same issue for PeriodIndex. After this will be a PR to fix TimedeltaIndex, then one to move the fixes up to the EA methods (and share searchsorted).
https://api.github.com/repos/pandas-dev/pandas/pulls/30826
2020-01-08T22:14:47Z
2020-01-09T02:36:12Z
2020-01-09T02:36:12Z
2020-01-09T05:10:31Z
TST: Added 'match=' to some bare pytest.raises
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index b2826ab139ed6..f55e2b98ee912 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -65,13 +65,16 @@ def test_df_numeric_cmp_dt64_raises(self): # GH#8932, GH#22163...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30825
2020-01-08T22:04:20Z
2020-01-08T23:51:58Z
2020-01-08T23:51:58Z
2020-01-08T23:57:45Z
BUG: BooleanArray.value_counts dropna
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 11a6f2628ac52..381c83c4f6c8f 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -411,6 +411,24 @@ Use :meth:`arrays.IntegerArray.to_numpy` with an explicit ``na_value`` instead. a.to_numpy(dtype="fl...
Closes https://github.com/pandas-dev/pandas/issues/30685
https://api.github.com/repos/pandas-dev/pandas/pulls/30824
2020-01-08T21:49:10Z
2020-01-09T19:19:35Z
2020-01-09T19:19:35Z
2020-01-09T19:19:40Z
STY: Absolute imports
diff --git a/pandas/core/arrays/sparse/accessor.py b/pandas/core/arrays/sparse/accessor.py index eb4d7cdf2709f..92c05f44d677c 100644 --- a/pandas/core/arrays/sparse/accessor.py +++ b/pandas/core/arrays/sparse/accessor.py @@ -7,9 +7,8 @@ from pandas.core.dtypes.cast import find_common_type from pandas.core.accessor ...
- [x] ref #30808 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30822
2020-01-08T20:22:03Z
2020-01-08T22:17:13Z
2020-01-08T22:17:13Z
2020-01-08T23:07:58Z
Update NA repr
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a90774d2e8ff1..83ceb11dfcbf4 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -298,8 +298,11 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then -k"-from_arrays -from_breaks -from_intervals -from_tuples -set_closed -to_tuples -interval_range...
Closes https://github.com/pandas-dev/pandas/issues/30415 ```python In [2]: df = pd.DataFrame({"A": pd.array([1, 2, None])}) In [3]: df Out[3]: A 0 1 1 2 2 <NA> In [4]: df.A Out[4]: 0 1 1 2 2 <NA> Name: A, dtype: Int64 In [5]: df.A.array Out[5]: <IntegerArray> [1...
https://api.github.com/repos/pandas-dev/pandas/pulls/30821
2020-01-08T19:56:20Z
2020-01-09T16:18:59Z
2020-01-09T16:18:58Z
2020-01-09T19:26:10Z
API: Limit assert_*_equal functions in public API
diff --git a/doc/source/reference/general_utility_functions.rst b/doc/source/reference/general_utility_functions.rst index e2e47d9f87960..0d9e0b0f4c668 100644 --- a/doc/source/reference/general_utility_functions.rst +++ b/doc/source/reference/general_utility_functions.rst @@ -28,16 +28,7 @@ Testing functions testin...
As discussed on today's call. Just adding `assert_extension_array_equal` relative to 0.25.
https://api.github.com/repos/pandas-dev/pandas/pulls/30820
2020-01-08T19:34:24Z
2020-01-08T22:33:24Z
2020-01-08T22:33:24Z
2020-01-09T09:03:10Z
CLN: de-duplicate boxing in DTI.get_value
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 9db30ce710c0d..ae0a71dfa2c49 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -641,15 +641,7 @@ def get_value(self, series, key): know what you're doing """ - if isins...
Also add a dedicated test or it to hit currently un-covered case of np.datetime64 key. That case works in master, but doesn't go through the expected code path
https://api.github.com/repos/pandas-dev/pandas/pulls/30819
2020-01-08T19:31:40Z
2020-01-09T02:48:28Z
2020-01-09T02:48:27Z
2020-01-09T05:08:52Z
REF: share comparison methods between ExtensionIndex subclasses
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 77165034f313d..7c1e95e12d339 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -1,4 +1,3 @@ -import operator from typing import Any, List import warnings @@ -9,7 +8,6 @@ from pandas._libs import...
https://api.github.com/repos/pandas-dev/pandas/pulls/30817
2020-01-08T18:55:37Z
2020-01-09T02:51:22Z
2020-01-09T02:51:22Z
2020-01-09T05:09:30Z
replacing '.format' with f-strings in some test files
diff --git a/pandas/tests/util/test_assert_almost_equal.py b/pandas/tests/util/test_assert_almost_equal.py index ffa49f6ba442b..b8048891e4876 100644 --- a/pandas/tests/util/test_assert_almost_equal.py +++ b/pandas/tests/util/test_assert_almost_equal.py @@ -39,9 +39,7 @@ def _assert_not_almost_equal(a, b, **kwargs): ...
- [X] contributes to #29547 - [ ] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry One format that I left untouched in `pandas/tests/util/test_assert_frame_equal.py`: ``` def test_frame_equal_unicode(df1, df2, msg, by_b...
https://api.github.com/repos/pandas-dev/pandas/pulls/30816
2020-01-08T18:49:58Z
2020-01-08T22:22:46Z
2020-01-08T22:22:46Z
2020-01-08T22:22:52Z
BLD: More lightweight mypy pre-commit hook
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 809764a20a713..139b9e31df46c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: rev: v0.730 hooks: - id: mypy - # We run mypy over all files because of: - # * changes in type d...
Fixes #30811 This now will only detect typing problems in the files you have edited. This may still lead to typing problems detected in CI but is hopefully a compromise between speed and early detection of issues before they hit public CI. One line changes in a single file still stay for me in the <1s mark. cc @gf...
https://api.github.com/repos/pandas-dev/pandas/pulls/30814
2020-01-08T15:10:33Z
2020-01-15T09:49:50Z
2020-01-15T09:49:49Z
2020-01-15T09:49:50Z
[DOC] add example of rolling with win_type gaussian
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 02efd4e37472a..f612826132fd7 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -872,6 +872,17 @@ class Window(_Window): 3 NaN 4 NaN + Rolling sum with a window length of 2, using the 'gaussi...
Admittedly this is not the first issue I address, but this one's been open for several months now and so I figured I'd take it - [x] closes #26462 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30813
2020-01-08T13:53:43Z
2020-01-08T16:13:54Z
2020-01-08T16:13:52Z
2020-01-08T16:47:30Z
COMPAT: bump minimum version to pyarrow 0.13
diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index c6940f9327e0d..810554632a507 100644 --- a/ci/deps/azure-36-locale.yaml +++ b/ci/deps/azure-36-locale.yaml @@ -27,7 +27,7 @@ dependencies: - openpyxl # lowest supported version of pyarrow (putting it here instead of in # azure-36-min...
xref discussion in https://github.com/pandas-dev/pandas/pull/28371 If in the future we want to always try to import pyarrow, having pyarrow 0.13 (instead of 0.12) as the minimum required version will make this easier.
https://api.github.com/repos/pandas-dev/pandas/pulls/30812
2020-01-08T12:59:36Z
2020-01-09T09:34:12Z
2020-01-09T09:34:12Z
2020-01-09T09:34:17Z
BLD: Remove mypy from pre-commit as long its always a full run
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 809764a20a713..88548f6c2f678 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,15 +16,3 @@ repos: - id: isort language: python_venv exclude: ^pandas/__init__\.py$|^pandas/core/api\.py$ -- repo: https:...
Without supporting an incremental mode, the runtime overhead (reportably at 20s) is unacceptable for efficient development. We can reactivate once a stable, incremental mode works for `pandas`.
https://api.github.com/repos/pandas-dev/pandas/pulls/30811
2020-01-08T09:13:20Z
2020-01-15T09:49:49Z
null
2023-05-11T01:19:26Z
ASV: compatibility import for testing module
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 7d97f2c740acb..0f3b3838de1b2 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -5,7 +5,8 @@ from pandas._libs import lib import pandas as pd -from pandas.util import testing as tm + +...
See https://github.com/pandas-dev/pandas/pull/30779, this avoids a warning in the benchmarks
https://api.github.com/repos/pandas-dev/pandas/pulls/30810
2020-01-08T07:49:36Z
2020-01-08T14:06:40Z
2020-01-08T14:06:40Z
2020-01-08T14:06:42Z
REF: move repeat to ExtensionIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index a10e0f63b841d..06678672c8126 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -460,12 +460,6 @@ def isin(self, values, level=None): return algorithms.isin(self.asi8, value...
https://api.github.com/repos/pandas-dev/pandas/pulls/30809
2020-01-08T03:17:45Z
2020-01-08T13:30:44Z
2020-01-08T13:30:44Z
2020-01-08T18:21:39Z
CLN: remove Index __setstate__ methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 087db014de5b3..732eba804d469 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1726,35 +1726,6 @@ def __reduce__(self): d.update(self._get_attributes_dict()) return _new_Index, (type(self), d), No...
They are not hit in tests, AFAICT they are subsumed by `__reduce__` methods
https://api.github.com/repos/pandas-dev/pandas/pulls/30807
2020-01-08T01:26:01Z
2020-01-08T12:49:25Z
2020-01-08T12:49:25Z
2020-01-08T18:01:46Z
REF: use shareable code for DTI/TDI.insert
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 78a8ba5cddea0..40737899ba98e 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -872,6 +872,7 @@ Datetimelike - Bug in :func:`pandas.to_datetime` when called with ``Series`` storing ``IntegerArray`` rais...
xref #30757 should go in before this because it contains the tests. After this, we'll be able to de-duplicate the two methods.
https://api.github.com/repos/pandas-dev/pandas/pulls/30806
2020-01-08T01:20:50Z
2020-01-09T02:54:53Z
2020-01-09T02:54:53Z
2020-01-09T05:06:37Z
Multi Phase JSON Initialization
diff --git a/pandas/_libs/src/ujson/python/ujson.c b/pandas/_libs/src/ujson/python/ujson.c index 39320d73d0cab..4a88fb7a4e849 100644 --- a/pandas/_libs/src/ujson/python/ujson.c +++ b/pandas/_libs/src/ujson/python/ujson.c @@ -65,35 +65,15 @@ static PyMethodDef ujsonMethods[] = { {NULL, NULL, 0, NULL} /* Sentinel */...
Feature in Python 3.5 that should simplify instantiation of the JSON module and make it more "pythonic" https://docs.python.org/3/c-api/module.html?highlight=multi%20phase#multi-phase-initialization https://www.python.org/dev/peps/pep-0489/ Also removed a version string from within the extension, as I don't see ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30805
2020-01-08T00:53:34Z
2020-01-08T12:55:47Z
2020-01-08T12:55:47Z
2020-01-08T16:17:01Z
REF: PeriodIndex._union
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 087db014de5b3..0ede340720922 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2310,11 +2310,11 @@ def _union(self, other, sort): return other._get_reconciled_name_object(self) # TODO(EA): s...
Let's us get rid of PeriodIndex._wrap_setop_result, soon we'll share code among the PeriodIndex set ops, so this will be less verbose
https://api.github.com/repos/pandas-dev/pandas/pulls/30803
2020-01-08T00:13:06Z
2020-01-08T02:08:55Z
2020-01-08T02:08:55Z
2020-01-08T02:22:39Z
CI: Fix spelling in requirements-dev generator script
diff --git a/requirements-dev.txt b/requirements-dev.txt index f4f5fed82662c..017e6258d9941 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ # This file is auto-generated from environment.yml, do not modify. -# See that file for comments about the need/usage of each depdendency. +# See that...
Fixes the spelling of _dependency_ in `script/generate_pip_deps_from_conda.py`. This script creates `requirements-dev.txt` which contains the spelling mistake, so is also fixed (using the updated script).
https://api.github.com/repos/pandas-dev/pandas/pulls/30802
2020-01-08T00:08:06Z
2020-01-08T01:21:05Z
2020-01-08T01:21:05Z
2020-01-08T10:22:08Z
REF: remove PeriodIndex._coerce_scalar_to_index
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 1fed0201f7b2b..e805c2512dc3b 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -391,16 +391,6 @@ def _int64index(self): # ------------------------------------------------------------------------ # ...
It is only used by Index.insert, but PeriodIndex now overrides insert.
https://api.github.com/repos/pandas-dev/pandas/pulls/30801
2020-01-08T00:02:52Z
2020-01-08T03:21:17Z
2020-01-08T03:21:17Z
2020-01-08T18:07:47Z
REF: move astype to ExtensionIndex
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index f61721a0e51e6..dc1e8d359af55 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -190,13 +190,7 @@ def _engine_type(self): # Constructors def __new__( - cls, - data=None, - ...
Broken off from #30717
https://api.github.com/repos/pandas-dev/pandas/pulls/30800
2020-01-07T23:58:34Z
2020-01-08T12:54:51Z
2020-01-08T12:54:51Z
2020-01-08T18:20:44Z
Tests for Deprecate SparseArray for python 3.6 and 3.7 and fixes to other deprecation tests
diff --git a/pandas/__init__.py b/pandas/__init__.py index 10d65e41d3030..491bcb21f245d 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -297,13 +297,25 @@ def __getattr__(self, item): np = __numpy() - class __Datetime: - def __init__(self): - from datetime import datetime as dt...
- [x] closes #30642 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry - N/A Turns out that the existing tests were not testing deprecation correctly for both python 3.7 and python 3.6, so had to change some of the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30799
2020-01-07T23:14:28Z
2020-01-09T12:29:05Z
2020-01-09T12:29:05Z
2020-01-10T17:02:42Z
API: Store name outside attrs
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index 4c9df35ea8d9d..01aa6c60e3b2f 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -273,6 +273,8 @@ Metadata :attr:`DataFrame.attrs` is a dictionary for storing global metadata for this DataFrame. +.. w...
This aligns with xarray and h5py: https://github.com/pandas-dev/pandas/pull/29062#issuecomment-545703586
https://api.github.com/repos/pandas-dev/pandas/pulls/30798
2020-01-07T22:10:47Z
2020-01-08T14:09:40Z
2020-01-08T14:09:40Z
2020-04-03T11:15:44Z
PERF: cache IntervalIndex._ndarray_values
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 9ce917b004bc1..6cf577f498162 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -187,16 +187,7 @@ def func(intvidx_self, other, sort=False): ) @accessor.delegate_names( delegate=IntervalArray, ...
closes #30742
https://api.github.com/repos/pandas-dev/pandas/pulls/30797
2020-01-07T21:18:19Z
2020-01-07T22:25:36Z
2020-01-07T22:25:36Z
2020-01-08T08:28:52Z
BLD/CI: Require Python 3.6.0
diff --git a/ci/deps/azure-36-minimum_versions.yaml b/ci/deps/azure-36-minimum_versions.yaml index de7e011d9c7ca..256a21a71126b 100644 --- a/ci/deps/azure-36-minimum_versions.yaml +++ b/ci/deps/azure-36-minimum_versions.yaml @@ -3,7 +3,7 @@ channels: - defaults - conda-forge dependencies: - - python=3.6.1 + - ...
Closes #30794
https://api.github.com/repos/pandas-dev/pandas/pulls/30796
2020-01-07T21:10:51Z
2020-01-07T21:51:25Z
null
2020-03-26T13:29:57Z
DOC: whatsnew updates
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 82e01b62efbb9..f6315ea894e62 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3877,6 +3877,8 @@ specified in the format: ``<float>(<unit>)``, where float may be signed (and fra store.append('dftd', dftd, d...
Primarily reordering roughly in order of importance. 1. Some rewording for clarity 2. Fixed some links 3. Simplified the SemVer discussion
https://api.github.com/repos/pandas-dev/pandas/pulls/30795
2020-01-07T20:19:46Z
2020-01-07T22:28:21Z
2020-01-07T22:28:21Z
2020-01-09T20:45:00Z
IntegerArray.to_numpy
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 330510c2c883c..297315d57427d 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -387,8 +387,37 @@ As a reminder, you can specify the ``dtype`` to disable all inference. .. ipython:: python a = pd.a...
This implements IntegerArray.to_numpy with similar semantics to BooleanArray.to_numpy. The implementation is now identical between BooleanArray & IntegerArray. #30789 will merge them. 1. `.to_numpy(dtype=float/bool/int)` will raise if there are missing values 2. `.astype(float)` will convert NA to NaN. I've made...
https://api.github.com/repos/pandas-dev/pandas/pulls/30792
2020-01-07T19:19:16Z
2020-01-08T04:36:33Z
2020-01-08T04:36:33Z
2020-01-08T04:37:13Z
BUG: DTI/TDI/PI `where` accepting non-matching dtypes
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 0fadf3a05a1d3..4a37b4f0f29ba 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -34,7 +34,7 @@ is_unsigned_integer_dtype, pandas_dtype, ) -from pandas.core.dtypes.generic import...
This bug was hidden by _ensure_datetimelike_to_i8, and the only other place where that is used is in _round. _round is clearer without using it, so ensure_datetimelike_to_i8 gets ripped out, and with it we can get rid of _ensure_localized.
https://api.github.com/repos/pandas-dev/pandas/pulls/30791
2020-01-07T18:53:35Z
2020-01-07T22:27:55Z
2020-01-07T22:27:55Z
2020-01-07T23:06:40Z
REF: Implement BaseMaskedArray class for integer/boolean ExtensionArrays
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index c2ce799c64aac..c065fdeba2177 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -15,13 +15,10 @@ is_extension_array_dtype, is_float, is_float_dtype, - is_integer, is_integer_dtype, ...
Todo item of https://github.com/pandas-dev/pandas/issues/29556, consolidating common code for IntegerArray and BooleanArray. This is only a start, there is more to share.
https://api.github.com/repos/pandas-dev/pandas/pulls/30789
2020-01-07T17:25:23Z
2020-01-09T02:57:55Z
2020-01-09T02:57:55Z
2020-01-09T08:26:16Z
API: no_default
diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst index 374e1395b42f7..c072237850d82 100644 --- a/doc/source/reference/extensions.rst +++ b/doc/source/reference/extensions.rst @@ -69,6 +69,6 @@ behaves correctly. api.indexers.check_bool_array_indexer -The sentinel ``pandas.ap...
Changes lib._no_default to lib.no_default, uses it in more places. Closes #30785
https://api.github.com/repos/pandas-dev/pandas/pulls/30788
2020-01-07T17:05:11Z
2020-01-07T19:03:02Z
2020-01-07T19:03:02Z
2020-01-07T19:03:06Z
REV: move unique, _get_unique_index to ExtensionIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 3a58794a8b19e..9f0a6994d66ad 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -110,17 +110,6 @@ class DatetimeIndexOpsMixin(ExtensionIndex, ExtensionOpsMixin): def is_all_dates(...
Broken off from #30717.
https://api.github.com/repos/pandas-dev/pandas/pulls/30786
2020-01-07T16:31:38Z
2020-01-07T20:45:35Z
2020-01-07T20:45:35Z
2020-01-07T21:00:36Z
API: DataFrame.take always returns a copy
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index f0ba1250b7f8d..5d925c1b235f8 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -752,7 +752,7 @@ Deprecations - The deprecated internal attributes ``_start``, ``_stop`` and ``_step`` of :class:`RangeInde...
Closes #27357 This adds an internal version of `take` with the behaviour of setting `_is_copy` for DataFrames that the public `take` did before, so this version can be used in the indexing code (where we want to keep track of parent dataframe with `_is_copy` for SettingWithCopyWarnings). I named it `_take_with_is...
https://api.github.com/repos/pandas-dev/pandas/pulls/30784
2020-01-07T15:44:56Z
2020-01-27T12:29:36Z
2020-01-27T12:29:35Z
2020-01-28T04:00:51Z
CLN: Removed outdated comment
diff --git a/pandas/tests/arrays/categorical/test_repr.py b/pandas/tests/arrays/categorical/test_repr.py index 9321813b42b33..d08c4b47dd3cb 100644 --- a/pandas/tests/arrays/categorical/test_repr.py +++ b/pandas/tests/arrays/categorical/test_repr.py @@ -147,8 +147,6 @@ def test_categorical_repr_datetime(self): ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I think this is a bit outdated, since we are using black and it's doing the work for us, right? according to git blame, this is 2 years old.
https://api.github.com/repos/pandas-dev/pandas/pulls/30782
2020-01-07T14:15:27Z
2020-01-07T17:12:20Z
2020-01-07T17:12:20Z
2020-01-08T20:28:00Z
STY: Spaces in wrong place
diff --git a/pandas/tests/arrays/categorical/test_api.py b/pandas/tests/arrays/categorical/test_api.py index df6623acfefee..f49f70f5acf77 100644 --- a/pandas/tests/arrays/categorical/test_api.py +++ b/pandas/tests/arrays/categorical/test_api.py @@ -87,8 +87,8 @@ def test_rename_categories(self): def test_rename_ca...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30781
2020-01-07T14:03:33Z
2020-01-09T15:58:02Z
2020-01-09T15:58:02Z
2020-01-10T20:42:06Z
ASV: use pandas.util.testing for back compat
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index eb903e28ff719..43b1b31a0bfe8 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -3,7 +3,7 @@ import numpy as np import pandas as pd -import pandas._testing as tm +import pandas...
cc @TomAugspurger I propose to keep the old deprecated imports (as long as they are not removed), so the benchmarks can still be run when eg doing a comparison of 0.25 with current master.
https://api.github.com/repos/pandas-dev/pandas/pulls/30779
2020-01-07T12:44:08Z
2020-01-07T21:27:06Z
2020-01-07T21:27:06Z
2020-01-08T07:50:07Z
[WIP] style NA in reprs
diff --git a/LICENSES/COLORAMA_LICENSE b/LICENSES/COLORAMA_LICENSE new file mode 100644 index 0000000000000..8b137891791fe --- /dev/null +++ b/LICENSES/COLORAMA_LICENSE @@ -0,0 +1 @@ + diff --git a/pandas/core/_formats.py b/pandas/core/_formats.py new file mode 100644 index 0000000000000..766185b673107 --- /dev/null ++...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30778
2020-01-07T12:35:03Z
2020-04-16T20:13:23Z
null
2020-04-16T20:13:23Z
DOC: Fixtures docs in io/parser/conftest.py
diff --git a/pandas/tests/io/parser/conftest.py b/pandas/tests/io/parser/conftest.py index a87e1e796c194..1b9edd1f6883c 100644 --- a/pandas/tests/io/parser/conftest.py +++ b/pandas/tests/io/parser/conftest.py @@ -46,11 +46,17 @@ class PythonParser(BaseParser): @pytest.fixture def csv_dir_path(datapath): + """ + ...
Partially addresses: https://github.com/pandas-dev/pandas/issues/19159
https://api.github.com/repos/pandas-dev/pandas/pulls/30775
2020-01-07T11:00:27Z
2020-01-07T12:09:44Z
2020-01-07T12:09:44Z
2020-01-07T12:09:44Z
BLD: more informative error message when trying to cythonize with old cython version
diff --git a/setup.py b/setup.py index 076b77bf5d4df..c33ce063cb4d9 100755 --- a/setup.py +++ b/setup.py @@ -49,11 +49,12 @@ def is_platform_mac(): try: import Cython - ver = Cython.__version__ + _CYTHON_VERSION = Cython.__version__ from Cython.Build import cythonize - _CYTHON_INSTALLED = ver >=...
cc @jbrockmendel building upon your https://github.com/pandas-dev/pandas/pull/30498, but making the error message more specific when cython is actually installed but too old.
https://api.github.com/repos/pandas-dev/pandas/pulls/30774
2020-01-07T09:08:53Z
2020-01-07T11:59:57Z
2020-01-07T11:59:57Z
2020-01-07T16:09:34Z
CLN: Condense PR style checklist into one script
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7c3870470f074..2a86664fcdf75 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,4 @@ - [ ] closes #xxxx - [ ] tests added / passed -- [ ] passes `black pandas` -- [ ] passes `git diff up...
A script is easier to execute and manage as we manage our style-checking tools. Started with `flake8`, `black`, and `isort`, as those are the main ones for Python-related changes (for reference, we didn't even have `isort` in the checklist beforehand). If we're happy with the structure, we can always add more OR ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30773
2020-01-07T07:22:50Z
2020-01-08T22:34:58Z
null
2023-05-11T01:19:25Z
BUG: Expand encoding for C engine beyond utf-16
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 5b4761c3bc6c5..c9815ae63baaa 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -941,6 +941,7 @@ I/O - :meth:`read_gbq` now accepts ``progress_bar_type`` to display progress bar while the data downloads....
And by `utf-16`, we mean the string `"utf-16"` Closes https://github.com/pandas-dev/pandas/issues/24130
https://api.github.com/repos/pandas-dev/pandas/pulls/30771
2020-01-07T06:20:00Z
2020-01-07T20:46:54Z
2020-01-07T20:46:54Z
2020-01-07T20:46:58Z
TST: Add tests for fixed issues
diff --git a/pandas/tests/frame/methods/test_sort_values.py b/pandas/tests/frame/methods/test_sort_values.py index 7c19ae8147930..96f4d6ed90d6b 100644 --- a/pandas/tests/frame/methods/test_sort_values.py +++ b/pandas/tests/frame/methods/test_sort_values.py @@ -497,3 +497,22 @@ def test_sort_values_ignore_index( ...
- [x] closes #13230 - [x] closes #13820 - [x] closes #13758 - [x] closes #13228 - [x] closes #13208 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/30769
2020-01-07T05:50:58Z
2020-01-07T23:45:41Z
2020-01-07T23:45:40Z
2020-01-07T23:45:46Z
CLN: Simplify logic in _format_labels function for cut/qcut
diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py index ceb4e3290ff75..8cf51ae09fbcb 100644 --- a/pandas/core/reshape/tile.py +++ b/pandas/core/reshape/tile.py @@ -4,7 +4,6 @@ import numpy as np from pandas._libs import Timedelta, Timestamp -from pandas._libs.interval import Interval from pand...
Small simplification: modify the `breaks` metadata before creating an `IntervalIndex` then create and an `IntervalIndex` from the modified `breaks`. The existing approach creates an `IntervalIndex`, modifies the first `Interval`, then creates a new `IntervalIndex` with the updated first `Interval`. This yields a sl...
https://api.github.com/repos/pandas-dev/pandas/pulls/30768
2020-01-07T05:18:48Z
2020-01-07T12:16:03Z
2020-01-07T12:16:03Z
2020-01-07T16:11:42Z
STY: spaces in wrong place
diff --git a/pandas/tests/indexes/categorical/test_category.py b/pandas/tests/indexes/categorical/test_category.py index 61e30d3e5c139..d09dc586fe056 100644 --- a/pandas/tests/indexes/categorical/test_category.py +++ b/pandas/tests/indexes/categorical/test_category.py @@ -298,8 +298,8 @@ def test_insert(self): ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30767
2020-01-07T00:00:28Z
2020-01-07T01:48:04Z
2020-01-07T01:48:04Z
2020-01-07T13:33:32Z
BUG: Fix reindexing with multi-indexed DataFrames
diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py index 793f0c7c03c77..18dbb7eae0615 100644 --- a/asv_bench/benchmarks/multiindex_object.py +++ b/asv_bench/benchmarks/multiindex_object.py @@ -74,10 +74,38 @@ def setup(self): ], dtype=object, ...
- [x] closes https://github.com/pandas-dev/pandas/issues/29896 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Addresses an issue which appears to have existed since 0.23.0 where bugs in the `get_indexer()` method fo...
https://api.github.com/repos/pandas-dev/pandas/pulls/30766
2020-01-06T23:35:31Z
2020-04-08T17:22:44Z
2020-04-08T17:22:44Z
2020-04-08T17:27:44Z
in tests, change pd.arrays.SparseArray to SparseArray
diff --git a/pandas/tests/arrays/test_array.py b/pandas/tests/arrays/test_array.py index d6d7db0d99d96..b1b5a9482e34f 100644 --- a/pandas/tests/arrays/test_array.py +++ b/pandas/tests/arrays/test_array.py @@ -11,6 +11,15 @@ import pandas._testing as tm from pandas.api.extensions import register_extension_dtype from ...
- [x] closes https://github.com/pandas-dev/pandas/pull/30656#discussion_r363060184 - [x] tests added / passed - modified most tests that use `pd.arrays.SparseArray` to just import `SparseArray` - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry...
https://api.github.com/repos/pandas-dev/pandas/pulls/30765
2020-01-06T23:34:09Z
2020-01-08T18:41:50Z
2020-01-08T18:41:50Z
2020-01-10T17:02:42Z
BUG: TDI/DTI _shallow_copy creating invalid arrays
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 34560065525dd..3a58794a8b19e 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -28,7 +28,12 @@ from pandas.core import algorithms from pandas.core.accessor import PandasDelegate -...
Following this we should be able to use shallow_copy in indexes.extension more, which will help with perf (xref #30717)
https://api.github.com/repos/pandas-dev/pandas/pulls/30764
2020-01-06T23:31:50Z
2020-01-07T00:39:39Z
2020-01-07T00:39:38Z
2020-01-07T01:40:36Z
BUG: PeriodIndex.searchsorted accepting invalid inputs
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 330510c2c883c..f759e33d395b8 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -905,6 +905,7 @@ Indexing - :meth:`Index.get_indexer_non_unique` could fail with `TypeError` in some cases, such as when se...
also a bug in `DataFrame.asof` with a PeriodIndex returning an incorrectly-named Series.
https://api.github.com/repos/pandas-dev/pandas/pulls/30763
2020-01-06T23:29:22Z
2020-01-08T14:02:13Z
2020-01-08T14:02:13Z
2020-01-08T18:17:11Z
DOC: Fix the string example.
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index 7a8400d124b22..88c86ac212f11 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -87,8 +87,9 @@ l. For ``StringDtype``, :ref:`string accessor methods<api.series.str>` .. ipython:: python - s.a...
After moving StringArray to use pd.NA `.astype(object)` had NA instead of NaN, so the output was object rather than float.
https://api.github.com/repos/pandas-dev/pandas/pulls/30762
2020-01-06T22:40:35Z
2020-01-06T23:39:57Z
2020-01-06T23:39:57Z
2020-01-06T23:39:57Z
TYP: type up parts of series.py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0116207675889..03e86758b64ed 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4121,7 +4121,6 @@ def add_suffix(self: FrameOrSeries, suffix: str) -> FrameOrSeries: def sort_values( self, - by=None, axis...
More typing.
https://api.github.com/repos/pandas-dev/pandas/pulls/30761
2020-01-06T22:38:46Z
2020-01-12T14:32:16Z
2020-01-12T14:32:16Z
2020-01-12T14:55:37Z
DOC: new EAs
diff --git a/pandas/core/base.py b/pandas/core/base.py index 7d499181c6ed1..c7ef10e3900f6 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -716,6 +716,8 @@ def array(self) -> ExtensionArray: period PeriodArray interval IntervalArray IntegerNA Intege...
https://api.github.com/repos/pandas-dev/pandas/pulls/30760
2020-01-06T22:29:19Z
2020-01-06T23:37:09Z
2020-01-06T23:37:09Z
2020-01-06T23:37:14Z