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
DOC: update style.ipynb for 2.0
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index c612751dc5a1d..90e57ad4ad90f 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -9,23 +9,33 @@ "This section demonstrates visualization of tabular data using the [Styler][styler]\n", ...
This PR tries to frame Styler more as a general display output tool, by including the more generalist "formatting" functions at the start, ![Screenshot 2023-01-25 at 20 10 11](https://user-images.githubusercontent.com/24256554/214660804-c9ca098f-a419-4735-9136-381a06840879.png) ![Screenshot 2023-01-25 at 20 10 29](...
https://api.github.com/repos/pandas-dev/pandas/pulls/50973
2023-01-25T19:13:37Z
2023-02-09T21:42:39Z
2023-02-09T21:42:39Z
2023-02-15T19:06:47Z
TST: Test ArrowExtensionArray with decimal types
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 00e949b1dd318..69ca809e4f498 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -215,6 +215,7 @@ FLOAT_PYARROW_DTYPES_STR_REPR = [ str(ArrowDtype(typ)) for typ in FLOAT_PYARROW_DTYPES ] + DECIMA...
closes #34166
https://api.github.com/repos/pandas-dev/pandas/pulls/50964
2023-01-24T22:33:36Z
2023-02-22T20:31:24Z
2023-02-22T20:31:23Z
2023-02-22T23:52:50Z
BUG: is_string_dtype returns True for ArrowDtype(pa.string())
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3c9c861afd989..c28c9fdad1804 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1021,7 +1021,7 @@ Conversion Strings ^^^^^^^ -- Bug in :func:`pandas.api.dtypes.is_string_dtype` that would not return ...
Broken off #50325
https://api.github.com/repos/pandas-dev/pandas/pulls/50963
2023-01-24T19:59:18Z
2023-01-26T00:40:53Z
2023-01-26T00:40:53Z
2023-01-26T00:53:13Z
Enable pylint undefined-loop-variable warning
diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py index e0b18047aa0ec..350914cc50556 100644 --- a/pandas/core/util/hashing.py +++ b/pandas/core/util/hashing.py @@ -71,12 +71,14 @@ def combine_hash_arrays( mult = np.uint64(1000003) out = np.zeros_like(first) + np.uint64(0x345678) + la...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Enables the Pylint warning `undefined-loop-variable`. This contributes to (now-closed) #48855 and extends #49740. Replaces several instances of ``` for x in my_list: foo(x) bar(x) #...
https://api.github.com/repos/pandas-dev/pandas/pulls/50961
2023-01-24T17:00:29Z
2023-01-26T17:47:16Z
2023-01-26T17:47:16Z
2023-01-28T19:48:15Z
DOC: add documentation to DataFrameGroupBy.skew and SeriesGroupBy.skew
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index d6482b61a536d..815f9936057f4 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1006,7 +1006,6 @@ def take( result = self._op_via_apply("take", indices=indices, axis=axis, **kwargs) ret...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50958
2023-01-24T15:37:41Z
2023-02-05T13:21:52Z
2023-02-05T13:21:52Z
2023-02-06T20:25:41Z
DOC: improve the wording
diff --git a/doc/source/reference/window.rst b/doc/source/reference/window.rst index 0be3184a9356c..0839bb2e52efd 100644 --- a/doc/source/reference/window.rst +++ b/doc/source/reference/window.rst @@ -6,9 +6,9 @@ Window ====== -Rolling objects are returned by ``.rolling`` calls: :func:`pandas.DataFrame.rolling`, :f...
there are only two .rolling(), .expanding() and .ewm() functions, so using "etc." is not appropriate. - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or addin...
https://api.github.com/repos/pandas-dev/pandas/pulls/50957
2023-01-24T15:04:00Z
2023-01-24T18:42:58Z
2023-01-24T18:42:58Z
2023-01-24T20:36:47Z
DEPR: execute deprecations for str.cat in v1.0
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index cc4bab8b9a923..85d087082171f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -62,6 +62,8 @@ Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Removed the p...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This executes some deprecations from the 0.23/0.24 cycles, namely following the switch from `join=None` to `join='left'` (following #18657 / #20347), as well as the fact that list-likes *within* li...
https://api.github.com/repos/pandas-dev/pandas/pulls/27611
2019-07-26T14:59:11Z
2019-07-31T12:32:36Z
2019-07-31T12:32:35Z
2019-07-31T13:21:15Z
BUG: break reference cycle in Index._engine
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 6541ddcb0397d..49834ae94cc38 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -1,3 +1,4 @@ +import gc import numpy as np import pandas.util.testing as tm from pandas import ( ...
- [X] closes #27585 - [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/27607
2019-07-26T06:57:23Z
2019-08-08T20:43:27Z
2019-08-08T20:43:26Z
2019-08-08T20:43:29Z
CLN: one less try/except in Block methods
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 83849ea41d032..6e5a2aab298c7 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -644,7 +644,9 @@ def _astype(self, dtype, copy=False, errors="raise", values=None, **kwargs): if isinst...
small unrelated cleanups
https://api.github.com/repos/pandas-dev/pandas/pulls/27606
2019-07-26T03:43:21Z
2019-07-26T11:44:24Z
2019-07-26T11:44:24Z
2019-07-26T15:26:40Z
CLN: simplify indexing code
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index cb33044c4e23f..a1a8619fab892 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -164,7 +164,7 @@ def _slice(self, obj, axis: int, kind=None): def _get_setitem_indexer(self, key): if self.axis is not None: - ...
- [ ] 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/27604
2019-07-26T02:58:01Z
2019-07-26T11:45:36Z
2019-07-26T11:45:36Z
2019-07-26T15:26:13Z
Removed get_value benchmarks
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 720bd0245be41..84604b8196536 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -129,10 +129,6 @@ def time_getitem_label_slice(self, index, index_structure): def time_getitem_pos_slice(self, ...
Follow up to #27377 @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/27603
2019-07-26T01:10:11Z
2019-07-26T11:43:09Z
2019-07-26T11:43:09Z
2020-01-16T00:35:07Z
DEPR: NDFrame.set_axis inplace defaults to false #27525
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c352a36bf6de1..cc4bab8b9a923 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -61,7 +61,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -...
https://github.com/pandas-dev/pandas/blob/76247c142893c710e970c4cf8a25d73121aa5a2b/pandas/core/generic.py#L594-L598 has been there since <del>#20164</del> #16994 (issue was #14636), part of 0.21.0. With discussion of plans to deprecate similar functionality from set_index in #24046, it's time to make sure `set_ax...
https://api.github.com/repos/pandas-dev/pandas/pulls/27600
2019-07-25T23:54:42Z
2019-07-26T11:51:35Z
2019-07-26T11:51:35Z
2019-07-27T08:07:19Z
TYPING: some type hints for pandas\io\common.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5980e3d133374..be870b9fcab1d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -732,7 +732,6 @@ def to_string( formatter = fmt.DataFrameFormatter( self, - buf=buf, columns=columns, c...
https://api.github.com/repos/pandas-dev/pandas/pulls/27598
2019-07-25T23:37:11Z
2019-08-02T17:14:20Z
2019-08-02T17:14:20Z
2019-08-05T09:39:05Z
Expanded ASVs for to_json
diff --git a/asv_bench/benchmarks/io/json.py b/asv_bench/benchmarks/io/json.py index 0ce42856fb14a..fc07f2a484102 100644 --- a/asv_bench/benchmarks/io/json.py +++ b/asv_bench/benchmarks/io/json.py @@ -63,10 +63,13 @@ def peakmem_read_json_lines_concat(self, index): class ToJSON(BaseIO): fname = "__test__.json" ...
Instead of one massive PR in #27166 I think this makes sense to break up in a few chunks. First step to get block code out of that extension is to get expanded test coverage, which I think I've done here. After this I'll probably: - Convert "columns" orient to not use the block manager code - Convert "values" ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27595
2019-07-25T22:38:15Z
2019-07-26T16:35:29Z
2019-07-26T16:35:29Z
2019-07-26T16:35:32Z
DOC: add documentation for read_spss(#27476)
diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst index 666220d390cdc..91f4942d03b0d 100644 --- a/doc/source/reference/io.rst +++ b/doc/source/reference/io.rst @@ -105,6 +105,13 @@ SAS read_sas +SPSS +~~~~ +.. autosummary:: + :toctree: api/ + + read_spss + SQL ~~~ .. autosummary:: di...
- [x] closes #27476 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Documentation is added for the new read_spss function. After the generating html in Sphinx, it looks like this: IO page top: <img width="766"...
https://api.github.com/repos/pandas-dev/pandas/pulls/27594
2019-07-25T20:08:47Z
2019-07-26T20:58:47Z
2019-07-26T20:58:46Z
2019-07-29T13:19:53Z
Backport PR #27488 on branch 0.25.x (API: Add entrypoint for plotting)
diff --git a/Makefile b/Makefile index baceefe6d49ff..9e69eb7922925 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ lint-diff: git diff upstream/master --name-only -- "*.py" | xargs flake8 black: - black . --exclude '(asv_bench/env|\.egg|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)...
Backport PR #27488: API: Add entrypoint for plotting
https://api.github.com/repos/pandas-dev/pandas/pulls/27590
2019-07-25T17:18:22Z
2019-07-25T18:14:41Z
2019-07-25T18:14:41Z
2019-07-25T18:14:41Z
REF: collect indexing methods
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9a84f1ddd87a5..301aa08236ff5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2777,81 +2777,7 @@ def _unpickle_matrix_compat(self, state): # pragma: no cover self._data = dm._data # ------------------------------------------...
No real changes, just putting indexing methods in one place to make subsequent passes a little easier
https://api.github.com/repos/pandas-dev/pandas/pulls/27588
2019-07-25T16:21:27Z
2019-07-25T17:19:30Z
2019-07-25T17:19:30Z
2019-07-25T17:31:47Z
Backport PR #27511 on branch 0.25.x (BUG: display.precision of negative complex numbers)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 9007d1c06f197..169968314d70e 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -57,6 +57,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`Series.interpolate` when using a timezone aware :class:`Date...
Backport PR #27511: BUG: display.precision of negative complex numbers
https://api.github.com/repos/pandas-dev/pandas/pulls/27587
2019-07-25T15:58:49Z
2019-07-25T16:55:03Z
2019-07-25T16:55:03Z
2019-07-25T16:55:03Z
CLN: Centralised _check_percentile
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index c0ed198e200f1..4124936b910e6 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -248,7 +248,6 @@ def _get_hashtable_algo(values): def _get_data_algo(values, func_map): - if is_categorical_dtype(values): va...
- Fixes #27559 - Moved the _check_percentile method on NDFrame to algorithms as check_percentile. - Changed the references to _check_percentile in pandas/core/series.py and pandas/core/frame.py - [x] closes #27559 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -...
https://api.github.com/repos/pandas-dev/pandas/pulls/27584
2019-07-25T10:23:11Z
2019-10-03T17:11:46Z
2019-10-03T17:11:45Z
2020-09-07T11:32:12Z
DOC:Update python version support info
diff --git a/doc/source/install.rst b/doc/source/install.rst index 352b56ebd3020..fc99b458fa0af 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -15,35 +15,10 @@ Instructions for installing from source, `PyPI <https://pypi.org/project/pandas>`__, `ActivePython <https://www.activestate.com/activepyth...
Updated the python version support info. Added minimum version for Python 3.5 is 3.5.3 and removed python 2.7 support info. closes #27558
https://api.github.com/repos/pandas-dev/pandas/pulls/27580
2019-07-25T06:05:45Z
2019-08-01T12:13:48Z
2019-08-01T12:13:48Z
2019-08-21T21:09:14Z
TYPING: add type hints to pandas\io\formats\printing.py
diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py index 4958d8246610e..4ec9094ce4abe 100644 --- a/pandas/io/formats/printing.py +++ b/pandas/io/formats/printing.py @@ -3,13 +3,14 @@ """ import sys +from typing import Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Union from p...
https://api.github.com/repos/pandas-dev/pandas/pulls/27579
2019-07-25T03:15:04Z
2019-07-25T17:38:53Z
2019-07-25T17:38:53Z
2019-07-26T03:18:57Z
CLN: pandas\io\formats\format.py
diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py index 1c2a8c4f0c10c..1fc1684335982 100644 --- a/pandas/core/indexes/timedeltas.py +++ b/pandas/core/indexes/timedeltas.py @@ -299,9 +299,11 @@ def _formatter_func(self): def _format_native_types(self, na_rep="NaT", date_format=None,...
xref https://github.com/pandas-dev/pandas/pull/27512#discussion_r306561575
https://api.github.com/repos/pandas-dev/pandas/pulls/27577
2019-07-24T22:46:22Z
2019-07-25T17:10:23Z
2019-07-25T17:10:23Z
2019-07-26T03:15:13Z
CLN: Prune unnecessary indexing code
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 34025d942b377..cdbe0e9d22eb4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -94,12 +94,9 @@ ) from pandas.core.indexes import base as ibase from pandas.core.indexes.datetimes import DatetimeIndex +from pandas.core.indexes.multi import ma...
https://api.github.com/repos/pandas-dev/pandas/pulls/27576
2019-07-24T21:52:24Z
2019-07-25T22:12:49Z
2019-07-25T22:12:49Z
2019-08-02T19:04:37Z
DEPR: remove .ix from tests/indexing/multiindex/test_setitem.py
diff --git a/pandas/tests/indexing/multiindex/test_setitem.py b/pandas/tests/indexing/multiindex/test_setitem.py index 261d2e9c04e77..c383c38958692 100644 --- a/pandas/tests/indexing/multiindex/test_setitem.py +++ b/pandas/tests/indexing/multiindex/test_setitem.py @@ -1,5 +1,3 @@ -from warnings import catch_warnings, s...
https://api.github.com/repos/pandas-dev/pandas/pulls/27574
2019-07-24T18:59:43Z
2019-07-25T16:56:28Z
2019-07-25T16:56:28Z
2019-07-26T03:06:20Z
API: Make most arguments for read_html and read_json keyword-ony
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index be48552fb04e9..db39d3616ca60 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -248,13 +248,26 @@ Assignment to multiple columns of a :class:`DataFrame` when some of the columns Deprecations ~~~~~~~~...
As mentioned in #27544 it is better to use keyword-only arguments for functions with too many arguments. A deprecation warning will be displayed if `read_html` get more than 2 positional arguments (`io` and `match`) or `read_json` get more than 1 positional argument (`path_or_buf`). - [x] tests added / passed Th...
https://api.github.com/repos/pandas-dev/pandas/pulls/27573
2019-07-24T17:56:02Z
2020-04-07T00:55:26Z
2020-04-07T00:55:26Z
2020-04-07T08:08:42Z
TST: add regression test for MultiIndex with IntervalIndex level
diff --git a/pandas/tests/indexing/interval/test_interval.py b/pandas/tests/indexing/interval/test_interval.py index 7ae42782774db..bbce786fc07ba 100644 --- a/pandas/tests/indexing/interval/test_interval.py +++ b/pandas/tests/indexing/interval/test_interval.py @@ -112,3 +112,38 @@ def test_loc_getitem_frame(self): ...
#27456 makes for a good regression test for the non-overlapping case, where there's no coverage currently. Add it to the tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/27572
2019-07-24T17:00:55Z
2019-07-25T16:57:33Z
2019-07-25T16:57:33Z
2019-07-25T18:15:07Z
CLN: remove block._coerce_values
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 1fef65349976b..4dc1dfcae0777 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -148,8 +148,10 @@ def _cython_agg_blocks(self, how, alt=None, numeric_only=True, min_count=-1): new_blocks = [] ...
viable now that we stopped coercing timedelta and datetime to i8 I'd like to clean up DatetimeTZBlock._try_coerce_result before getting this in. Part of that means pushing the handling down to the function being wrapped
https://api.github.com/repos/pandas-dev/pandas/pulls/27567
2019-07-24T15:48:33Z
2019-07-26T20:57:02Z
2019-07-26T20:57:02Z
2019-07-26T21:44:14Z
DEPR: remove .ix from tests/indexing/test_partial.py
diff --git a/pandas/tests/indexing/multiindex/test_partial.py b/pandas/tests/indexing/multiindex/test_partial.py index b1519d82e1aa7..692b57ff98f94 100644 --- a/pandas/tests/indexing/multiindex/test_partial.py +++ b/pandas/tests/indexing/multiindex/test_partial.py @@ -1,5 +1,3 @@ -from warnings import catch_warnings, s...
https://api.github.com/repos/pandas-dev/pandas/pulls/27566
2019-07-24T15:21:14Z
2019-07-25T16:58:08Z
2019-07-25T16:58:08Z
2019-07-26T03:07:27Z
DEPR: remove .ix from tests/indexing/multiindex/test_ix.py
diff --git a/pandas/tests/indexing/multiindex/test_ix.py b/pandas/tests/indexing/multiindex/test_ix.py index d43115d60c029..2e7a5a08a16f0 100644 --- a/pandas/tests/indexing/multiindex/test_ix.py +++ b/pandas/tests/indexing/multiindex/test_ix.py @@ -1,5 +1,3 @@ -from warnings import catch_warnings, simplefilter - impor...
https://api.github.com/repos/pandas-dev/pandas/pulls/27565
2019-07-24T15:09:29Z
2019-07-25T16:58:58Z
2019-07-25T16:58:58Z
2019-07-26T03:08:20Z
TYPING: some type hints for core.dtypes.common
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index f2571573bd1bc..5c1fe630ecaf5 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1,5 +1,5 @@ """ common type operations """ -from typing import Any, Union +from typing import Any, Callable, Union import warning...
https://api.github.com/repos/pandas-dev/pandas/pulls/27564
2019-07-24T14:38:07Z
2019-07-25T17:01:35Z
2019-07-25T17:01:35Z
2019-07-26T03:16:32Z
DOC: Harmonize column selection to bracket notation
diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index 510c7ef97aa98..d3ad6f99d5ecd 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -278,7 +278,7 @@ Using a single column's values to select data. .. ipython:: python - df[df.A...
As [suggested by](https://medium.com/dunder-data/minimally-sufficient-pandas-a8e67f2a2428#46f9) @tdpetrou. If there is agreement about not _presenting_ the dot notation to access columns in the docu, please let me know and I'll then check the rest of the docu. - [~] closes #xxxx - [~] tests added / passed - [~] pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/27562
2019-07-24T12:24:19Z
2019-08-26T16:37:15Z
2019-08-26T16:37:15Z
2019-08-26T18:29:14Z
Backport PR #27556 on branch 0.25.x (BUG: Allow ensure_index to coerce nan to NaT with numpy object array and tz Timestamp)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 6234bc0f7bd35..6be3f0fa2ef3d 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -50,7 +50,7 @@ Timedelta Timezones ^^^^^^^^^ -- +- Bug in :class:`Index` where a numpy object array with a timezone ...
Backport PR #27556: BUG: Allow ensure_index to coerce nan to NaT with numpy object array and tz Timestamp
https://api.github.com/repos/pandas-dev/pandas/pulls/27561
2019-07-24T11:43:13Z
2019-07-24T13:00:01Z
2019-07-24T13:00:01Z
2019-07-24T13:00:02Z
Backport PR #27549 on branch 0.25.x (BUG: Fix interpolate ValueError for datetime64_tz index)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 6234bc0f7bd35..a769930c9cd9b 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -56,7 +56,7 @@ Timezones Numeric ^^^^^^^ -- +- Bug in :meth:`Series.interpolate` when using a timezone aware :class:...
Backport PR #27549: BUG: Fix interpolate ValueError for datetime64_tz index
https://api.github.com/repos/pandas-dev/pandas/pulls/27560
2019-07-24T11:43:02Z
2019-07-24T13:00:12Z
2019-07-24T13:00:12Z
2019-07-24T13:00:12Z
BUG: Allow ensure_index to coerce nan to NaT with numpy object array and tz Timestamp
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 69f82f7f85040..c4dc3cd05d530 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -50,7 +50,7 @@ Timedelta Timezones ^^^^^^^^^ -- +- Bug in :class:`Index` where a numpy object array with a timezone ...
- [x] closes #27011 - [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/27556
2019-07-24T06:40:29Z
2019-07-24T11:42:49Z
2019-07-24T11:42:49Z
2019-07-24T16:04:24Z
CLN: more assorted cleanups
diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index 1d756115ebd5a..052b081988c9e 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -80,11 +80,8 @@ cpdef bint checknull_old(object val): cdef inline bint _check_none_nan_inf_neginf(object val): - try: - return val is...
Continuing with the theme of avoiding runtime imports
https://api.github.com/repos/pandas-dev/pandas/pulls/27555
2019-07-24T03:40:53Z
2019-07-25T17:12:05Z
2019-07-25T17:12:05Z
2019-07-25T17:32:09Z
REF: implement module for shared constructor functions
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index c7230dd7385c2..21d12d02c9008 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -50,6 +50,7 @@ from pandas.core.dtypes.missing import isna, na_value_for_dtype from pandas.core import common as com +from pandas.core.const...
`core.construction` intended for code to be shared between `pd.array`, `Series.__init__`, and `Index.__new__`. The module should not need to be internals-aware. This only moves array and extract_array to keep the diff contained. The next step would be to move internals.construction.sanitize_array, which is used in...
https://api.github.com/repos/pandas-dev/pandas/pulls/27551
2019-07-24T01:39:36Z
2019-07-25T17:14:33Z
2019-07-25T17:14:33Z
2019-07-25T17:33:28Z
Revert CI changes from 27542
diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index 7e78e3bf6f373..8f8273f57c3fe 100644 --- a/ci/deps/azure-36-locale.yaml +++ b/ci/deps/azure-36-locale.yaml @@ -7,6 +7,7 @@ dependencies: - bottleneck=1.2.* - cython=0.28.2 - lxml + - matplotlib=2.2.2 - numpy=1.14.* - openpyxl=...
- [X] closes #27546 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Think this was all a perfect storm of temporary issues, so let's see what reverting yields. Note: didn't revert the sudo tag removal on purpose
https://api.github.com/repos/pandas-dev/pandas/pulls/27550
2019-07-23T23:03:08Z
2019-07-24T11:14:58Z
2019-07-24T11:14:58Z
2020-01-16T00:35:06Z
BUG: Fix interpolate ValueError for datetime64_tz index
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 69f82f7f85040..ae2ff33f3f219 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -56,7 +56,7 @@ Timezones Numeric ^^^^^^^ -- +- Bug in :meth:`Series.interpolate` when using a timezone aware :class:...
- [ x ] closes #27548 - [ 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/27549
2019-07-23T21:33:15Z
2019-07-24T11:42:11Z
2019-07-24T11:42:10Z
2019-07-24T11:42:16Z
CI: troubleshoot failures that necessited #27536
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 13812663dd907..f704ceffa662e 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -545,7 +545,7 @@ cpdef convert_scalar(ndarray arr, object value): elif arr.descr.type_num == NPY_TIMEDELTA: if util.is_array(value): ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27545
2019-07-23T17:28:29Z
2019-07-23T22:33:09Z
2019-07-23T22:33:09Z
2019-07-23T22:59:06Z
CI debug
diff --git a/.travis.yml b/.travis.yml index 8335a6ee92bef..9be4291d10874 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ -sudo: false language: python python: 3.5 diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index 8f8273f57c3fe..7e78e3bf6f373 100644 --- a/ci/deps/azure-36-loc...
Closes https://github.com/pandas-dev/pandas/issues/27541
https://api.github.com/repos/pandas-dev/pandas/pulls/27542
2019-07-23T13:53:36Z
2019-07-23T19:01:01Z
2019-07-23T19:01:00Z
2019-07-23T22:02:44Z
COMPAT: remove Categorical pickle compat with Pandas < 0.16
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 8b2b3a09f8c87..59f69d5e656c1 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -99,6 +99,8 @@ Removal of prior version deprecations/changes - :meth:`pandas.Series.str.cat` does not accept list-likes *wi...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Removes Categorical pickle compat with Pandas < 0.16. I've added a ``categorical.pickle`` file to replace the deprecated file. It was create like ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27538
2019-07-23T07:12:56Z
2019-09-19T16:06:40Z
2019-09-19T16:06:40Z
2019-09-19T19:57:00Z
TST: label-based indexing fails with certain list indexers in case of…
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 19c288a4b63ae..abe0cd86c90d7 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -1081,3 +1081,21 @@ def test_series_loc_getitem_label_list_missing_values(): with tm.assert_produces_warnin...
… mixed integers/strings columns names - [ ] closes #14836 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [n/a ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/27537
2019-07-23T04:17:32Z
2019-07-23T21:16:16Z
2019-07-23T21:16:16Z
2019-07-24T11:54:51Z
xfail to fix CI
diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py index 2d36bfdb93a17..3083b655821f8 100644 --- a/pandas/tests/series/indexing/test_indexing.py +++ b/pandas/tests/series/indexing/test_indexing.py @@ -690,7 +690,13 @@ def test_dt64_series_assign_nat(nat_val, shoul...
to keep the wheels running while I troubleshoot this
https://api.github.com/repos/pandas-dev/pandas/pulls/27536
2019-07-23T03:06:51Z
2019-07-23T11:42:41Z
2019-07-23T11:42:41Z
2019-07-23T14:56:07Z
DEPR: remove .ix from tests/indexing/test_indexing.py
diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py index 58c054fa27d76..8d1971801cccc 100644 --- a/pandas/tests/indexing/test_indexing.py +++ b/pandas/tests/indexing/test_indexing.py @@ -2,7 +2,6 @@ from datetime import datetime import re -from warnings import catch_warning...
https://api.github.com/repos/pandas-dev/pandas/pulls/27535
2019-07-23T02:48:23Z
2019-07-24T13:01:33Z
2019-07-24T13:01:33Z
2019-07-24T14:00:07Z
DEPR: remove .ix tests from tests/indexing/test_floats.py
diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py index 78ff6580bb1e1..56a78081bc624 100644 --- a/pandas/tests/indexing/test_floats.py +++ b/pandas/tests/indexing/test_floats.py @@ -1,5 +1,3 @@ -from warnings import catch_warnings - import numpy as np import pytest @@ -7,8 +5,...
https://api.github.com/repos/pandas-dev/pandas/pulls/27533
2019-07-23T01:42:23Z
2019-07-23T21:57:21Z
2019-07-23T21:57:21Z
2019-07-24T11:55:49Z
CLN: simplify join take call
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index f9e1ebb11116b..238bfd0be0aa7 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -8,8 +8,9 @@ from numpy cimport (ndarray, uint32_t, uint64_t, float32_t, float64_t) cnp.import_array() -from pandas._libs.algos import g...
We can track down the dtypes that get passed to `_get_result_indexer`, and since it is always int64/int64, we can reduce the call to `algos.take_nd` down to a direct cython call. This removes the dependency of this module on non-cython parts of the code
https://api.github.com/repos/pandas-dev/pandas/pulls/27531
2019-07-23T00:29:55Z
2019-07-24T11:56:26Z
2019-07-24T11:56:26Z
2019-07-24T13:21:25Z
CLN: remove arrmap, closes #27251
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 0dbe525f7506e..038447ad252fe 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -674,31 +674,6 @@ def backfill_2d_inplace(algos_t[:, :] values, val = values[j, i] -@cython.wraparound(False) -@cython.boundscheck(Fals...
https://api.github.com/repos/pandas-dev/pandas/pulls/27530
2019-07-23T00:25:28Z
2019-07-23T21:14:23Z
2019-07-23T21:14:23Z
2019-07-23T21:39:50Z
BUG: Fix fields functions with readonly data, vaex#357
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index eed48f9e46897..ee3521ae31949 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -89,7 +89,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :meth:`Series.__setitem__` incorrectly casting ``np.timedel...
- [ ] 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/27529
2019-07-22T23:49:50Z
2019-07-24T03:47:55Z
2019-07-24T03:47:55Z
2019-07-24T13:22:20Z
Backport PR #27510 on branch 0.25.x (BUG: Retain tz transformation in groupby.transform)
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 6234bc0f7bd35..69f82f7f85040 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -120,7 +120,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- +- Bug in :meth:`pandas.core.groupby....
Backport PR #27510: BUG: Retain tz transformation in groupby.transform
https://api.github.com/repos/pandas-dev/pandas/pulls/27521
2019-07-22T15:28:18Z
2019-07-24T11:56:58Z
2019-07-24T11:56:58Z
2019-07-24T11:56:59Z
DOC:Remove DataFrame.append from the 10min intro
diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index 510c7ef97aa98..9045e5b32c29f 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -468,6 +468,13 @@ Concatenating pandas objects together with :func:`concat`: pd.concat(pieces)...
Remove the `append` section from 10 min intro doc as complexity of that is very different than `list.append` - [x] closes #27518
https://api.github.com/repos/pandas-dev/pandas/pulls/27520
2019-07-22T14:44:09Z
2019-08-02T12:43:47Z
2019-08-02T12:43:47Z
2019-08-02T16:10:02Z
more type hints for io/formats/format.py
diff --git a/.gitignore b/.gitignore index 56828fa1d9331..e85da9c9b976b 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,9 @@ coverage_html_report # hypothesis test database .hypothesis/ __pycache__ +# pytest-monkeytype +monkeytype.sqlite3 + # OS generated files # ###################### diff --git a/pandas/...
another pass to follow-on from #27418
https://api.github.com/repos/pandas-dev/pandas/pulls/27512
2019-07-22T01:02:12Z
2019-07-24T11:58:30Z
2019-07-24T11:58:30Z
2019-07-24T23:33:10Z
BUG: display.precision of negative complex numbers
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 9007d1c06f197..169968314d70e 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -57,6 +57,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`Series.interpolate` when using a timezone aware :class:`Date...
- [x] closes #27484 - [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/27511
2019-07-22T00:58:27Z
2019-07-25T15:58:18Z
2019-07-25T15:58:18Z
2019-07-25T20:06:59Z
BUG: Retain tz transformation in groupby.transform
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 6234bc0f7bd35..69f82f7f85040 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -120,7 +120,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- +- Bug in :meth:`pandas.core.groupby....
- [x] closes #27496 - [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/27510
2019-07-21T21:00:49Z
2019-07-22T15:27:40Z
2019-07-22T15:27:40Z
2019-07-22T16:47:29Z
remove references to v0.19 in docs and code
diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 2edd242d8cad9..3f6f56376861f 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -2061,8 +2061,6 @@ Convert a subset of columns to a specified type using :meth:`~DataFrame.astyp...
- [x] xref #27507
https://api.github.com/repos/pandas-dev/pandas/pulls/27508
2019-07-21T18:41:29Z
2019-07-22T12:08:40Z
2019-07-22T12:08:39Z
2019-07-23T09:11:06Z
remove last references to v0.18 in docs and code
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index a42ab4f0255bd..22a9791ffde30 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -810,15 +810,10 @@ values **not** in the categories, similarly to how you can reindex **any** panda Int64In...
- [x] xref #27463 Somehow all the changes didn't get added to #27463, so here's a follow-up. I've also removed a reference to 0.17 in style.ipynb which also makes the styler api non-provisional.
https://api.github.com/repos/pandas-dev/pandas/pulls/27507
2019-07-21T18:18:53Z
2019-07-22T12:07:10Z
2019-07-22T12:07:10Z
2019-07-22T12:08:28Z
REF: de-privatize dtypes.concat functions
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index df5cd12a479f0..7337d3a7c8f0b 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2481,9 +2481,9 @@ def _can_hold_na(self): @classmethod def _concat_same_type(self, to_concat): - ...
Preliminary to possibly finding new homes for some of these functions that don't really fit in core.dtypes (discussed briefly at the sprint). xref #25273
https://api.github.com/repos/pandas-dev/pandas/pulls/27499
2019-07-21T04:09:01Z
2019-07-22T21:14:54Z
2019-07-22T21:14:54Z
2019-07-22T21:30:50Z
PERF: speed up MultiIndex.is_monotonic by 50x
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 9caf127553e05..49885e4426feb 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -70,7 +70,8 @@ Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Performance improvement in indexing with a non-unique...
The current logic for `MultiIndex.is_monotonic` relies on `np.lexsort()` on `MultiIndex._values`. While the result is cached, this is slow as it triggers the creation of `._values`, needs to perform an `O(n log(n))` sort, as well as populate the hashmap of a transient `Index`. This PR significantly speeds up this ch...
https://api.github.com/repos/pandas-dev/pandas/pulls/27495
2019-07-20T23:54:04Z
2019-07-23T22:04:24Z
2019-07-23T22:04:24Z
2019-07-23T22:04:28Z
DOC: setup 1.0.0 docs
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 592b4748126c1..b7555ed94a1ed 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -10,6 +10,14 @@ This is the list of changes to pandas between each release. For full details, see the commit logs at http://git...
https://api.github.com/repos/pandas-dev/pandas/pulls/27491
2019-07-20T16:57:06Z
2019-07-20T20:07:00Z
2019-07-20T20:07:00Z
2019-07-20T20:07:00Z
PERF: speed up IntervalIndex._intersection_non_unique by ~50x
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 561cf436c9af4..7372dada3b48a 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1250,15 +1250,9 @@ def _intersection_non_unique(self, other: "IntervalIndex") -> "IntervalIndex": first_na...
I've been backfilling `asv` data and noticed the following regression in `IntervalIndexMethod.time_intersection_both_duplicate` (see [here](https://qwhelan.github.io/pandas/#index_object.IntervalIndexMethod.time_intersection_both_duplicate?machine=T470-W10&os=Linux%204.4.0-17134-Microsoft&ram=20822880&p-param1=100000&c...
https://api.github.com/repos/pandas-dev/pandas/pulls/27489
2019-07-20T09:39:05Z
2019-07-20T16:41:02Z
2019-07-20T16:41:02Z
2019-07-20T17:00:50Z
API: Add entrypoint for plotting
diff --git a/Makefile b/Makefile index baceefe6d49ff..9e69eb7922925 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ lint-diff: git diff upstream/master --name-only -- "*.py" | xargs flake8 black: - black . --exclude '(asv_bench/env|\.egg|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)...
Libraries, including pandas, register backends via entrypoints. xref #26747 cc @datapythonista @jakevdp @philippjfr
https://api.github.com/repos/pandas-dev/pandas/pulls/27488
2019-07-20T03:36:53Z
2019-07-25T17:18:13Z
2019-07-25T17:18:13Z
2019-07-25T20:21:50Z
Correctly re-instate Matplotlib converters
diff --git a/doc/source/whatsnew/v0.25.1.rst b/doc/source/whatsnew/v0.25.1.rst index 4e1bfac77fae2..b39dd30003d50 100644 --- a/doc/source/whatsnew/v0.25.1.rst +++ b/doc/source/whatsnew/v0.25.1.rst @@ -110,6 +110,9 @@ Plotting ^^^^^^^^ - Added a pandas_plotting_backends entrypoint group for registering plot backends...
Fixes https://github.com/pandas-dev/pandas/issues/27479. Converters should only be cached to be re-instated if they are original, and not pandas converters. I'm struggling to write a test for this; I think it requires a clean state with no pandas imports, so one can check what was in the units registry before pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/27481
2019-07-19T18:06:00Z
2019-08-20T14:26:50Z
2019-08-20T14:26:49Z
2019-08-21T16:34:46Z
Add a Roadmap
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst index a149f31118ed5..c7710ff19f078 100644 --- a/doc/source/development/index.rst +++ b/doc/source/development/index.rst @@ -16,3 +16,4 @@ Development internals extending developer + roadmap diff --git a/doc/source/develop...
This PR adds a roadmap document. This is useful when pursing funding; we can point to a list of known items that we'd like to do if we had the person time (and funding) to tackle them. Let's have two discussions 1. Do we want this? Roadmaps tend to go stale. How can we keep this up to date? 2. If so, what items ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27478
2019-07-19T15:10:58Z
2019-08-01T18:04:12Z
2019-08-01T18:04:12Z
2019-08-01T20:50:46Z
DOC: Fix typos in docstrings for functions referring.
diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index efe88d6b19b10..1cba0e7354182 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -46,7 +46,7 @@ def register(explicit=True): See Also -------- - deregister_matplotlib_converter + deregister_matplotlib_converters...
Fixed two typos in docstrings for functions referring.
https://api.github.com/repos/pandas-dev/pandas/pulls/27474
2019-07-19T09:09:50Z
2019-07-19T11:55:20Z
2019-07-19T11:55:20Z
2019-07-19T11:55:20Z
Groupby transform cleanups
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index fa7b945492d5d..c352a36bf6de1 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -39,7 +39,7 @@ Backwards incompatible API changes .. _whatsnew_1000.api.other: -- +- :class:`pandas.core.groupby.GroupB...
- [x] whatsnew Related #27389 (several issues there) closes #27486
https://api.github.com/repos/pandas-dev/pandas/pulls/27467
2019-07-19T04:31:40Z
2019-07-25T22:09:45Z
2019-07-25T22:09:45Z
2019-07-25T23:45:09Z
CLN: remove unused row_bool_subset
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 27ee685acfde7..e8a1e8173e463 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -688,50 +688,6 @@ def generate_bins_dt64(ndarray[int64_t] values, const int64_t[:] binner, return bins -@cython.boundscheck(False) -@cython.wraparound(Fals...
@jreback can you confirm my hunch that the `result.ndim == 2` block in groupby.ops was for Panel? Tracing back the blame, row_bool_subset was introduced [here](https://github.com/pandas-dev/pandas/commit/b15ae85e1f647821755d35bedd6143ad1e9c3678) in 2012 to close #152 and it started being called only for result.ndim ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27466
2019-07-19T04:29:29Z
2019-07-20T19:29:22Z
2019-07-20T19:29:22Z
2020-04-05T17:36:18Z
CLN: remove unused parts of skiplist (most of it)
diff --git a/pandas/_libs/skiplist.pxd b/pandas/_libs/skiplist.pxd index a273d2c445d18..e827223bbe0a7 100644 --- a/pandas/_libs/skiplist.pxd +++ b/pandas/_libs/skiplist.pxd @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- - -from cython cimport Py_ssize_t - +# See GH#27465 for reference on related-but-unused cython code cde...
As a follow-up I'll take a look at either removing the now-empty .pyx file or trying to port the c file to pyx
https://api.github.com/repos/pandas-dev/pandas/pulls/27465
2019-07-19T04:13:50Z
2019-09-11T02:02:07Z
2019-09-11T02:02:07Z
2019-09-11T15:36:20Z
Remove .. versionadded:: 0.18
diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index bc3b7b4c70fd1..2edd242d8cad9 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -1422,8 +1422,6 @@ The :meth:`~DataFrame.rename` method also provides an ``inplace`` named para...
Removed ``.. versionadded:: 0.18.0`` and related text blocks.
https://api.github.com/repos/pandas-dev/pandas/pulls/27463
2019-07-19T01:50:26Z
2019-07-20T19:20:06Z
2019-07-20T19:20:06Z
2019-07-20T20:26:12Z
CLN: avoid runtime imports
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index e8a1e8173e463..6b4f45fabc665 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -157,13 +157,13 @@ def is_scalar(val: object) -> bool: return (cnp.PyArray_IsAnyScalar(val) # PyArray_IsAnyScalar is always False for bytearrays...
Edits to lib.is_scalar are to put slower python-space checks later so they may get short-circuited. Everything else should be self-explanatory.
https://api.github.com/repos/pandas-dev/pandas/pulls/27461
2019-07-19T00:57:27Z
2019-07-22T11:52:32Z
2019-07-22T11:52:32Z
2019-07-22T14:08:08Z
Pinned date and fixed contributors directive
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 78644a3da4229..42e756635e739 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_0250: -What's new in 0.25.0 (April XX, 2019) -------------------------------------- +What's...
@TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/27455
2019-07-18T15:07:13Z
2019-07-18T15:56:36Z
2019-07-18T15:56:36Z
2019-07-18T15:56:41Z
PERF: restore performance for unsorted CategoricalDtype comparison
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 7721c90c9b4b4..6728d048efb79 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -406,6 +406,12 @@ def __eq__(self, other: Any) -> bool: # but same order is not necessary. There is no distinction bet...
Fixes a performance regression introduced in #26403 very shortly before `0.25.0rc0` was cut, which can be seen [here](https://qwhelan.github.io/pandas/#indexing.CategoricalIndexIndexing.time_getitem_slice?machine=T470&num_cpu=4&os=Linux%205.0.0-20-generic&ram=20305904) ![Screenshot from 2019-07-17 23-29-08](https://us...
https://api.github.com/repos/pandas-dev/pandas/pulls/27448
2019-07-18T06:39:11Z
2019-07-18T10:53:29Z
2019-07-18T10:53:29Z
2019-07-18T10:53:56Z
CLN: simplify maybe_convert_objects, soft_convert_objects
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 44a3fefb1689a..fd8536e38eee7 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -6,6 +6,7 @@ from pandas._libs import lib, tslib, tslibs from pandas._libs.tslibs import NaT, OutOfBoundsDatetime, Period, iNaT +from pa...
Block.replace has code for dispatching to either maybe_convert_objects or soft_convert_objects, but the former is only reached from the tests. So rip that out and use soft_convert_objects. Both of the functions have branches that are unreachable, so rip those out, along with adding types and validation.
https://api.github.com/repos/pandas-dev/pandas/pulls/27444
2019-07-18T02:46:26Z
2019-07-20T23:49:48Z
2019-07-20T23:49:48Z
2019-07-20T23:52:50Z
TST: Add test for operations on DataFrame with Interval CategoricalIndex
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 7c022106c9104..706bc122c6d9e 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -642,3 +642,14 @@ def test_arith_non_pandas_object(self): val3 = np.random.rand(*df.sha...
- [x] closes #27415 - [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/27443
2019-07-18T01:43:53Z
2019-07-23T22:06:16Z
2019-07-23T22:06:16Z
2019-07-23T22:06:19Z
CLN: Trim unused/unnecessary code
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index f483cf520754b..44a3fefb1689a 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -571,18 +571,6 @@ def maybe_upcast(values, fill_value=np.nan, dtype=None, copy=False): return values, fill_value -def maybe_cast_it...
https://api.github.com/repos/pandas-dev/pandas/pulls/27440
2019-07-17T21:50:07Z
2019-07-18T10:56:16Z
2019-07-18T10:56:16Z
2019-07-18T14:32:11Z
BUG: maybe_convert_objects mixed datetimes and timedeltas
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 1936404b75602..03bd1b996955a 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -942,6 +942,7 @@ cdef class Seen: cdef: bint int_ # seen_int + bint nat_ # seen nat bint bool_ # ...
- [X] corresponding [discussion](https://github.com/pandas-dev/pandas/issues/27417#issuecomment-512014358) 27417 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In order to stick to `maybe_convert_objects` realizatio...
https://api.github.com/repos/pandas-dev/pandas/pulls/27438
2019-07-17T18:47:51Z
2019-07-24T12:05:48Z
2019-07-24T12:05:48Z
2019-07-25T19:56:41Z
BUG: fix+test quantile with empty DataFrame, closes #23925
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index eed48f9e46897..bccb6f991d646 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -108,7 +108,7 @@ Timezones Numeric ^^^^^^^ - +- Bug in :meth:`DataFrame.quantile` with zero-column :class:`DataFrame` in...
- [x] closes #23925 - [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/27436
2019-07-17T18:17:01Z
2019-07-24T12:07:14Z
2019-07-24T12:07:14Z
2019-07-24T13:20:10Z
PLT: Delegating to plotting backend only plots of Series and DataFrame methods
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 5e67d9a587914..0610780edb28d 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -375,7 +375,7 @@ def boxplot( >>> type(boxplot) <class 'numpy.ndarray'> """ - plot_backend = _get_plot_backend() + plot...
- [X] xref #26747 - [ ] 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/27432
2019-07-17T15:03:44Z
2019-07-18T13:17:37Z
2019-07-18T13:17:37Z
2019-07-18T13:17:37Z
CLN/REF: stop allowing iNaT in DatetimeBlock
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f0e7893435f2b..549920e230e8a 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2184,7 +2184,7 @@ def _holder(self): @property def fill_value(self): - return tslibs.iNaT + r...
Sits on top of #27411 xref #16674. The broader goal is de-special-casing code in internals.
https://api.github.com/repos/pandas-dev/pandas/pulls/27428
2019-07-17T00:21:26Z
2019-07-23T23:55:40Z
2019-07-23T23:55:40Z
2019-07-24T00:23:23Z
Merged mypy.ini into setup.cfg
diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index cba20d2775fbe..0000000000000 --- a/mypy.ini +++ /dev/null @@ -1,6 +0,0 @@ -[mypy] -ignore_missing_imports=True -no_implicit_optional=True - -[mypy-pandas.conftest,pandas.tests.*] -ignore_errors=True \ No newline at end of file diff --git a/setup.cfg b/setu...
Figure the mypy.ini is small enough now don't need a dedicated config file for it
https://api.github.com/repos/pandas-dev/pandas/pulls/27427
2019-07-16T23:14:53Z
2019-07-17T11:45:08Z
2019-07-17T11:45:08Z
2019-10-11T03:40:07Z
Reallow usecols to reference OOB indices - reverts 25623
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 7397ae8fda80c..3445beaa78317 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -1087,7 +1087,6 @@ I/O - Bug in :meth:`DataFrame.to_html` where header numbers would ignore display options when roundi...
- [x] closes #27252 reverts #25623 @heckeop @gfyoung I know you asked for a FutureWarning to be raised but I didn't want to mess around with the validation_function in place here so just did a simple revert for sake of time / effort
https://api.github.com/repos/pandas-dev/pandas/pulls/27426
2019-07-16T21:58:23Z
2019-07-17T11:52:36Z
2019-07-17T11:52:36Z
2020-01-16T00:35:03Z
BUG: fix+test fillna with non-nano datetime64; closes #27419
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 897a82f9a1968..26aca34f20594 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2250,7 +2250,12 @@ def _astype(self, dtype, **kwargs): def _can_hold_element(self, element): tipo = maybe...
- [x] closes #27419 - [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/27425
2019-07-16T20:45:28Z
2019-07-17T11:54:25Z
2019-07-17T11:54:25Z
2019-07-17T14:05:18Z
Removed ABCs from pandas._typing
diff --git a/pandas/_typing.py b/pandas/_typing.py index a1224a609579e..45c43fa958caa 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -1,34 +1,29 @@ from pathlib import Path -from typing import IO, AnyStr, TypeVar, Union +from typing import IO, TYPE_CHECKING, AnyStr, TypeVar, Union import numpy as np -f...
- [X] closes #27146 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This reveals a few new typing issues so won't pass CI but submitting as draft Here's one way I think that works to avoid import cycles. Basically...
https://api.github.com/repos/pandas-dev/pandas/pulls/27424
2019-07-16T20:33:16Z
2019-07-24T16:42:51Z
2019-07-24T16:42:50Z
2019-07-24T16:43:05Z
CLN: fix build warning in c_timestamp.pyx
diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx index 2d3ea3e14775e..906dabba09486 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -19,7 +19,7 @@ from cpython cimport (PyObject_RichCompareBool, PyObject_RichCompare, import numpy as ...
``` pandas/_libs/tslibs/c_timestamp.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_11c_timestamp_10_Timestamp__get_start_end_field’: pandas/_libs/tslibs/c_timestamp.c:7257:25: warning: ‘__pyx_t_10’ may be used uninitialized in this function [-Wmaybe-uninitialized] 7257 | __pyx_t_5numpy_int8_t __pyx_t_10[1]; ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27423
2019-07-16T20:30:10Z
2019-07-20T20:36:14Z
2019-07-20T20:36:14Z
2019-07-20T21:39:05Z
add some type annotations io/formats/format.py
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 0e8ed7b25d665..ff31a3b4e6a1f 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -6,6 +6,7 @@ from functools import partial from io import StringIO from shutil import get_terminal_size +from typing import TYPE_CHEC...
typing not added to all function signatures in io/formats/format.py in this pass to reduce the diff ~~this PR also contains a refactor to simplify the addition of type annotations; `truncate_h` and `tr_col_num` are dependant variables. `truncate_h` can be `True` or `False`. if `True`, `tr_col_num` is an `int` else i...
https://api.github.com/repos/pandas-dev/pandas/pulls/27418
2019-07-16T15:43:54Z
2019-07-21T01:06:45Z
2019-07-21T01:06:45Z
2019-07-22T11:48:22Z
CI: limit pytest version on 3.6
diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml index c56dc819a90b1..5cf897c98da10 100644 --- a/ci/deps/azure-37-numpydev.yaml +++ b/ci/deps/azure-37-numpydev.yaml @@ -17,4 +17,5 @@ dependencies: - "--pre" - "numpy" - "scipy" - - pytest-azurepipelines + # https://github...
closes #27406
https://api.github.com/repos/pandas-dev/pandas/pulls/27416
2019-07-16T12:25:23Z
2019-07-16T19:19:30Z
2019-07-16T19:19:30Z
2019-07-16T19:19:30Z
CLN/REF: Unify Arithmetic Methods
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index df17388856117..87cda22e3b676 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -39,7 +39,7 @@ from pandas.core.dtypes.missing import is_valid_nat_for_dtype, isna from pandas._typing i...
2 goals here. First is to end up with a single implementation for our arithmetic ops. By implementing the missing methods directly on DTA/PA, we make it so we don't need to special-case inside the `Index.__foo__` methods, so can dispatch to Series more directly. Second is to get the wrapper defined in_arith_meth...
https://api.github.com/repos/pandas-dev/pandas/pulls/27413
2019-07-16T04:10:14Z
2019-07-20T20:06:05Z
2019-07-20T20:06:05Z
2019-07-20T20:08:01Z
CLN: fix compiler warnings in tzconversion.pyx
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index 26a64c13f6de1..dd0c6fc75b06f 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -96,6 +96,8 @@ timedelta-like} result[i] = _tz_convert_tzlocal_utc(v, tz, to_utc=Tr...
Fixes ``` pandas/_libs/tslibs/tzconversion.c:3157:21: warning: ‘__pyx_pybuffernd_dst_hours.diminfo[0].strides’ may be used uninitialized in this function [-Wmaybe-uninitialized] 3157 | __Pyx_LocalBuf_ND __pyx_pybuffernd_dst_hours; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ pandas/_libs/tslibs/tzcon...
https://api.github.com/repos/pandas-dev/pandas/pulls/27412
2019-07-16T04:00:59Z
2019-07-16T19:42:50Z
2019-07-16T19:42:50Z
2019-07-16T20:17:40Z
REF: stop allowing iNaT in TimedeltaBlock methods
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 897a82f9a1968..c0d3368c652ec 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2597,6 +2597,7 @@ class TimeDeltaBlock(DatetimeLikeBlockMixin, IntBlock): is_timedelta = True _can_hold_na = ...
Working towards minimizing the amount of special-casing we do within internals
https://api.github.com/repos/pandas-dev/pandas/pulls/27411
2019-07-16T01:37:56Z
2019-07-22T21:13:57Z
2019-07-22T21:13:57Z
2019-07-22T21:31:32Z
CLN: docstring
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index a127d092b7b1a..f8417c3f01eac 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -41,9 +41,8 @@ class Grouper: level and/or axis parameters are given, a level of the index of the target object. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/27410
2019-07-15T23:00:54Z
2019-07-16T15:25:40Z
2019-07-16T15:25:40Z
2019-07-16T20:33:19Z
TST: Fix integer ops comparison test
diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index 0fe07caed5b85..8065c33a9e116 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -314,11 +314,11 @@ def test_rpow_one_to_na(self): class TestComparisonOps(BaseOpsUtil): - def _c...
The `op(Series[integer], other)` path was being tested twice. The `op(IntegerArray, other)` path was not being tested. Closes https://github.com/pandas-dev/pandas/issues/22096
https://api.github.com/repos/pandas-dev/pandas/pulls/23619
2018-11-10T21:23:39Z
2018-11-11T14:24:43Z
2018-11-11T14:24:43Z
2018-11-14T21:03:52Z
BUG: Index.str.partition not nan-safe (#23558)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 98941b6d353bb..fc58c8eac61c9 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1268,8 +1268,8 @@ Numeric Strings ^^^^^^^ -- -- +- Bug in :meth:`Index.str.partition` was not nan-safe (:issue:`235...
- [x] closes #23558 and closes #23677 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23618
2018-11-10T21:17:00Z
2018-11-18T18:32:51Z
2018-11-18T18:32:51Z
2018-11-18T18:32:56Z
Integer NA docs
diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst index 2b42eebf762e1..3d89fe171a343 100644 --- a/doc/source/gotchas.rst +++ b/doc/source/gotchas.rst @@ -215,8 +215,28 @@ arrays. For example: s2.dtype This trade-off is made largely for memory and performance reasons, and also so -that the resulting ``...
Closes https://github.com/pandas-dev/pandas/issues/22003 In the issue @chris-b1 said > More clear separation from numpy dtype - worry that 'int64' vs 'Int64' will be especially confusing for new people? Consider a different name altogether? (NullableInt64?) Do people have thoughts on that? Earlier @jreback ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23617
2018-11-10T21:14:15Z
2019-01-01T14:22:33Z
2019-01-01T14:22:33Z
2019-01-01T14:22:37Z
Fix order parameters and add decimal to to_string
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 1fb54ae55b90e..007f5b7feb060 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -24,7 +24,8 @@ New features the user to override the engine's default behavior to include or omit the dataframe's ...
- [x] closes #23612 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Add an extra argument:`decimal` to `pandas.DataFrame.to_string`.
https://api.github.com/repos/pandas-dev/pandas/pulls/23614
2018-11-10T16:44:20Z
2018-11-15T16:08:33Z
2018-11-15T16:08:33Z
2019-01-02T20:26:14Z
TST: Unskip some Categorical Tests
diff --git a/pandas/tests/extension/test_categorical.py b/pandas/tests/extension/test_categorical.py index b1d08a5620bf3..8810c535c655f 100644 --- a/pandas/tests/extension/test_categorical.py +++ b/pandas/tests/extension/test_categorical.py @@ -73,10 +73,10 @@ class TestDtype(base.BaseDtypeTests): class TestInterf...
closes https://github.com/pandas-dev/pandas/issues/20747
https://api.github.com/repos/pandas-dev/pandas/pulls/23613
2018-11-10T13:20:07Z
2018-11-11T14:48:38Z
2018-11-11T14:48:37Z
2018-11-11T14:48:41Z
DOC: Fix Order of parameters in docstrings
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index ec4cdffc56435..d12dbb81765d8 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -407,12 +407,12 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None, values : array-like, optional ...
- [ ] closes #23596 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Fix the following: ```diff pandas.io.json.json_normalize: Wrong parameters order. Actual: ('data', 'record_path', 'meta', 'meta_prefix', 'record_prefix', 'errors', 'sep'). Documented: ('data', '...
https://api.github.com/repos/pandas-dev/pandas/pulls/23611
2018-11-10T04:46:46Z
2018-11-11T14:50:27Z
2018-11-11T14:50:27Z
2019-01-02T20:26:28Z
TST: Use intp as expected dtype in IntervalIndex indexing tests
diff --git a/pandas/tests/indexes/interval/test_interval.py b/pandas/tests/indexes/interval/test_interval.py index 258f2dc41fb79..49d093d312cf1 100644 --- a/pandas/tests/indexes/interval/test_interval.py +++ b/pandas/tests/indexes/interval/test_interval.py @@ -412,9 +412,9 @@ def test_get_loc_value(self): asse...
xref https://github.com/pandas-dev/pandas/pull/23468#issuecomment-437335512: fixes some failing 32bit tests
https://api.github.com/repos/pandas-dev/pandas/pulls/23609
2018-11-09T23:51:06Z
2018-11-10T04:24:09Z
2018-11-10T04:24:09Z
2018-11-11T13:15:42Z
DOC: Adding validation of the section order in docstrings
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index ccd5f56141a6a..c1bdab73c2671 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -350,6 +350,35 @@ def private_classes(self): This mentions NDFrame, whi...
- [X] closes #23133 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23607
2018-11-09T22:31:13Z
2018-11-12T15:33:48Z
2018-11-12T15:33:48Z
2018-11-12T15:33:48Z
TST: add tests for keeping dtype in Series.update
diff --git a/pandas/tests/series/test_combine_concat.py b/pandas/tests/series/test_combine_concat.py index 3f137bf686715..e13cb9edffe2b 100644 --- a/pandas/tests/series/test_combine_concat.py +++ b/pandas/tests/series/test_combine_concat.py @@ -10,10 +10,10 @@ import pandas as pd from pandas import DataFrame, Datetim...
- [x] precursor to #23192 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23604
2018-11-09T18:27:32Z
2018-11-20T02:17:28Z
2018-11-20T02:17:28Z
2018-11-20T06:53:52Z
CLN: remove values attribute from datetimelike EAs
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ed4309395ac1f..3fa4f503d2dd5 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -66,7 +66,7 @@ def cmp_method(self, other): with warnings.catch_warnings(record=True): ...
We don't need a `.values` attribute on the EAs (in the interface, we actually explicitly disallow it (in words and tests)). I thought there was a reason during the PeriodArray PR that this couldn't yet be removed, but relevant tests seem to be passing locally. cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/23603
2018-11-09T16:00:18Z
2018-11-09T21:05:55Z
2018-11-09T21:05:55Z
2018-11-12T11:04:01Z
Add default repr for EAs
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 7617ad5b428a2..02ffd07e81ff9 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1001,6 +1001,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your - :meth:`DataFrame.stac...
Closes https://github.com/pandas-dev/pandas/issues/22846 Closes https://github.com/pandas-dev/pandas/issues/23590 ```python In [4]: pd.core.arrays.period_array(['2000', '2001', None], freq='D') Out[4]: <PeriodArray> ['2000-01-01', '2001-01-01', 'NaT'] Length: 3, dtype: period[D] In [5]: pd.core.arrays.perio...
https://api.github.com/repos/pandas-dev/pandas/pulls/23601
2018-11-09T15:31:00Z
2018-12-04T13:09:17Z
2018-12-04T13:09:16Z
2019-04-05T23:43:03Z
DOC: Remove incorrect periods at the end of parameter types (#23597)
diff --git a/pandas/core/dtypes/inference.py b/pandas/core/dtypes/inference.py index d56bd83f01236..5f35a040d7d47 100644 --- a/pandas/core/dtypes/inference.py +++ b/pandas/core/dtypes/inference.py @@ -73,7 +73,7 @@ def is_string_like(obj): Parameters ---------- - obj : The object to check. + obj : The...
- [x] closes #23597 - [x] passes `git diff master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23600
2018-11-09T14:41:41Z
2018-11-11T01:05:55Z
2018-11-11T01:05:55Z
2018-11-11T02:20:49Z