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
ENH: Style blocks
diff --git a/.gitignore b/.gitignore index a509fcf736ea8..c953020f59342 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,4 @@ doc/source/index.rst doc/build/html/index.html # Windows specific leftover: doc/tmp.sv +doc/source/templates/ diff --git a/MANIFEST.in b/MANIFEST.in index b7a7e6039ac9a..31de3466cb357 ...
ENH: Add blocks to Styler template This will make subclassing the Styler and extending the templates easier. REF: Move template to its own file Use Environment and PackageLoader to load it
https://api.github.com/repos/pandas-dev/pandas/pulls/15954
2017-04-08T22:25:20Z
2017-04-15T13:59:00Z
2017-04-15T13:59:00Z
2017-05-29T20:44:01Z
TST: Add test decorators for redirecting stdout and stderr
diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py index 024e11e63a924..918938c1758ed 100644 --- a/pandas/tests/frame/test_repr_info.py +++ b/pandas/tests/frame/test_repr_info.py @@ -191,6 +191,7 @@ def test_latex_repr(self): # GH 12182 self.assertIsNone(df._repr_...
Add testing decorators for redirecting `stdout` and `stderr`. xref <a href="https://github.com/pandas-dev/pandas/pull/15925#discussion_r110283696">#15925 (comment)</a>
https://api.github.com/repos/pandas-dev/pandas/pulls/15952
2017-04-08T20:00:58Z
2017-04-08T21:58:32Z
2017-04-08T21:58:32Z
2017-04-08T22:01:08Z
DOC: Cleanup for nbsphinx output
diff --git a/doc/source/style.ipynb b/doc/source/style.ipynb index 7e408f96f6c28..38b39bad8b415 100644 --- a/doc/source/style.ipynb +++ b/doc/source/style.ipynb @@ -45,6 +45,20 @@ "Let's see some examples." ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": t...
Followup to https://github.com/pandas-dev/pandas/pull/15581 Using the `nbsphinx: hidden` metadata to hide the ouptut, so readers don't see matplotlib's fc-list warning. Make the tables monospaced in CSS.
https://api.github.com/repos/pandas-dev/pandas/pulls/15951
2017-04-08T18:47:55Z
2017-04-08T20:58:17Z
2017-04-08T20:58:17Z
2017-05-29T20:43:57Z
TST: clean up series/frame api tests inheritance a bit
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index e8170b4bf2113..fd1cd3d0022c9 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -1219,6 +1219,7 @@ Conversion - Bug in ``DataFrame.fillna()`` with tz-aware datetimes (:issue:`15855`) - Bug in ``is_s...
https://api.github.com/repos/pandas-dev/pandas/pulls/15949
2017-04-08T14:46:33Z
2017-04-10T12:12:01Z
2017-04-10T12:12:01Z
2017-04-10T12:12:13Z
COMPAT: 32bit compat on indexing for MI.remove_unused_levels
diff --git a/pandas/indexes/multi.py b/pandas/indexes/multi.py index 3f84d8b292980..74c45aac8b620 100644 --- a/pandas/indexes/multi.py +++ b/pandas/indexes/multi.py @@ -1224,6 +1224,7 @@ def _sort_levels_monotonic(self): lev = lev.take(indexer) # indexer to reorder the labels + in...
https://api.github.com/repos/pandas-dev/pandas/pulls/15948
2017-04-08T13:43:06Z
2017-04-08T14:32:09Z
2017-04-08T14:32:09Z
2017-04-08T15:56:35Z
MAINT: Refactor Python engine empty line funcs
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 10f8c53987471..95fbbce9de205 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -2441,7 +2441,19 @@ def _check_for_bom(self, first_row): # return an empty string. return [""] - def _empty(self, line): + def _is...
The Python engine's `_empty` and `_check_empty` methods were uninformative and undocumented. This commit renames them to `_is_line_empty` and `_remove_empty_lines` respectively and provides appropriate documentation. xref <a href="https://github.com/pandas-dev/pandas/pull/15925#discussion_r110377233">#15925 (comm...
https://api.github.com/repos/pandas-dev/pandas/pulls/15946
2017-04-07T20:33:47Z
2017-04-08T13:25:24Z
2017-04-08T13:25:24Z
2017-04-08T16:35:49Z
BUG: Validate the skipfooter parameter in read_csv
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index d571c0f2d9620..95f5ed6916936 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -1184,6 +1184,7 @@ I/O - Bug in ``pd.read_csv()`` in which certain invalid file objects caused the Python interpreter t...
Previously, the `skipfooter` parameter was assumed to be an integer, but that was not checked. xref <a href="https://github.com/pandas-dev/pandas/pull/15925#discussion_r110283317">#15925 (comment)</a>
https://api.github.com/repos/pandas-dev/pandas/pulls/15945
2017-04-07T20:21:29Z
2017-04-08T13:24:44Z
2017-04-08T13:24:44Z
2017-04-08T16:35:56Z
BUG/DOC: Add documentation in types/common.py
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index 0b98e57c606a3..436d51da6e873 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -1145,6 +1145,7 @@ Conversion - Bug in ``.asfreq()``, where frequency was not set for empty ``Series`` (:issue:`14320`)...
Adds documentation for all internal functions in `types/common.py` In addition, caught a bug in which some functions calling `_get_dtype` were not catching the `TypeError`. Documented those functions along the way too. Partially addresses #15895.
https://api.github.com/repos/pandas-dev/pandas/pulls/15941
2017-04-07T17:31:33Z
2017-04-07T22:42:30Z
2017-04-07T22:42:30Z
2017-04-08T00:40:39Z
DEPR: deprecate pd.get_store as not api consistent and cluttering
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index cb9e2496757ef..d607d070bf2c6 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -913,13 +913,14 @@ Deprecations - importing ``concat`` from ``pandas.tools.merge`` has been deprecated in favor of impo...
https://api.github.com/repos/pandas-dev/pandas/pulls/15940
2017-04-07T14:02:46Z
2017-04-07T15:21:05Z
2017-04-07T15:21:05Z
2017-04-07T15:23:01Z
DOC/TST: add pd.unique doc-string & buggy return of Categorical
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index 7664688ffa4f4..4c0594c024774 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -593,6 +593,76 @@ result. On the other hand, this might have backward incompatibilities: e.g. compared to numpy arrays,...
closes #9346
https://api.github.com/repos/pandas-dev/pandas/pulls/15939
2017-04-07T13:21:42Z
2017-04-09T15:28:52Z
2017-04-09T15:28:52Z
2017-04-09T17:22:28Z
BUG: Correct Timestamp localization with tz near DST (#11481)
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index 4e29e01415ba6..7664688ffa4f4 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -1124,6 +1124,7 @@ Conversion - Bug in ``Timestamp.replace`` now raises ``TypeError`` when incorrect argument names are...
- [x] closes #11481, #15777 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry Seemed that the `Timestamp` constructor with a string incorrectly localized a naive time with `tz_convert_single` instead of `tz_localize_to_utc` which is...
https://api.github.com/repos/pandas-dev/pandas/pulls/15934
2017-04-07T04:19:44Z
2017-04-08T21:59:06Z
2017-04-08T21:59:06Z
2017-12-20T02:00:29Z
DOC: Fix a typo in advanced.rst
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index f380070ddac79..0b81bc6d934e1 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -46,7 +46,7 @@ data with an arbitrary number of dimensions in lower dimensional data structures like Series (1d) and DataFrame (2d). In this section...
https://api.github.com/repos/pandas-dev/pandas/pulls/15933
2017-04-07T04:06:09Z
2017-04-07T12:08:57Z
2017-04-07T12:08:57Z
2017-04-07T12:09:00Z
TST: suppress some warnings
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 244f882f2c103..9b88ea23483bd 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -3,7 +3,7 @@ intended for public consumption """ from __future__ import division -from warnings import warn +from warnings import warn, catch...
https://api.github.com/repos/pandas-dev/pandas/pulls/15932
2017-04-07T02:55:59Z
2017-04-07T12:03:55Z
2017-04-07T12:03:55Z
2017-04-07T12:04:54Z
DEPR: deprecate relableling dicts in groupby.agg
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index a37cbc96b2d8c..f46a00826a8d9 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -610,14 +610,6 @@ aggregation with, outputting a DataFrame: r['A'].agg([np.sum, np.mean, np.std]) -If a dict is passed, the keys wil...
pre-curser to #14668 This is basically in the whatsnew, but: ``` In [1]: df = pd.DataFrame({'A': [1, 1, 1, 2, 2], ...: 'B': range(5), ...: 'C':range(5)}) ...: df ...: Out[1]: A B C 0 1 0 0 1 1 1 1 2 1 2 2 3 2 3 3 4 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/15931
2017-04-07T02:44:53Z
2017-04-13T10:18:04Z
2017-04-13T10:18:04Z
2017-11-30T20:22:28Z
CLN: algos
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 80664a9ba3019..244f882f2c103 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -8,30 +8,22 @@ from pandas import compat, _np_version_under1p8 from pandas.types.cast import maybe_promote -from pandas.types.generic import...
- clean up select_n algos - clean ensure_data closes #15903 should make this much simpler going forward. All dtype conversions are now centralized. Added some doc-strings as well.
https://api.github.com/repos/pandas-dev/pandas/pulls/15929
2017-04-06T21:09:42Z
2017-04-07T00:16:56Z
2017-04-07T00:16:56Z
2017-04-25T10:47:05Z
ENH: Support malformed row handling in Python engine
diff --git a/doc/source/io.rst b/doc/source/io.rst index 5cec27c329a7f..f4676f3ad964e 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -342,11 +342,11 @@ error_bad_lines : boolean, default ``True`` Lines with too many fields (e.g. a csv line with too many commas) will by default cause an exception to be ...
Support `warn_bad_lines` and `error_bad_lines` for the Python engine. xref #12686 (master tracker) Inspired by <a href="https://github.com/pandas-dev/pandas/issues/15910#issuecomment-291998838">#15910 (comment)</a> In addition, the Python parser now raises `pandas.error.ParserError`, which is in line with what...
https://api.github.com/repos/pandas-dev/pandas/pulls/15925
2017-04-06T18:28:34Z
2017-04-07T19:47:30Z
2017-04-07T19:47:30Z
2017-04-07T19:58:05Z
BUG: use entire size of DatetimeTZBlock when coercing result (#15855)
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index cb9e2496757ef..f9b6cebb26693 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -999,6 +999,7 @@ Conversion - Bug in ``DataFrame.fillna()`` where the argument ``downcast`` was ignored when fillna val...
- [x] closes #15855 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/15924
2017-04-06T17:41:46Z
2017-04-07T20:37:41Z
2017-04-07T20:37:41Z
2017-04-07T21:36:37Z
TST: skip decimal conversion tests on 32-bit
diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 8fc8ecbdf8abc..a24e8cdaf0273 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101 import pytest -from pandas.com...
xref #15865
https://api.github.com/repos/pandas-dev/pandas/pulls/15922
2017-04-06T15:01:58Z
2017-04-06T16:41:07Z
2017-04-06T16:41:07Z
2017-04-06T16:41:08Z
Fix a typo
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index 737141f11d7d1..7f2f0cf4943b8 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -571,7 +571,7 @@ def _fill_mi_header(row, control_row): ---------- row : list List of items in a single row. - constrol_row : list of boolean + con...
Simple fix.
https://api.github.com/repos/pandas-dev/pandas/pulls/15918
2017-04-06T09:36:14Z
2017-04-06T11:34:25Z
2017-04-06T11:34:25Z
2017-04-06T11:34:40Z
BLD: update merge script to update on github
diff --git a/scripts/merge-py.py b/scripts/merge-pr.py similarity index 83% rename from scripts/merge-py.py rename to scripts/merge-pr.py index b9350f8feceb8..1fc4eef3d0583 100755 --- a/scripts/merge-py.py +++ b/scripts/merge-pr.py @@ -99,6 +99,14 @@ def continue_maybe(prompt): fail("Okay, exiting") +def c...
@jreback @TomAugspurger This adds the ability to checkout a PR, do a small fixup or rebase, and push changes to github. I now added it as an additional question whether to update or merge, but can also make to separate scripts of it for convenience.
https://api.github.com/repos/pandas-dev/pandas/pulls/15917
2017-04-06T08:37:15Z
2017-04-07T18:58:21Z
2017-04-07T18:58:21Z
2017-04-07T18:58:29Z
DOC: Fix a typo in indexing.rst
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index bc8997b313053..f988fb7cd6806 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -69,7 +69,7 @@ Different Choices for Indexing .. versionadded:: 0.11.0 Object selection has had a number of user-requested additions in order to -su...
https://api.github.com/repos/pandas-dev/pandas/pulls/15916
2017-04-06T07:40:54Z
2017-04-06T11:35:59Z
2017-04-06T11:35:59Z
2017-04-06T12:52:41Z
DOC: Fix a typo in travis.yml
diff --git a/.travis.yml b/.travis.yml index d864b755541de..e5e05ed26da56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ python: 3.5 # set NOCACHE-true # To delete caches go to https://travis-ci.org/OWNER/REPOSITORY/caches or run # travis cache --delete inside the project directory from the travis comman...
https://api.github.com/repos/pandas-dev/pandas/pulls/15915
2017-04-06T06:55:40Z
2017-04-06T07:07:58Z
2017-04-06T07:07:58Z
2017-04-06T07:29:15Z
BUG: Standardize malformed row handling in Python engine
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index ad190671cbbdc..462341d3d692d 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -365,6 +365,7 @@ Other Enhancements - ``pandas.io.json.json_normalize()`` gained the option ``errors='ignore'|'raise'``...
Wrap `next(source)` when `source` is a file-buffer object to allow for more uniform error message displaying in the Python engine. Closes #15910.
https://api.github.com/repos/pandas-dev/pandas/pulls/15913
2017-04-06T01:53:36Z
2017-04-06T13:31:32Z
2017-04-06T13:31:32Z
2017-04-06T14:53:25Z
DEPR: correct locations to access public json/parser objects in depr message
diff --git a/pandas/__init__.py b/pandas/__init__.py index 83ad85e3e292b..529750cd97076 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -60,11 +60,15 @@ # extension module deprecations from pandas.util.depr_module import _DeprecatedModule -json = _DeprecatedModule(deprmod='pandas.json', deprmodto='panda...
Another one remaining is `pd.parser.na_values` ``` In [2]: pd.parser.na_values /home/joris/miniconda3/envs/dev/bin/ipython:1: FutureWarning: pandas.parser.na_values is deprecated. Please use pandas.io.libparsers.na_values instead. #!/home/joris/miniconda3/envs/dev/bin/python Out[2]: {numpy.bool_: 255, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/15909
2017-04-05T19:44:53Z
2017-04-07T19:04:32Z
2017-04-07T19:04:32Z
2017-04-09T08:50:21Z
DEPR: correct locations to access public tslib objects
diff --git a/pandas/__init__.py b/pandas/__init__.py index 1bc85899fb89f..83ad85e3e292b 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -64,7 +64,11 @@ parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers') lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._lib...
You got currently: ``` In [4]: pd.tslib.Timestamp /home/joris/miniconda3/envs/dev/bin/ipython:1: FutureWarning: pandas.tslib.Timestamp is deprecated. Please use pandas._libs.tslib.Timestamp instead. #!/home/joris/miniconda3/envs/dev/bin/python Out[4]: pandas._libs.tslib.Timestamp ``` and ``` In [2]:...
https://api.github.com/repos/pandas-dev/pandas/pulls/15897
2017-04-05T08:03:44Z
2017-04-05T10:59:18Z
2017-04-05T10:59:18Z
2017-04-05T10:59:21Z
DOC fixes in contributing.rst
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 467d6456d60cd..8af7de688a2ae 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -536,10 +536,10 @@ signatures and add deprecation warnings where needed. .. _contributing.ci: -Testing Thru Continuous Integration ...
xref #15883
https://api.github.com/repos/pandas-dev/pandas/pulls/15887
2017-04-04T09:36:48Z
2017-04-04T12:29:38Z
2017-04-04T12:29:38Z
2017-04-04T12:29:41Z
DOC: add section on how to use parametrize to contributing.rst
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 82f9b18c1e2eb..467d6456d60cd 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -51,14 +51,9 @@ Bug reports must: ... ``` -#. Include the full version string of *pandas* and its dependencies. In versi...
closes #15608
https://api.github.com/repos/pandas-dev/pandas/pulls/15883
2017-04-03T19:48:51Z
2017-04-03T19:49:00Z
2017-04-03T19:49:00Z
2017-04-04T09:07:31Z
DOC: update contributing.rst for ci
diff --git a/doc/source/_static/ci.png b/doc/source/_static/ci.png new file mode 100644 index 0000000000000..82985ff8c204a Binary files /dev/null and b/doc/source/_static/ci.png differ diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 83cc1777b35f6..82f9b18c1e2eb 100644 --- a/doc/source/contr...
xref #15878
https://api.github.com/repos/pandas-dev/pandas/pulls/15880
2017-04-03T17:41:10Z
2017-04-03T18:26:36Z
2017-04-03T18:26:36Z
2017-04-03T18:52:43Z
DOC: remove gbq_integration instructions from contributing.rst
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 5e551a7fd5349..83cc1777b35f6 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -616,23 +616,23 @@ Or with one of the following constructs:: pytest pandas/tests/[test-module].py::[TestClass] pytest pandas/t...
DOC: remove vbench instructions from contributing.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/15879
2017-04-03T17:25:49Z
2017-04-03T17:25:55Z
2017-04-03T17:25:55Z
2019-12-26T03:32:34Z
DOC: Fix a typo in dsintro.rst
diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index cc69367017aed..4fcb63c18757a 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -153,7 +153,7 @@ Vectorized operations and label alignment with Series ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When doing data analysis, a...
https://api.github.com/repos/pandas-dev/pandas/pulls/15877
2017-04-03T15:50:16Z
2017-04-03T16:06:46Z
2017-04-03T16:06:46Z
2017-04-03T16:21:50Z
Revert "CI: add jdcal to 3.6 build as openpyxl >= 2.4.5 is broken"
diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index 8f81c4620558e..41c9680ce1b7e 100644 --- a/ci/requirements-3.6.run +++ b/ci/requirements-3.6.run @@ -2,10 +2,7 @@ python-dateutil pytz numpy scipy -# openpyxl >= 2.4.5 should be dependent on jdcal -# but is not for some reason openpyxl -jdcal xlsx...
This reverts commit d1e1ba08ef259724ba71e0953c52e8e4ad81bd17. closes #15861
https://api.github.com/repos/pandas-dev/pandas/pulls/15875
2017-04-03T13:01:53Z
2017-04-03T13:02:00Z
2017-04-03T13:01:59Z
2017-04-03T13:02:00Z
VIS: Allow 'C0'-like plotting for plotting colors #15516
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index ad190671cbbdc..a872bcee3ed12 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -342,6 +342,7 @@ Other Enhancements - The ``skiprows`` argument in ``pd.read_csv()`` now accepts a callable function as...
- [x] closes #15516 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry Defined special case for 'CN' cases where N is 0 to 9. There may be custom color cycles that can also be parsed as a single color so the ValueError message is le...
https://api.github.com/repos/pandas-dev/pandas/pulls/15873
2017-04-03T09:02:06Z
2017-04-12T20:49:50Z
2017-04-12T20:49:49Z
2017-04-13T20:11:35Z
Support more sas7bdat date/datetime formats
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 85685ed7b430d..4f55c6388c728 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -127,6 +127,7 @@ Other Enhancements - Integration with `Apache Parquet <https://parquet.apache.org/>`__, including a ne...
updated p.r. #13089 after `origin` parameter was added by #15828 - [ v ] tests added / passed - [ .. ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/15871
2017-04-03T06:34:49Z
2017-08-18T00:52:35Z
2017-08-18T00:52:35Z
2017-08-18T00:52:43Z
COMPAT: NaT support tz_localize / tz_convert (#15830)
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index 230f39db67197..781a912555e14 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -837,6 +837,8 @@ Other API Changes ignored (no longer needed to specify the new behaviour) and is deprecated. - ``Na...
closes #15830 * add tz_convert/tz_localize methods * add tests - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
https://api.github.com/repos/pandas-dev/pandas/pulls/15868
2017-04-02T09:17:48Z
2017-04-02T21:57:01Z
2017-04-02T21:57:01Z
2017-04-02T21:57:07Z
TST: test 3.4 on windows
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 26a68b8a9ae3a..f2c0b18d35131 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -401,7 +401,8 @@ static void *PyStringToUTF8(JSOBJ _obj, JSONTypeContext *tc, vo...
BLD: bug in building json compiled code
https://api.github.com/repos/pandas-dev/pandas/pulls/15857
2017-03-31T22:22:58Z
2017-04-01T15:37:17Z
2017-04-01T15:37:17Z
2017-04-01T15:38:14Z
ENH: Citing source in README file
diff --git a/doc/cheatsheet/README.txt b/doc/cheatsheet/README.txt index e2f6ec042e9cc..d32fe5bcd05a6 100644 --- a/doc/cheatsheet/README.txt +++ b/doc/cheatsheet/README.txt @@ -2,3 +2,7 @@ The Pandas Cheat Sheet was created using Microsoft Powerpoint 2013. To create the PDF version, within Powerpoint, simply do a "Sav...
For GH users who strictly or heavily use the web-view instead of a local Git, having a direct link is handy, as it does not require downloading the PDF _if_ the user wanted to go to the source of it directly. It's an alternative that allows those interested in more uploads similar to this PDF from the same author(s). ...
https://api.github.com/repos/pandas-dev/pandas/pulls/15856
2017-03-31T20:41:11Z
2017-04-04T22:32:47Z
2017-04-04T22:32:47Z
2017-04-04T22:32:52Z
Only call validation functions when args/kwargs are passed
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index 4053994efa005..f448a9aad04c6 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -37,23 +37,24 @@ def __init__(self, defaults, fname=None, method=None, def __call__(self, args, kwargs, fname=Non...
cc @gfyoung
https://api.github.com/repos/pandas-dev/pandas/pulls/15850
2017-03-30T20:50:23Z
2017-03-31T06:40:59Z
2017-03-31T06:40:59Z
2017-10-16T09:46:05Z
COMPAT: add 0.19.2 msgpack/pickle files
diff --git a/pandas/tests/io/data/legacy_msgpack/0.19.2/0.19.2_x86_64_darwin_2.7.12.msgpack b/pandas/tests/io/data/legacy_msgpack/0.19.2/0.19.2_x86_64_darwin_2.7.12.msgpack new file mode 100644 index 0000000000000..f2dc38766025e Binary files /dev/null and b/pandas/tests/io/data/legacy_msgpack/0.19.2/0.19.2_x86_64_darwi...
https://api.github.com/repos/pandas-dev/pandas/pulls/15848
2017-03-30T14:55:43Z
2017-03-30T21:02:15Z
2017-03-30T21:02:15Z
2017-03-30T21:02:15Z
CLN: Fix a typo in comment
diff --git a/pandas/_libs/src/ujson/lib/ultrajson.h b/pandas/_libs/src/ujson/lib/ultrajson.h index d0588348baa44..4f51fa8b3eb38 100644 --- a/pandas/_libs/src/ujson/lib/ultrajson.h +++ b/pandas/_libs/src/ujson/lib/ultrajson.h @@ -233,7 +233,7 @@ typedef struct __JSONObjectEncoder { int recursionMax; /* - Config...
https://api.github.com/repos/pandas-dev/pandas/pulls/15847
2017-03-30T13:18:03Z
2017-03-30T13:20:52Z
2017-03-30T13:20:52Z
2017-03-30T13:39:26Z
DOC: prettify bug fixes section
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index 1ecdd6dd8fbef..399f91fc60810 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -913,147 +913,141 @@ Performance Improvements Bug Fixes ~~~~~~~~~ +Conversion +^^^^^^^^^^ + - Bug in ``Timestamp.re...
makes bug fixes *much* easier as its not organized.
https://api.github.com/repos/pandas-dev/pandas/pulls/15846
2017-03-30T12:46:21Z
2017-03-30T12:46:30Z
2017-03-30T12:46:30Z
2017-03-30T12:46:30Z
Fix a typo
diff --git a/pandas/sparse/sparse.pyx b/pandas/sparse/sparse.pyx index 7ab29414499fc..00d317c42b18d 100644 --- a/pandas/sparse/sparse.pyx +++ b/pandas/sparse/sparse.pyx @@ -71,7 +71,7 @@ cdef class IntIndex(SparseIndex): def check_integrity(self): """ Only need be strictly ascending and nothing l...
Fixes a small typo.
https://api.github.com/repos/pandas-dev/pandas/pulls/15844
2017-03-30T04:33:14Z
2017-03-30T11:57:01Z
2017-03-30T11:57:01Z
2017-03-30T11:57:57Z
DOC: Fix up _DeprecatedModule parameters doc
diff --git a/pandas/util/depr_module.py b/pandas/util/depr_module.py index b181c4627b1e1..af7faf9dd96c8 100644 --- a/pandas/util/depr_module.py +++ b/pandas/util/depr_module.py @@ -13,8 +13,9 @@ class _DeprecatedModule(object): Parameters ---------- deprmod : name of module to be deprecated. - deprmod...
Patches a minor doc error from #15537.
https://api.github.com/repos/pandas-dev/pandas/pulls/15843
2017-03-30T00:29:22Z
2017-03-30T11:55:17Z
2017-03-30T11:55:17Z
2017-03-31T08:32:10Z
ENH: add to/from_parquet with pyarrow & fastparquet
diff --git a/ci/install_travis.sh b/ci/install_travis.sh index dcc1656ce3dd7..df6969c7cc659 100755 --- a/ci/install_travis.sh +++ b/ci/install_travis.sh @@ -153,6 +153,7 @@ fi echo echo "[removing installed pandas]" conda remove pandas -y --force +pip uninstall -y pandas if [ "$BUILD_TEST" ]; then diff --git a/...
xref https://github.com/dask/dask/issues/2127 TODO: these are fixed, waiting for release to update tests. - [x] ``fastparquet``: [duplicate columns errors msg](https://github.com/dask/fastparquet/issues/118) - [x] ``pyarrow 0.3``: [passing dataframe with non-string object columns](https://github.com/apache/arro...
https://api.github.com/repos/pandas-dev/pandas/pulls/15838
2017-03-29T17:39:58Z
2017-08-02T09:47:58Z
2017-08-02T09:47:58Z
2017-09-06T15:05:57Z
TST: suppress some numpy warnings
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 3b77bda6f69f0..a62d290277443 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -174,7 +174,7 @@ def isin(comps, values): " to isin(), you passed a " "[{0}]".format(type(valu...
https://api.github.com/repos/pandas-dev/pandas/pulls/15811
2017-03-26T17:50:45Z
2017-03-26T18:26:50Z
2017-03-26T18:26:50Z
2017-03-26T18:27:37Z
DOC: remove warnings for .sort / .order deprecation removals
diff --git a/doc/source/whatsnew/v0.13.1.txt b/doc/source/whatsnew/v0.13.1.txt index d5d54ba43b622..5e5653945fefa 100644 --- a/doc/source/whatsnew/v0.13.1.txt +++ b/doc/source/whatsnew/v0.13.1.txt @@ -125,7 +125,7 @@ API changes df = DataFrame({'col':['foo', 0, np.nan]}) df2 = DataFrame({'col':[np.nan, 0,...
https://api.github.com/repos/pandas-dev/pandas/pulls/15808
2017-03-26T15:00:45Z
2017-03-26T15:12:19Z
2017-03-26T15:12:19Z
2017-03-26T15:12:19Z
MAINT: Remove combineAdd and combineMult
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index 0612e86134cf2..8482eef552c17 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -84,29 +84,28 @@ will be completed: @verbatim In [1]: df2.<TAB> - df2.A df2.boxplot - df2.abs df2.C - df2.add ...
Deprecated in 0.17.0. xref #10735
https://api.github.com/repos/pandas-dev/pandas/pulls/15805
2017-03-26T01:36:12Z
2017-03-26T16:58:59Z
2017-03-26T16:58:59Z
2017-03-26T20:02:49Z
DOC: Explain differences further for sep parameter
diff --git a/doc/source/io.rst b/doc/source/io.rst index a702efdc6aaf9..faeea9d448cf2 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -91,11 +91,12 @@ filepath_or_buffer : various locations), or any object with a ``read()`` method (such as an open file or :class:`~python:io.StringIO`). sep : str, defau...
Per comment in <a href="https://github.com/pandas-dev/pandas/issues/12686#issuecomment-288843261">#12686</a>. This is the only documentation issue that I found amongst the differences that still exist between the C and Python engines in `parsers.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/15804
2017-03-26T01:25:12Z
2017-03-26T17:02:46Z
2017-03-26T17:02:46Z
2017-03-26T20:02:53Z
Revert "MAINT: Remove Long and WidePanel (#15748)"
diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py index a7e530e7f5ef1..56ccc94c414fb 100644 --- a/asv_bench/benchmarks/pandas_vb_common.py +++ b/asv_bench/benchmarks/pandas_vb_common.py @@ -25,6 +25,11 @@ except: pass +try: + Panel = Panel +except Except...
This reverts commit bff47f2302a0be4dcbf7e5055e525d5652e08fb5. xref #15748 we will have to push this to a later pandas major version as statsmodels not fully compat: https://github.com/statsmodels/statsmodels/issues/3580
https://api.github.com/repos/pandas-dev/pandas/pulls/15802
2017-03-25T23:11:14Z
2017-03-26T02:16:32Z
2017-03-26T02:16:32Z
2017-03-26T02:17:11Z
Update testing.py
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index cf76f4ead77e3..9a9f3c6c6b945 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1151,7 +1151,7 @@ def assert_series_equal(left, right, check_dtype=True, Whether to compare number exactly. check_names : bool, default True ...
Tiny docs typo fix
https://api.github.com/repos/pandas-dev/pandas/pulls/15784
2017-03-22T21:12:48Z
2017-03-22T21:36:54Z
2017-03-22T21:36:54Z
2017-03-22T21:36:56Z
COMPAT: NaT accessors
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index a0b2b47c4bac3..3ab69e1ff409b 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -771,7 +771,8 @@ Other API Changes since pandas version 0.13.0 and can be done with the ``Series.str.extract`` met...
closes #15781 PR ``` In [1]: idx = DatetimeIndex(['1/1/2000', None, None, '1/4/2000']) In [2]: idx.is_month_start Out[2]: array([ True, False, False, False], dtype=bool) In [3]: idx.is_leap_year Out[3]: array([ True, False, False, True], dtype=bool) ``` 0.19.2 ``` In [1]: idx = DatetimeIndex(['1/1/2...
https://api.github.com/repos/pandas-dev/pandas/pulls/15782
2017-03-22T14:47:23Z
2017-03-27T19:22:23Z
2017-03-27T19:22:23Z
2017-03-27T19:23:35Z
COMPAT: 32-bit skips
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index b1e6bd7520c69..e9122f7a17359 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -121,7 +121,6 @@ def test_reindex_base(self): idx.get_indexer(idx, method='invalid') def test_ndarray_co...
closes #14183
https://api.github.com/repos/pandas-dev/pandas/pulls/15776
2017-03-22T00:33:54Z
2017-03-22T11:53:46Z
2017-03-22T11:53:46Z
2017-03-22T11:54:43Z
BUG: Check that values for "nrows" and "chunksize" are valid
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index eeb568c2e2558..5ac7624856040 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -815,6 +815,7 @@ Bug Fixes - Bug in ``pd.read_fwf`` where the skiprows parameter was not being respected during column ...
- [x] closes #15767 - [x] tests added / passed - [x] passes ``git diff master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/15774
2017-03-21T22:29:22Z
2017-03-22T08:03:33Z
2017-03-22T08:03:32Z
2017-03-22T08:33:23Z
DOC: Ensure basic flake8 diff checks only Python
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 918d427ee4f4c..9281c51059087 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ - [ ] closes #xxxx - [ ] tests added / passed - - [ ] passes ``git diff upstream/master | flake8 --...
Let's make sure all of the `flake8` commands in our documentation check only Python files (will be applicable to majority of contributions and PR's). Follow-up to #15749
https://api.github.com/repos/pandas-dev/pandas/pulls/15769
2017-03-21T17:56:49Z
2017-03-21T18:00:11Z
2017-03-21T18:00:11Z
2017-03-21T18:00:58Z
Adds Hamilton to match ecosystem.md
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 53b7aae3f7ab1..1d0232c80ffcc 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -600,3 +600,20 @@ Install pandas-stubs to enable basic type coverage of pandas API. Learn more by reading through :issue:`14468`, :issue:`26766`, :...
Just noticed that ecosystem.rst wasn't in sync with ecosystem.md. So adding part about Hamilton to it. - [ ] 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 addi...
https://api.github.com/repos/pandas-dev/pandas/pulls/51694
2023-02-28T16:12:48Z
2023-03-08T00:04:43Z
2023-03-08T00:04:43Z
2023-03-14T03:29:58Z
BUG: DataFrame.stack losing EA dtypes with multi-columns and mixed dtypes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 47a61d41b2440..29e681b1b85d1 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -202,6 +202,7 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ +- Bug in :meth:`DataFrame.stack` losing extension dtypes ...
- [x] closes #45740 - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/51691
2023-02-28T12:17:23Z
2023-03-09T17:13:54Z
2023-03-09T17:13:54Z
2023-03-17T22:04:19Z
CLN: rename confusing variable name
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 81fd5792ee9e5..5cc5c6514a2e0 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -752,7 +752,7 @@ def is_monotonic(ndarray[numeric_object_t, ndim=1] arr, bint timelike): tuple is_monotonic_inc : bool is_monotonic_d...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51690
2023-02-28T10:59:02Z
2023-03-02T23:38:14Z
2023-03-02T23:38:13Z
2023-03-03T12:25:17Z
BUG: mask/where raising for mixed dtype frame and no other
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 821e41db6b065..25af8400281c7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6123,8 +6123,8 @@ def _is_mixed_type(self) -> bool_t: def _check_inplace_setting(self, value) -> bool_t: """check whether we allow in-place s...
- [x] closes #51685 (Replace xxxx with the GitHub issue number) - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/51689
2023-02-28T10:57:00Z
2023-03-08T21:44:54Z
2023-03-08T21:44:54Z
2023-03-08T23:46:13Z
BUG: ArrowExtensionArray logical ops raising KeyError
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e09f3e2753ee6..15e3d66ecc551 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1371,6 +1371,7 @@ ExtensionArray - Bug in :class:`Series` constructor unnecessarily overflowing for nullable unsigned inte...
- [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51688
2023-02-28T10:25:57Z
2023-03-06T23:43:21Z
2023-03-06T23:43:21Z
2023-03-17T22:04:30Z
STYLE start enabling TCH
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 4d87e8dca6d16..0149ea545a4c5 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -66,10 +66,8 @@ ) import warnings -from pandas._typing import ( - F, - T, -) +from pandas._typing import F # noqa: TCH001 +from pandas._t...
This one should actually make a difference to performance, https://github.com/snok/flake8-type-checking#examples - [ ] 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 b...
https://api.github.com/repos/pandas-dev/pandas/pulls/51687
2023-02-28T10:19:54Z
2023-03-02T09:04:42Z
2023-03-02T09:04:42Z
2023-03-02T14:21:36Z
DOC: fix EX02 errors for three docstrings in plotting
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2d5e9cc031158..865f6d46cfee0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -564,9 +564,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_datetime64_any_dtype \ pandas.api.types.is_datetime64_ns_dtype \ ...
Some work towards issue https://github.com/pandas-dev/pandas/issues/51236 Makes docstrings pass for: `pandas.plotting.andrews_curves` `pandas.plotting.autocorrelation_plot` `pandas.plotting.lag_plot` Some prior conversation happened here ... https://github.com/pandas-dev/pandas/pull/51596 ... because I acciden...
https://api.github.com/repos/pandas-dev/pandas/pulls/51686
2023-02-28T06:10:10Z
2023-02-28T07:35:46Z
2023-02-28T07:35:46Z
2023-02-28T07:35:46Z
Updates Hamilton references
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index 861f3bd8e1ea7..935ef12694a52 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -401,7 +401,7 @@ Learn more by reading through these issues [14468](https://github.com/pandas-dev See install...
This updates a reference on the ecosystem page. We recently moved the repository and updated what is used for documentation. - [ ] 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 f...
https://api.github.com/repos/pandas-dev/pandas/pulls/51682
2023-02-27T23:32:03Z
2023-02-28T10:54:36Z
2023-02-28T10:54:36Z
2023-02-28T15:52:26Z
Backport PR #51658 on branch 2.0.x (ENH: Improve replace lazy copy handling)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 35a7855b8240f..7a24649fc60af 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -714,6 +714,8 @@ def replace_list( (x, y) for x, y in zip(src_list, dest_list) if self._can_hold_element(x)...
Backport PR #51658: ENH: Improve replace lazy copy handling
https://api.github.com/repos/pandas-dev/pandas/pulls/51679
2023-02-27T21:53:34Z
2023-02-27T23:36:29Z
2023-02-27T23:36:29Z
2023-02-27T23:36:30Z
BUG: ArrowDtype().type raising for fixed size pa binary
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py index e8adab019b097..b6515c2875718 100644 --- a/pandas/core/arrays/arrow/dtype.py +++ b/pandas/core/arrays/arrow/dtype.py @@ -108,7 +108,11 @@ def type(self): return float elif pa.types.is_string(pa_type): ...
- [ ] 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/51674
2023-02-27T13:59:26Z
2023-03-04T01:28:36Z
2023-03-04T01:28:36Z
2023-03-08T21:23:09Z
ENH: Support na_position for sort_index and sortlevel
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 12d35288d1ee6..e6a114b491670 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -28,6 +28,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- :meth:`MultiIndex.sortlevel` and :meth:`Index.sortl...
- [x] closes #51612 (Replace xxxx with the GitHub issue number) - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/51672
2023-02-27T13:29:15Z
2023-03-08T00:10:53Z
2023-03-08T00:10:53Z
2023-08-15T22:13:28Z
CLN: Ensure that setitem ops don't coerce values
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d80c80fa5d0ab..dbbe2c0751f3a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4757,6 +4757,14 @@ def insert( if not isinstance(loc, int): raise TypeError("loc must be int") + if isinstance(value, DataFrame) and...
- [ ] 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/51671
2023-02-27T11:45:48Z
2023-02-28T10:24:36Z
2023-02-28T10:24:36Z
2023-02-28T10:24:40Z
ENH: Add CoW mechanism to replace_regex
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f9a14a4a9e877..20e986b75a099 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -651,6 +651,7 @@ def _replace_regex( value, inplace: bool = False, mask=None, + using_...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51669
2023-02-27T10:48:51Z
2023-03-01T12:19:57Z
2023-03-01T12:19:57Z
2023-03-01T12:32:00Z
WEB: Added stying for pre element within the codeblock divs
diff --git a/web/pandas/static/css/codehilite.css b/web/pandas/static/css/codehilite.css index 4642fc0378008..4a0078e141d87 100644 --- a/web/pandas/static/css/codehilite.css +++ b/web/pandas/static/css/codehilite.css @@ -72,3 +72,4 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: .cod...
- [x] closes ##51657 (Replace xxxx with the GitHub issue number) - ENH: Enhancement, adding styling (padding and border) for code blocks
https://api.github.com/repos/pandas-dev/pandas/pulls/51665
2023-02-27T05:03:27Z
2023-03-07T11:47:37Z
2023-03-07T11:47:37Z
2023-03-07T11:48:07Z
Backport PR #51660 on branch 2.0.x (DEPS: Bump Cython to 0.29.33)
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 16f8f28b66d31..c503ae5e17471 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -42,7 +42,7 @@ // followed by the pip installed packages). "matrix": { "numpy": [], - "Cython": ["0.29.32"], + "Cython"...
Backport PR #51660: DEPS: Bump Cython to 0.29.33
https://api.github.com/repos/pandas-dev/pandas/pulls/51663
2023-02-27T02:12:09Z
2023-02-27T10:52:50Z
2023-02-27T10:52:50Z
2023-02-27T10:52:50Z
Backport PR #51517 on branch 2.0.x (PERF: maybe_convert_objects convert_numeric=False)
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 1f6ae49b76adc..fbc577712d294 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -71,6 +71,7 @@ def maybe_convert_objects( *, try_float: bool = ..., safe: bool = ..., + convert_numeric: bool = ..., convert_datetime: Litera...
Backport PR #51517: PERF: maybe_convert_objects convert_numeric=False
https://api.github.com/repos/pandas-dev/pandas/pulls/51661
2023-02-27T01:05:34Z
2023-02-27T12:53:51Z
2023-02-27T12:53:51Z
2023-02-27T12:53:51Z
DEPS: Bump Cython to 0.29.33
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 16f8f28b66d31..c503ae5e17471 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -42,7 +42,7 @@ // followed by the pip installed packages). "matrix": { "numpy": [], - "Cython": ["0.29.32"], + "Cython"...
- [ ] 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/51660
2023-02-27T00:27:40Z
2023-02-27T02:12:01Z
2023-02-27T02:12:01Z
2023-02-27T02:12:03Z
ENH: Improve replace lazy copy for categoricals
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 7a24649fc60af..2cfab63f8a63f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -701,8 +701,7 @@ def replace_list( # TODO: avoid special-casing # GH49404 if usin...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51659
2023-02-27T00:03:13Z
2023-02-28T22:44:20Z
2023-02-28T22:44:20Z
2023-02-28T22:44:31Z
ENH: Improve replace lazy copy handling
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 35a7855b8240f..7a24649fc60af 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -714,6 +714,8 @@ def replace_list( (x, y) for x, y in zip(src_list, dest_list) if self._can_hold_element(x)...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51658
2023-02-26T23:50:36Z
2023-02-27T21:53:01Z
2023-02-27T21:53:01Z
2023-06-27T02:10:44Z
WEB: Sort and fix link to under discussions PDEPs
diff --git a/web/pandas_web.py b/web/pandas_web.py index e4ffa2cde7cc9..954018a81683f 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -301,9 +301,9 @@ def roadmap_pdeps(context): with open(pathlib.Path(context["target_path"]) / "pdeps.json", "w") as f: json.dump(pdeps, f) - for ...
The links to the under discussion PDEPs in https://pandas.pydata.org/about/roadmap.html point to the API page, not the html page, fixing. Also, sorting the list by title.
https://api.github.com/repos/pandas-dev/pandas/pulls/51656
2023-02-26T22:14:31Z
2023-02-27T00:47:04Z
2023-02-27T00:47:04Z
2023-02-27T00:47:08Z
Backport PR #51654 on branch 2.0.x (DOC: Remove 1.5.4 release notes)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 69f845096ea24..821f77dbba3e2 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,7 +24,6 @@ Version 1.5 .. toctree:: :maxdepth: 2 - v1.5.4 v1.5.3 v1.5.2 v1.5.1 diff --git a/doc/source/...
Backport PR #51654: DOC: Remove 1.5.4 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/51655
2023-02-26T22:01:32Z
2023-02-27T00:28:10Z
2023-02-27T00:28:10Z
2023-02-27T00:28:11Z
DOC: Remove 1.5.4 release notes
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 0044734b5ff99..568c19c57aee0 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -32,7 +32,6 @@ Version 1.5 .. toctree:: :maxdepth: 2 - v1.5.4 v1.5.3 v1.5.2 v1.5.1 diff --git a/doc/source/...
xref https://github.com/pandas-dev/pandas/issues/46776#issuecomment-1440748034
https://api.github.com/repos/pandas-dev/pandas/pulls/51654
2023-02-26T19:04:29Z
2023-02-26T22:01:24Z
2023-02-26T22:01:24Z
2023-02-26T22:01:34Z
Backport PR #50918 on branch 2.0.x (ENH: Optimize replace to avoid copying when not necessary)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 9b435aa31bd16..35a7855b8240f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -552,6 +552,7 @@ def replace( inplace: bool = False, # mask may be pre-computed if we're called from r...
Backport PR #50918: ENH: Optimize replace to avoid copying when not necessary
https://api.github.com/repos/pandas-dev/pandas/pulls/51652
2023-02-26T18:42:34Z
2023-02-26T22:01:48Z
2023-02-26T22:01:48Z
2023-02-26T22:01:49Z
ENH: Add na_position support to midx.sort_values
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index fc09f3d5853a2..23e06b8f0af6e 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -28,6 +28,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- :meth:`MultiIndex.sort_values` now supports ``na_po...
- [ ] xref #51612 (Replace xxxx with the GitHub issue number) - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51651
2023-02-26T18:07:14Z
2023-03-08T21:51:23Z
2023-03-08T21:51:23Z
2023-03-08T23:45:50Z
Backport PR #51239 on branch 2.0.x (API / CoW: constructing DataFrame from DataFrame/BlockManager creates lazy copy)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index caacf8a5b9f43..2e7a9ca452607 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -246,6 +246,10 @@ Copy-on-Write improvements a modification to the data happens) when constructing a Series from an exist...
Backport PR #51239: API / CoW: constructing DataFrame from DataFrame/BlockManager creates lazy copy
https://api.github.com/repos/pandas-dev/pandas/pulls/51650
2023-02-26T17:43:41Z
2023-02-26T20:20:03Z
2023-02-26T20:20:03Z
2023-02-26T20:20:03Z
WEB: Fix blog links
diff --git a/web/pandas/community/blog/index.html b/web/pandas/community/blog/index.html index 154d9cccdb7dc..6f0bee2e11407 100644 --- a/web/pandas/community/blog/index.html +++ b/web/pandas/community/blog/index.html @@ -4,10 +4,10 @@ {% for post in blog.posts %} <div class="card"> <div class...
Supersedes #51637 Fix the links in the blog.
https://api.github.com/repos/pandas-dev/pandas/pulls/51649
2023-02-26T17:41:02Z
2023-02-26T20:20:49Z
2023-02-26T20:20:49Z
2023-02-26T20:20:54Z
EHN: allow for to_sql `multi` method with oracle backend
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ea7850b6f2a5f..cbf409cd24246 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -74,6 +74,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- :meth:`to_sql` with method parameter set to ``multi...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in the latest `doc/source/whatsnew/v2.2.0.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/51648
2023-02-26T14:00:59Z
2023-10-18T00:36:06Z
2023-10-18T00:36:06Z
2023-10-18T00:36:06Z
ENH: add na_action to Categorical.map & CategoricalIndex.map
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 38faf90f1de74..5646aa5947bee 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -28,6 +28,9 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- :meth:`Categorical.map` and :meth:`CategoricalIndex...
- [x] closes #44279 - [x] closes #22527 - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.htm...
https://api.github.com/repos/pandas-dev/pandas/pulls/51645
2023-02-26T06:56:51Z
2023-03-30T16:10:51Z
2023-03-30T16:10:51Z
2023-03-30T16:29:46Z
API: ArrowExtensionArray._cmp_method to return pyarrow.bool_ type
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 47a61d41b2440..10f735abf0e18 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -86,7 +86,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^^^...
- [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51643
2023-02-26T01:13:51Z
2023-03-09T17:11:48Z
2023-03-09T17:11:48Z
2023-03-17T22:04:20Z
Backport PR #51626 on branch 2.0.x (DOC: Improvements to groupby.rst)
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 2fdd36d861e15..15baedbac31ba 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -36,9 +36,22 @@ following: * Discard data that belongs to groups with only a few members. * Filter out...
Backport PR #51626: DOC: Improvements to groupby.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/51642
2023-02-26T00:24:03Z
2023-02-26T03:05:27Z
2023-02-26T03:05:27Z
2023-02-26T03:05:28Z
COMPAT: Update code for latest Cython 3 beta
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 0b42a71c8c13b..951cf24c2168d 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -15,9 +15,6 @@ on: - "doc/**" - "web/**" -env: - PANDAS_CI: 1 - permissions: contents: read @@ -33,6 +30,7 @@...
- [ ] 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/51640
2023-02-25T23:40:50Z
2023-03-01T22:54:28Z
2023-03-01T22:54:28Z
2023-03-10T18:21:20Z
Backport PR #51411 on branch 2.0.x (ENH: Optimize CoW for fillna with ea dtypes)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 1aba48371b430..9b435aa31bd16 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1758,9 +1758,14 @@ def fillna( downcast=downcast, using_cow=using_cow, )...
Backport PR #51411: ENH: Optimize CoW for fillna with ea dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/51639
2023-02-25T22:47:02Z
2023-02-26T00:23:07Z
2023-02-26T00:23:07Z
2023-02-26T00:23:07Z
CI: Don't run tests when web folder is updated
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index bc6ecd7c5e5d0..647dcf715c956 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -13,6 +13,7 @@ on: - 1.5.x paths-ignore: - "doc/**" + - "web/**" env: PAND...
- [ ] 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/51638
2023-02-25T22:42:20Z
2023-02-26T08:16:48Z
2023-02-26T08:16:48Z
2023-02-28T23:40:34Z
Backport PR #51571 on branch 2.0.x (ENH: DataFrame.fillna making deep copy for dict arg)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 81d15de4f833a..65f76f7e295a6 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6876,8 +6876,10 @@ def fillna( "with dict/Series column " "by column" ) - - ...
Backport PR #51571: ENH: DataFrame.fillna making deep copy for dict arg
https://api.github.com/repos/pandas-dev/pandas/pulls/51636
2023-02-25T17:45:38Z
2023-02-25T20:52:52Z
2023-02-25T20:52:52Z
2023-02-25T20:52:53Z
PERF: ArrowExtensionArray.fillna when array does not contains any nulls
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c6783e46faaee..3f898ca23bd6f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -120,6 +120,7 @@ Performance improvements - Performance improvement in :func:`read_parquet` and :meth:`DataFrame.to_parquet...
- [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51635
2023-02-25T17:06:20Z
2023-03-17T23:46:30Z
2023-03-17T23:46:30Z
2023-03-18T11:01:29Z
DOC trying to improve readability of example
diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 3ecee50ffbaa7..c4b804de6a110 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -455,12 +455,14 @@ class CSSWarning(UserWarning): Examples -------- >>> df = pd.DataFrame({'A': [1, 1, 1]}) - >>> (df.style.ap...
- [ ] 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/51634
2023-02-25T16:28:42Z
2023-02-25T17:40:38Z
2023-02-25T17:40:38Z
2023-02-26T09:29:34Z
Backport PR #51627 on branch 2.0.x (BUG: Change default of group_keys to True)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 906535377e80f..70f39956c6676 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8208,7 +8208,7 @@ def groupby( level: IndexLabel | None = None, as_index: bool = True, sort: bool = True, - group_keys: bool | li...
Backport PR #51627: BUG: Change default of group_keys to True
https://api.github.com/repos/pandas-dev/pandas/pulls/51632
2023-02-25T15:26:07Z
2023-02-25T17:33:31Z
2023-02-25T17:33:31Z
2023-02-25T17:33:31Z
BUG: Series.any and Series.all for empty or all-null pyarrow-backed dtypes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index cb72b68fd319b..fd7593737387f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -199,7 +199,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ -- +- Bug in :meth:`Series.any` and :meth:`Series.all` returning `...
- [x] closes #51624 - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/51631
2023-02-25T15:19:14Z
2023-02-25T21:23:14Z
2023-02-25T21:23:14Z
2023-03-17T22:04:33Z
PERF: ArrowExtensionArray.isna when zero nulls or all nulls
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index ac6ac6f576891..f3eaa3f114b72 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -444,6 +444,22 @@ def time_dropna_axis_mixed_dtypes(self, how, axis): self.df_mixed.dro...
- [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51630
2023-02-25T14:32:05Z
2023-02-25T17:37:06Z
2023-02-25T17:37:06Z
2023-03-17T22:04:35Z
BUG: Change default of group_keys to True
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dd37b94b6428b..05c2348043701 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8211,7 +8211,7 @@ def groupby( level: IndexLabel | None = None, as_index: bool = True, sort: bool = True, - group_keys: bool | li...
- [ ] 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/51627
2023-02-25T03:24:16Z
2023-02-25T15:25:40Z
2023-02-25T15:25:40Z
2023-02-25T15:44:47Z
DOC: Improvements to groupby.rst
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 2fdd36d861e15..15baedbac31ba 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -36,9 +36,22 @@ following: * Discard data that belongs to groups with only a few members. * Filter out...
- [x] closes #46415 (Replace xxxx with the GitHub issue number) - [x] [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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/51626
2023-02-25T02:48:22Z
2023-02-26T00:23:54Z
2023-02-26T00:23:54Z
2023-03-02T01:02:44Z
ENH: use native filesystem (if available) for read_orc
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 3b24310014ff8..839ab8d50df43 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -103,7 +103,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.first_valid_index` and :meth:`DataF...
Similar to https://github.com/pandas-dev/pandas/pull/51609
https://api.github.com/repos/pandas-dev/pandas/pulls/51623
2023-02-24T23:35:16Z
2023-02-25T21:49:51Z
2023-02-25T21:49:51Z
2023-02-25T21:51:43Z
REF: remove iterate_slices
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 499bef2b61046..3dfad7f172cda 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -15,7 +15,6 @@ Any, Callable, Hashable, - Iterable, Literal, Mapping, NamedTuple, @@ -1337,...
- [ ] 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/51622
2023-02-24T23:15:10Z
2023-02-25T20:56:51Z
2023-02-25T20:56:51Z
2023-02-25T21:14:05Z
Backport PR #51542 on branch 2.0.x (API: ArrowExtensionArray.value_counts returns pyarrow.int64 type)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 58c6b51752b26..caacf8a5b9f43 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -818,6 +818,7 @@ Other API changes - :class:`DataFrame` and :class:`DataFrameGroupBy` aggregations (e.g. "sum") with object...
Backport PR #51542: API: ArrowExtensionArray.value_counts returns pyarrow.int64 type
https://api.github.com/repos/pandas-dev/pandas/pulls/51620
2023-02-24T22:21:59Z
2023-02-25T01:52:36Z
2023-02-25T01:52:36Z
2023-02-25T01:52:37Z
Backport PR #51514 on branch 2.0.x (DOC: object_dtype_tzaware_strings.atype(dt64) raises)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e2705b353858b..94604fd843df1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1214,6 +1214,7 @@ Datetimelike - Bug in :func:`DataFrame.from_records` when given a :class:`DataFrame` input with timezone...
Backport PR #51514: DOC: object_dtype_tzaware_strings.atype(dt64) raises
https://api.github.com/repos/pandas-dev/pandas/pulls/51619
2023-02-24T19:49:41Z
2023-02-24T21:57:09Z
2023-02-24T21:57:09Z
2023-02-24T21:57:10Z
Backport PR #51585 on branch 2.0.x (BUG: not broadcasting when setting empty object)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e2705b353858b..8896799ffa613 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1276,6 +1276,7 @@ Indexing - Bug in :meth:`DataFrame.sort_values` where ``None`` was not returned when ``by`` is empty lis...
Backport PR #51585: BUG: not broadcasting when setting empty object
https://api.github.com/repos/pandas-dev/pandas/pulls/51618
2023-02-24T19:13:31Z
2023-02-24T21:16:47Z
2023-02-24T21:16:47Z
2023-02-24T21:16:47Z
Backport PR #51605 on branch 2.0.x (REGR: MultiIndex.isin with empty iterable raising)
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 92cb7b5fd5f47..b381752818ba0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -3748,6 +3748,8 @@ def delete(self, loc) -> MultiIndex: @doc(Index.isin) def isin(self, values, level=None) -> npt.NDArray...
Backport PR #51605: REGR: MultiIndex.isin with empty iterable raising
https://api.github.com/repos/pandas-dev/pandas/pulls/51617
2023-02-24T18:55:20Z
2023-02-24T21:16:22Z
2023-02-24T21:16:21Z
2023-02-24T21:16:22Z