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
Promote some code consistency in type testing methods
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py index a06ff5b492879..fd9ef5d2e319a 100644 --- a/pandas/core/categorical.py +++ b/pandas/core/categorical.py @@ -10,7 +10,6 @@ from pandas.core.algorithms import factorize from pandas.core.base import PandasObject, PandasDelegate from pandas.core.in...
https://api.github.com/repos/pandas-dev/pandas/pulls/9498
2015-02-16T00:52:53Z
2015-02-16T00:53:41Z
2015-02-16T00:53:41Z
2015-02-16T00:53:41Z
ENH Read Stata dta file incrementally
diff --git a/doc/source/io.rst b/doc/source/io.rst index e71b4134f5b9c..c4865fddb099b 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -3821,22 +3821,41 @@ outside of this range, the variable is cast to ``int16``. Reading from Stata format ~~~~~~~~~~~~~~~~~~~~~~~~~ -The top-level function ``read_stata`` wi...
This PR adds a get_chunk method to StataReader to allow files to be read incrementally. This is quite useful when processing large files that can barely fit into memory. The interface is modeled after the analogous method in TextFileReader. There are some limitations when incrementally converting categoricals in pre...
https://api.github.com/repos/pandas-dev/pandas/pulls/9493
2015-02-15T04:30:17Z
2015-03-05T23:26:19Z
2015-03-05T23:26:19Z
2015-11-12T23:44:19Z
BUG: unstack with nulls & Timedelta/DateTime index
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index cd7cdbb645686..a7ea85685bdaf 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -205,6 +205,7 @@ Bug Fixes - Bug in left ``join`` on multi-index with ``sort=True`` or null values (:issue:`9210`). - ...
xref https://github.com/pydata/pandas/pull/9292#discussion_r24620887 on branch: ``` >>> df a b c 0 2014-02-01 -1 days 100 1 NaT NaT 101 2 2014-02-03 1 days 102 3 NaT 2 days 103 4 2014-02-05 NaT 104 5 2014-02-06 4 days 105 >>> df.pivot('a', 'b', 'c').fillna('-') b ...
https://api.github.com/repos/pandas-dev/pandas/pulls/9491
2015-02-14T14:21:58Z
2015-02-16T12:30:41Z
2015-02-16T12:30:41Z
2015-03-06T02:53:33Z
CLN: import packers/gbq/html only on-demand (GH9482)
diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index 572a8be5c65e8..225adaf6803a6 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -13,7 +13,7 @@ from pandas.tools.merge import concat from pandas.core.common import PandasError - +_IMPORTS = False _GOOGLE_API_CLIENT_INSTALLED = False _GOOGLE_API_CLIENT_VA...
closes #9482 so a 30% reduction in import time ``` [jreback-~/pandas] time python -c 'import pandas' 0.788u 0.120s 0:00.91 98.9% 0+0k 0+7io 0pf+0w [jreback-~/pandas] time python -c 'import pandas' 0.782u 0.115s 0:00.91 97.8% 0+0k 0+0io 0pf+0w [jreback-~/pandas] time python -c 'import pandas' 0.790u 0.121s 0:0...
https://api.github.com/repos/pandas-dev/pandas/pulls/9487
2015-02-13T23:09:53Z
2015-02-24T11:14:34Z
2015-02-24T11:14:34Z
2015-02-24T11:14:35Z
BUG: bug in sort for grouping with a categorical columns (GH8868)
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index c12513e087619..e75e7d8d23d13 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -307,3 +307,4 @@ Bug Fixes - Bug in ``read_csv`` with buffer overflows with certain malformed input files (:issue:`9205...
Closes #8868 hack. I can add tests if this passes the CI and we think this should be taken further.
https://api.github.com/repos/pandas-dev/pandas/pulls/9480
2015-02-12T23:44:58Z
2015-02-18T11:27:50Z
2015-02-18T11:27:50Z
2015-02-21T13:03:58Z
BUG: bug in partial setting of with a DatetimeIndex (GH9478)
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 3fa48c7e9a1fc..83d24cc081755 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -186,7 +186,7 @@ Bug Fixes - Bug in Panel indexing with an object-like (:issue:`9140`) - Bug in the returned ``Series....
closes #9478
https://api.github.com/repos/pandas-dev/pandas/pulls/9479
2015-02-12T22:29:18Z
2015-02-13T20:22:23Z
2015-02-13T20:22:23Z
2015-02-13T20:22:24Z
BUG: binary operator method alignment with integer level (GH9463)
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 0234a0dab8e28..bd5ffca3f8ecc 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -228,7 +228,7 @@ Bug Fixes - +- Bug in binary operator method (eg ``.mul()``) alignment with integer levels (:issu...
Closes #9463 @jreback also related to #6682 (I removed 'join compat' introduced in that PR, as this worked only for level names, and passing `level=level` works for both level names and integer level numbers)
https://api.github.com/repos/pandas-dev/pandas/pulls/9475
2015-02-12T16:34:48Z
2015-02-23T11:46:54Z
2015-02-23T11:46:54Z
2015-02-23T11:46:54Z
BUG: fix common.is_hashable for NumPy scalars on Python 3
diff --git a/pandas/core/common.py b/pandas/core/common.py index f8f5928ca7d51..d2c0406d87310 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -2537,13 +2537,13 @@ def is_hashable(arg): >>> is_hashable(a) False """ - # don't consider anything not collections.Hashable, so as not to bro...
Fixes #9276 This now relies entirely on the result of calling `hash` on the argument. Note: I had to change the test for old style classes on Python 2 -- these are now considered hashable by `is_hashable`, because they don't fail `hash`. CC @aevri
https://api.github.com/repos/pandas-dev/pandas/pulls/9473
2015-02-12T04:44:08Z
2015-02-16T21:53:33Z
2015-02-16T21:53:33Z
2015-02-16T21:53:34Z
BUG: Bug in Categorical.__getitem__/__setitem__ with listlike input getting incorrect result from indexer coercion (GH9469)
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 9395d730d99ee..3fa48c7e9a1fc 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -185,7 +185,7 @@ Bug Fixes - Fixed compatibility issue in ``DatetimeIndex`` affecting architectures where ``numpy.int_`...
closes #9469
https://api.github.com/repos/pandas-dev/pandas/pulls/9470
2015-02-11T21:32:22Z
2015-02-12T19:23:50Z
2015-02-12T19:23:50Z
2015-02-12T19:23:50Z
TST: Remove assertEquals
diff --git a/pandas/tests/test_categorical.py b/pandas/tests/test_categorical.py index 3bcec19b14340..4ba2d5e9acd53 100644 --- a/pandas/tests/test_categorical.py +++ b/pandas/tests/test_categorical.py @@ -1457,7 +1457,7 @@ def test_describe(self): # Categoricals should not show up together with numerical col...
Same as #7165. I've also added some of these tests :( One idea to prevent this is to override ``tm.TestCase.assertEquals` to raise more explicit warning or exception.
https://api.github.com/repos/pandas-dev/pandas/pulls/9465
2015-02-11T12:24:36Z
2015-02-16T12:56:08Z
2015-02-16T12:56:08Z
2015-03-31T13:31:50Z
BUG: subplots with layout kw may show unnecessary warning
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 238a838cf727e..3bb035a1c757b 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -237,6 +237,7 @@ Bug Fixes - Bug in boxplot, scatter and hexbin plot may show an unnecessary warning (:issue:`8877`...
Related to #8877 and #9278. There is remaining case which shows unnecessary warning. Occurrence condition: - `subplots=True`. - `layout` is specified larger than the number of required subplot axes. In this case, `legend` is called against blank axes and results in warning.
https://api.github.com/repos/pandas-dev/pandas/pulls/9464
2015-02-11T12:12:41Z
2015-03-05T23:27:56Z
2015-03-05T23:27:56Z
2015-03-31T13:31:53Z
Fix bug in multiindex series groupby where sort argument is ignored
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 238a838cf727e..9395d730d99ee 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -268,3 +268,4 @@ Bug Fixes - Bug in ``read_csv`` with buffer overflows with certain malformed input files (:issue:`92...
PR as per. One test added. Test fails without the fix. closes https://github.com/pydata/pandas/issues/9444
https://api.github.com/repos/pandas-dev/pandas/pulls/9461
2015-02-10T22:23:29Z
2015-02-11T14:19:34Z
2015-02-11T14:19:34Z
2015-02-11T14:19:38Z
ENH Read mutiple excel sheets in single API call
diff --git a/doc/source/io.rst b/doc/source/io.rst index f8fe6fc8a4c3a..ff031ccc88ddf 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1949,56 +1949,106 @@ module and use the same parsing code as the above to convert tabular data into a DataFrame. See the :ref:`cookbook<cookbook.excel>` for some advanced st...
Enables reading of multiple excel sheets in a single API call, reducing read time substantially. Essentially, 2O(n) becomes O(1) + O(n). ## Before ``` python dfs = {} for sheet in [‘Sheet1’,’Sheet2’,’Sheet3’]: #We have to open the file 3 times = Super Slow dfs[sheet] = pd.read_excel("TestData.xlsx",sheetname...
https://api.github.com/repos/pandas-dev/pandas/pulls/9450
2015-02-09T11:53:24Z
2015-02-23T12:52:09Z
2015-02-23T12:52:09Z
2015-02-24T00:52:59Z
PERF: performance improvement in MultiIndex.sortlevel
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 0234a0dab8e28..8a8e3db83a583 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -175,6 +175,7 @@ Performance - Performance improvement of up to 20x in ``DataFrame.count`` when using a ``MultiIndex`` ...
``` ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- multiindex_sortlevel_int64 | 664.1977 | 2443.2590 | 0.27...
https://api.github.com/repos/pandas-dev/pandas/pulls/9445
2015-02-08T20:10:45Z
2015-02-16T12:33:49Z
2015-02-16T12:33:49Z
2015-03-05T12:48:28Z
BUG: scatter_matrix draws incorrect axis
diff --git a/doc/source/whatsnew/v0.16.1.txt b/doc/source/whatsnew/v0.16.1.txt index 55922091556c1..ca316bbac8474 100644 --- a/doc/source/whatsnew/v0.16.1.txt +++ b/doc/source/whatsnew/v0.16.1.txt @@ -58,9 +58,11 @@ Performance Improvements Bug Fixes ~~~~~~~~~ -- Fixed bug (:issue:`9542`) where labels did not appea...
Closes #5662. Refactored a little. Made examples to confirm 1st and 2nd row's yaxis are identical. ``` import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(100, 3)) df[0] = df[1] pd.tools.plotting.scatter_matrix(df) ``` ![figure_1](https://cloud.githubusercontent.com/assets/1696302/6092365/63f4ce...
https://api.github.com/repos/pandas-dev/pandas/pulls/9441
2015-02-07T14:12:40Z
2015-03-31T21:06:09Z
2015-03-31T21:06:09Z
2015-04-01T03:27:26Z
PERF: Move Period class and related functions to Cython module
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index c12513e087619..63606cb830cbe 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -208,6 +208,7 @@ Performance - Performance and memory usage improvements in ``merge`` when key space exceeds ``int64`` ...
I propose that Period should be a more basic type, like Timestamp. I wanted to start with implementing frequencies with multipliers (see issue #7811), but the code for Period was all over the place. So, I moved all code directly related to Period to a Cython module. Changed a bit of the logic to make calls from Cytho...
https://api.github.com/repos/pandas-dev/pandas/pulls/9440
2015-02-07T10:30:59Z
2015-02-17T14:33:06Z
2015-02-17T14:33:06Z
2015-02-17T14:38:12Z
ENH: Add StringMethods.isnumeric and isdecimal
diff --git a/doc/source/api.rst b/doc/source/api.rst index abf0c235db895..fa898a95e6694 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -559,6 +559,8 @@ strings and apply several methods to it. These can be acccessed like Series.str.islower Series.str.isupper Series.str.istitle + Series.str.is...
Derived from #9111.
https://api.github.com/repos/pandas-dev/pandas/pulls/9439
2015-02-06T22:47:18Z
2015-02-10T14:14:19Z
2015-02-10T14:14:19Z
2015-02-11T10:41:58Z
DOC: Clarify definition of kurtosis used
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b2adfae744db7..f454af5df9c90 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3998,7 +3998,9 @@ def stat_func(self, axis=None, skipna=None, level=None, nanops.nanskew) cls.kurt = _make_stat_function( ...
Added explation that kurtosis returned is Fisher's kurtosis, also known as excess kurtosis. Also cleans up the kurtosis function to remove some unused computations.
https://api.github.com/repos/pandas-dev/pandas/pulls/9437
2015-02-06T21:32:39Z
2015-02-10T14:16:52Z
2015-02-10T14:16:52Z
2015-06-04T20:46:54Z
PERF: performance improvements in multi-key groupby
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index e8b398aec4b74..0234a0dab8e28 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -174,6 +174,7 @@ Performance - Performance improvement of up to 10x in ``DataFrame.count`` and ``DataFrame.dropna`` by ...
``` ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- groupby_multi_index | 1008.6970 | 1861.1110 | 0.5...
https://api.github.com/repos/pandas-dev/pandas/pulls/9429
2015-02-06T00:38:58Z
2015-02-07T12:44:31Z
2015-02-07T12:44:31Z
2015-02-07T13:05:53Z
ENH: Don't infer WOM-5MON if we don't support it (#9425)
diff --git a/doc/source/whatsnew/v0.17.0.txt b/doc/source/whatsnew/v0.17.0.txt index 9b87c6c1332ab..93c34898a394d 100644 --- a/doc/source/whatsnew/v0.17.0.txt +++ b/doc/source/whatsnew/v0.17.0.txt @@ -89,3 +89,4 @@ Bug Fixes - Bug in GroupBy.get_group raises ValueError when group key contains NaT (:issue:`6992`) +...
closes #9425
https://api.github.com/repos/pandas-dev/pandas/pulls/9427
2015-02-05T23:47:57Z
2015-05-30T21:28:14Z
2015-05-30T21:28:14Z
2015-06-02T19:26:59Z
Fix truncated Index monotonic documentation
diff --git a/pandas/core/index.py b/pandas/core/index.py index 63d8554cbaa03..2e23c38dd3457 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -581,15 +581,17 @@ def is_monotonic(self): @property def is_monotonic_increasing(self): - """ return if the index is monotonic increasing (only e...
https://api.github.com/repos/pandas-dev/pandas/pulls/9419
2015-02-05T15:00:53Z
2015-02-05T21:24:20Z
2015-02-05T21:24:20Z
2022-03-15T10:03:49Z
DOC: Fix release note format
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 96a95811b68ac..e8b398aec4b74 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -77,7 +77,7 @@ Backwards incompatible API changes t.components t.components.seconds -- ``Index.duplicated`...
Some descriptions are rendered improperly.
https://api.github.com/repos/pandas-dev/pandas/pulls/9418
2015-02-05T14:04:28Z
2015-02-05T14:09:05Z
2015-02-05T14:09:05Z
2015-02-06T22:35:45Z
improved error message for invalid chart types
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index 2d7976d567108..fd3db3f5eef8e 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -2266,7 +2266,7 @@ def _plot(data, x=None, y=None, subplots=False, if kind in _all_kinds: klass = _plot_klass[kind] else: - ...
Closes #9400 `pd.Series([2,3,4]).plot("quiver")` now gives an improved error message: ``` Users/ch/miniconda/envs/pd_dev34/lib/python3.4/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds) 2269 klass = _plot_klass[kind] 2270 else: -> 2271 raise ValueError(...
https://api.github.com/repos/pandas-dev/pandas/pulls/9417
2015-02-04T22:30:22Z
2015-02-08T13:35:47Z
2015-02-08T13:35:47Z
2015-08-15T12:37:55Z
BUG: setup.py does not allow equal filenames in *different* directories
diff --git a/setup.py b/setup.py index e64235affaae2..5cf29d54f8806 100755 --- a/setup.py +++ b/setup.py @@ -265,31 +265,28 @@ def initialize_options(self): self.all = True self._clean_me = [] self._clean_trees = [] - self._clean_exclude = ['np_datetime.c', - ...
Is it possible to write tests for setup.py? ## Setup ``` touch pandas/period.pyx ``` and put this in your `setup.py`'s ext_data: ``` python period=dict(pyxfile='period'), ``` ## Before PR ``` bash python setup.py build_ext --inplace rm -rf pandas/period.c python setup.py build_ext --inplace python setup.py clea...
https://api.github.com/repos/pandas-dev/pandas/pulls/9415
2015-02-04T21:34:41Z
2015-02-11T14:27:56Z
2015-02-11T14:27:56Z
2015-02-11T14:45:10Z
test sql table name
diff --git a/doc/source/io.rst b/doc/source/io.rst index e39798434d96c..45052b8346a91 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -3368,7 +3368,8 @@ The key functions are: The function :func:`~pandas.read_sql` is a convenience wrapper around :func:`~pandas.read_sql_table` and :func:`~pandas.read...
Closes #9393 simple test for tables names that need to be quoted. This is related to issue [here](https://github.com/pydata/pandas/issues/9393) that is fixed in current master.
https://api.github.com/repos/pandas-dev/pandas/pulls/9411
2015-02-04T02:02:53Z
2015-02-08T11:26:44Z
2015-02-08T11:26:44Z
2015-02-10T16:58:17Z
TST/DOC: Add procedure for TestPickle
diff --git a/pandas/io/tests/test_pickle.py b/pandas/io/tests/test_pickle.py index 3073673575702..d1396463f3b23 100644 --- a/pandas/io/tests/test_pickle.py +++ b/pandas/io/tests/test_pickle.py @@ -18,7 +18,20 @@ from pandas.util.misc import is_little_endian import pandas -class TestPickle(tm.TestCase): +class TestP...
Added procedure to `TestPickle`. Based on #9291, I think updating `setup.py` is likely to be ommitted.
https://api.github.com/repos/pandas-dev/pandas/pulls/9401
2015-02-03T13:41:38Z
2015-02-11T22:58:13Z
2015-02-11T22:58:13Z
2015-02-15T01:33:36Z
MAINT: get rid of some compiler warnings
diff --git a/pandas/src/datetime/np_datetime_strings.c b/pandas/src/datetime/np_datetime_strings.c index 44363fd930510..f7835971ed0b7 100644 --- a/pandas/src/datetime/np_datetime_strings.c +++ b/pandas/src/datetime/np_datetime_strings.c @@ -117,6 +117,7 @@ get_localtime(NPY_TIME_T *ts, struct tm *tms) return -1; ...
- uninitialized pointer - unused variables - unused function - ISO C prototypes - `cimport *` - useless cast before `snprintf`
https://api.github.com/repos/pandas-dev/pandas/pulls/9395
2015-02-02T16:50:50Z
2015-07-02T19:09:35Z
2015-07-02T19:09:35Z
2015-07-03T09:06:00Z
Gh 9391: delete examples folder
diff --git a/examples/data/SOURCES b/examples/data/SOURCES deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/examples/finance.py b/examples/finance.py deleted file mode 100644 index 91ac57f67d91d..0000000000000 --- a/examples/finance.py +++ /dev/null @@ -1,86 +0,0 @@ -""" -Some examples playing a...
closes #9391 Deleting examples dir as this should be part of documentation
https://api.github.com/repos/pandas-dev/pandas/pulls/9392
2015-02-01T18:28:18Z
2015-02-03T22:44:34Z
2015-02-03T22:44:34Z
2015-02-05T16:52:20Z
TST: Cleanup offsets.Tick tests
diff --git a/pandas/tseries/tests/test_offsets.py b/pandas/tseries/tests/test_offsets.py index 6f9e8b6819bd3..b2c798c228dd0 100644 --- a/pandas/tseries/tests/test_offsets.py +++ b/pandas/tseries/tests/test_offsets.py @@ -2818,123 +2818,10 @@ def test_Easter(): assertEq(-Easter(2), datetime(2010, 4, 4), datetime(20...
- Move `Ticks` related tests to under `TestTicks`. - Added some comprehensive test cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/9388
2015-02-01T10:40:53Z
2015-02-05T11:28:38Z
2015-02-05T11:28:38Z
2015-02-05T13:39:22Z
ENH: Add StringMethods.zfill
diff --git a/doc/source/api.rst b/doc/source/api.rst index cb07c2fedc0bf..abf0c235db895 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -551,6 +551,7 @@ strings and apply several methods to it. These can be acccessed like Series.str.strip Series.str.title Series.str.upper + Series.str.zfill ...
Derived from #9111. Fixed docstring of `str_pad` which is inprecise.
https://api.github.com/repos/pandas-dev/pandas/pulls/9387
2015-02-01T10:31:06Z
2015-02-04T13:18:33Z
2015-02-04T13:18:33Z
2015-02-04T13:26:40Z
ENH: Add StringMethod.find and rfind
diff --git a/doc/source/api.rst b/doc/source/api.rst index fa898a95e6694..149421bde28c8 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -531,6 +531,7 @@ strings and apply several methods to it. These can be acccessed like Series.str.encode Series.str.endswith Series.str.extract + Series.str.fi...
Derived from #9111.
https://api.github.com/repos/pandas-dev/pandas/pulls/9386
2015-02-01T10:13:26Z
2015-02-16T13:39:17Z
2015-02-16T13:39:17Z
2015-03-31T13:31:20Z
DOC: further clean-up of removed timedelta attributes in whatsnew docs
diff --git a/doc/source/whatsnew/v0.15.0.txt b/doc/source/whatsnew/v0.15.0.txt index 8ec431d6c70ed..01dc8bb080726 100644 --- a/doc/source/whatsnew/v0.15.0.txt +++ b/doc/source/whatsnew/v0.15.0.txt @@ -111,16 +111,25 @@ This type is very similar to how ``Timestamp`` works for ``datetimes``. It is a ``Timedelta`` s...
Follow-up #9318 (and that one from #9257). whatsnew v0.15.0 was giving some errors now, so made it into a code-block
https://api.github.com/repos/pandas-dev/pandas/pulls/9383
2015-01-31T23:02:42Z
2015-02-02T22:11:48Z
2015-02-02T22:11:48Z
2015-02-02T22:11:59Z
bug in groupby when key space exceeds int64 bounds
diff --git a/bench/bench_groupby.py b/bench/bench_groupby.py index a86e8ed623ef7..d7a2853e1e7b2 100644 --- a/bench/bench_groupby.py +++ b/bench/bench_groupby.py @@ -47,7 +47,8 @@ def g(): from pandas.core.groupby import get_group_index -group_index = get_group_index(label_list, shape).astype('i4') +group_index = g...
closes https://github.com/pydata/pandas/issues/9096 also improves performance when there is `int64` overflow; complete groupby benchmarks [here](https://gist.github.com/behzadnouri/e142fbd65f41357a7360). ``` ------------------------------------------------------------------------------- Test name ...
https://api.github.com/repos/pandas-dev/pandas/pulls/9380
2015-01-31T01:34:08Z
2015-01-31T16:23:42Z
2015-01-31T16:23:42Z
2015-02-07T13:07:06Z
DOC: Clarify how date_parser is called (GH9376)
diff --git a/doc/source/io.rst b/doc/source/io.rst index d5bbddfeb7d37..e39798434d96c 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -563,7 +563,7 @@ writing to a file). For example: Date Parsing Functions ~~~~~~~~~~~~~~~~~~~~~~ -Finally, the parser allows you can specify a custom ``date_parser`` functio...
closes #9376
https://api.github.com/repos/pandas-dev/pandas/pulls/9377
2015-01-30T11:13:27Z
2015-02-01T14:58:46Z
2015-02-01T14:58:46Z
2015-02-01T14:58:46Z
TST add a test for repeat() method with MultiIndex, referenced in #9361
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index f70d652b5b1eb..38f206d92fb6d 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -2261,6 +2261,15 @@ def test_set_index_period(self): self.assertTrue(df.index.get_level_values(1).equals(idx2))...
This was fixed in 0.15, presumably by #7891
https://api.github.com/repos/pandas-dev/pandas/pulls/9362
2015-01-27T11:56:17Z
2015-01-27T17:15:26Z
2015-01-27T17:15:26Z
2015-01-27T17:27:43Z
CLN: Bring pandas up to date with pandas-datareader
diff --git a/pandas/io/data.py b/pandas/io/data.py index b5cf5f9d9be19..ea635e85ed177 100644 --- a/pandas/io/data.py +++ b/pandas/io/data.py @@ -171,7 +171,15 @@ def _retry_read_url(url, retry_count, pause, name): # return 2 rows for the most recent business day if len(rs) > 2 and rs.index[-1]...
Per: pydata/pandas-datareader#15 Fixes #9010, #9026
https://api.github.com/repos/pandas-dev/pandas/pulls/9358
2015-01-26T16:03:18Z
2015-03-05T23:28:23Z
2015-03-05T23:28:23Z
2015-03-07T21:19:39Z
Deprecating the trellis rplot module (GH3445)
diff --git a/doc/source/_static/rplot-seaborn-example1.png b/doc/source/_static/rplot-seaborn-example1.png new file mode 100644 index 0000000000000..d19a3a018bfbf Binary files /dev/null and b/doc/source/_static/rplot-seaborn-example1.png differ diff --git a/doc/source/_static/rplot-seaborn-example2.png b/doc/source/_st...
Closes #3445 --- Start for #3445. Then the current examples should get a seaborn or ggplot alternative. Questions: - explicitely refer to seaborn and ggplot as alternatives? (as there may be other packages that could feel neglected that way?) - I now raise the warning on import of the module (`import pandas.tools....
https://api.github.com/repos/pandas-dev/pandas/pulls/9357
2015-01-26T09:50:07Z
2015-03-05T08:55:49Z
2015-03-05T08:55:49Z
2015-03-05T08:58:32Z
PERF: groupby.quantile
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 9a17b04b23c18..487ef5c226f94 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -294,6 +294,8 @@ Performance improvements - Performance improvement in :meth:`to_datetime` with ``uint`` dtypes (:issue:`42...
Nearly 10x ``` import pandas as pd import numpy as np np.random.seed(536445246) arr = np.random.randn(10**5, 5) df = pd.DataFrame(arr, columns=["A", "B", "C", "D", "E"]) gb = df.groupby(df.index % 7) qs = np.arange(0, 1, 0.1) %timeit res = gb.quantile(qs) 771 ms ± 34 ms per loop (mean ± std. dev. of...
https://api.github.com/repos/pandas-dev/pandas/pulls/43469
2021-09-09T03:39:40Z
2021-09-09T21:18:42Z
2021-09-09T21:18:42Z
2021-09-09T21:46:44Z
CI: split Windows Azure tests in half
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7a26a7905799..93c17997a95f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,6 +168,7 @@ jobs: PANDAS_DATA_MANAGER: array PATTERN: ${{ matrix.pattern }} PYTEST_WORKERS: "auto" + PYTEST_T...
Trying an experiment for Windows CI where `PYTEST_WORKERS` is `auto` rather than 2.
https://api.github.com/repos/pandas-dev/pandas/pulls/43468
2021-09-09T03:19:52Z
2021-09-10T12:39:28Z
2021-09-10T12:39:28Z
2023-02-13T20:53:01Z
Make group_mean compatible with NaT
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 519a3ea711f54..e94a19fb37b63 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -23,8 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- -- +- Fixed bug in :meth:`.GroupBy.mean` with datetimelike value...
Make group_mean compatible with NaT ## Background NaT is the datetime equivalent of NaN and is set to be the lowest possible 64-bit integer -(2**63). Previously, we could not support this value in any groupby.mean() calculations which lead to #43132. ## Implementation On a high level, we slightly modify the `gr...
https://api.github.com/repos/pandas-dev/pandas/pulls/43467
2021-09-08T22:28:28Z
2021-09-18T02:31:52Z
2021-09-18T02:31:51Z
2021-09-18T02:32:24Z
REF: de-duplicate result index construction in groupby
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8bb8f00b4c406..7af32d70c00bc 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -431,16 +431,9 @@ def _wrap_applied_output( ) assert values is not None - def _get_index() ->...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43466
2021-09-08T20:25:59Z
2021-09-08T21:25:42Z
2021-09-08T21:25:42Z
2021-09-08T22:34:28Z
BUG: `styler.hide_columns` fails when no sparsification
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index cac22fc06b89b..7107e3eecb2f1 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -440,6 +440,7 @@ Styler - Bug in :meth:`Styler.apply` where functions which returned Series objects were not correctly hand...
- [x] closes #43464 - [x] tests added / passed - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43465
2021-09-08T19:09:28Z
2021-09-08T21:24:54Z
2021-09-08T21:24:54Z
2021-09-08T21:47:00Z
TST: add test to read empty array
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 01715ee133e96..ec724602c5249 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -637,6 +637,29 @@ def test_use_nullable_dtypes(self, engine): expected = expected.drop("c", axis=1) ...
- [ ] closes #41241 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43459
2021-09-08T14:05:33Z
2021-09-29T12:58:50Z
2021-09-29T12:58:50Z
2021-09-29T13:07:25Z
REGR: fillna on f32 column raising for f64
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 5ffc1a20b382f..df09873742edd 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -26,6 +26,8 @@ Fixed regressions - Fixed regression in :func:`is_list_like` where objects with ``__iter__`` set to ``None``...
- [x] closes #43424 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry For now have put whatsnew in 1.3.3, but might be better for 1.4 since regression is later ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43455
2021-09-08T02:17:12Z
2021-09-09T11:37:26Z
2021-09-09T11:37:26Z
2021-09-09T12:55:24Z
Backport PR #43450 on branch 1.3.x (Regression in loc setitem raising ValueError when setting array as cell value)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 1fbe91727c847..3b0f273451456 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`merge` where ``on`` columns with ``ExtensionDtype`` or ``bool...
Backport PR #43450: Regression in loc setitem raising ValueError when setting array as cell value
https://api.github.com/repos/pandas-dev/pandas/pulls/43453
2021-09-07T21:59:41Z
2021-09-07T22:58:26Z
2021-09-07T22:58:26Z
2021-09-07T22:58:26Z
Regression in loc setitem raising ValueError when setting array as cell value
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 6ba623b9fdbe5..5ffc1a20b382f 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`merge` where ``on`` columns with ``ExtensionDtype`` or ``bool...
- [x] closes #43422 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43450
2021-09-07T20:42:18Z
2021-09-07T21:59:33Z
2021-09-07T21:59:33Z
2021-09-08T07:25:12Z
REF: share _wrap_transformed_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8bb8f00b4c406..9f45a6665ca5c 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -366,36 +366,6 @@ def _indexed_output_to_ndframe( result.name = self.obj.name return result - def _wr...
Sits on top of #43446
https://api.github.com/repos/pandas-dev/pandas/pulls/43449
2021-09-07T18:20:10Z
2021-09-09T12:34:40Z
2021-09-09T12:34:40Z
2021-09-09T15:27:20Z
REGR: SpooledTemporaryFile support in read_csv
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 6bcce36bef93d..4bf5d7bead0a6 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -29,6 +29,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.corr` where Kendall correlation would produce incor...
- [ ] closes #43439 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Probably should throw a warning, if we cannot wrap the handle with `io.TextIOWrapper`. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43447
2021-09-07T16:47:48Z
2021-09-10T00:24:11Z
2021-09-10T00:24:10Z
2021-09-10T00:24:31Z
REF: share _wrap_aggregated_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 35cb247e96bc3..8bb8f00b4c406 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -354,35 +354,17 @@ def array_func(values: ArrayLike) -> ArrayLike: ) return self._reindex_output(ser) - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43446
2021-09-07T16:13:28Z
2021-09-07T22:59:53Z
2021-09-07T22:59:53Z
2021-09-07T23:08:28Z
Pass through Engine kwargs in ExcelWriter
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 1f656f267783f..f87b43d8ed202 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -649,6 +649,7 @@ I/O - Bug in :func:`json_normalize` where reading data with missing multi-level metadata would not respect...
- [x] closes #43442 - [x] closes #43440 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry This is the revised version of #42214. In fact, in xlsxwriter, all k...
https://api.github.com/repos/pandas-dev/pandas/pulls/43445
2021-09-07T15:46:38Z
2021-11-25T17:49:30Z
2021-11-25T17:49:29Z
2021-11-25T17:49:34Z
Backport PR #43410 on branch 1.3.x (REGR: Resampler.aggregate fails when used with column selection)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 70d8728a67695..1fbe91727c847 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
Backport PR #43410: REGR: Resampler.aggregate fails when used with column selection
https://api.github.com/repos/pandas-dev/pandas/pulls/43444
2021-09-07T13:07:07Z
2021-09-07T14:09:50Z
2021-09-07T14:09:50Z
2021-09-07T14:09:51Z
DOC: add links to pre-commit in contributing
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7fb5a6ddf2024..42017db8a05b1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ - [ ] closes #xxxx - [ ] tests added / passed -- [ ] Ensure all linting tests pass, see [here](https:...
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry The contributing page has comments on style, but does not link to setting up pre-commits yourself. It would be nice to be guided there
https://api.github.com/repos/pandas-dev/pandas/pulls/43441
2021-09-07T09:56:19Z
2021-09-08T23:53:49Z
2021-09-08T23:53:49Z
2021-09-08T23:53:56Z
ENH: Improve IOError handling on missing parent directory for Series/DataFrame write methods #24306
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 7b9997e8f0bd6..328499a4ae98e 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -107,6 +107,7 @@ Other enhancements - :meth:`DataFrame.to_stata` and :meth:`StataWriter` now accept the keyword only argume...
- [x] closes #24306 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43436
2021-09-07T06:22:20Z
2021-09-11T14:50:50Z
2021-09-11T14:50:50Z
2021-09-11T14:51:04Z
REF: Groupby._get_cythonized_result operate blockwise in axis==1 case
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 11cd315553f41..115e63b915cbc 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3057,7 +3057,6 @@ def _get_cythonized_result( grouper = self.grouper ids, _, ngroups = grouper.group_in...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43435
2021-09-07T05:10:26Z
2021-09-13T15:26:08Z
2021-09-13T15:26:08Z
2021-09-13T16:06:22Z
TST: Test for MultiIndex merge with CategoricalIndex (#36973)
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 71134dcaf9ccc..5c07a9662359e 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -1813,6 +1813,35 @@ def tests_merge_categorical_unordered_equal(self): ) ...
- [x] closes #36973 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43433
2021-09-06T21:51:55Z
2021-09-07T14:11:56Z
2021-09-07T14:11:56Z
2021-09-07T14:12:00Z
DOC: Modify pandas.ExcelWriter default engine in docstring (#43359)
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 52d1e1c83d3e6..489be2de7a764 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -647,7 +647,10 @@ class ExcelWriter(metaclass=abc.ABCMeta): """ Class for writing DataFrame objects into excel sheets. - Default is t...
* engine for xlsx : xlsxwriter instead of openpyxl * correction to pass the doctest - [x] closes #43359 - [x] tests added / passed : script/validate_docstrings.py detected 3 errors before my pull request. It's now resolved - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/d...
https://api.github.com/repos/pandas-dev/pandas/pulls/43432
2021-09-06T21:36:17Z
2021-09-12T16:55:59Z
2021-09-12T16:55:59Z
2021-09-12T16:56:08Z
Backport PR #43403: Revert Cythonized Kendall implementation and improve test case to prevent regressions
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index ddd3a8cf1ecb7..70d8728a67695 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
- [ ] closes #43401 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43431
2021-09-06T19:46:28Z
2021-09-06T23:50:50Z
2021-09-06T23:50:50Z
2021-09-06T23:50:57Z
TYP: libs
diff --git a/pandas/_libs/join.pyi b/pandas/_libs/join.pyi index f73f495cf4d4f..5b0e50ca76840 100644 --- a/pandas/_libs/join.pyi +++ b/pandas/_libs/join.pyi @@ -1,51 +1,53 @@ import numpy as np +from pandas._typing import npt + def inner_join( left: np.ndarray, # const intp_t[:] right: np.ndarray, # con...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43430
2021-09-06T19:28:55Z
2021-09-09T12:41:32Z
2021-09-09T12:41:32Z
2021-09-09T15:24:29Z
Regression in __getitem__ raising for slice DatetimeIndex
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index df09873742edd..126e0819febb9 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`read_parquet` where the ``fastparquet`` engine would not work...
- [x] closes #43223 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry @jbrockmendel Any idea why we used ``maybe_indices_to_slice`` instead of take like in loc?...
https://api.github.com/repos/pandas-dev/pandas/pulls/43428
2021-09-06T18:35:34Z
2021-09-09T13:51:01Z
2021-09-09T13:51:01Z
2021-09-09T13:51:16Z
DEPR: squeeze argument in read_csv/read_table/read_excel
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 4c7b13bcf989f..c69f17512a8ea 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1208,6 +1208,10 @@ Returning Series Using the ``squeeze`` keyword, the parser will return output with a single column as a ``Seri...
- [ ] closes #43242 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43427
2021-09-06T17:15:26Z
2021-09-10T13:45:49Z
2021-09-10T13:45:47Z
2021-09-12T15:07:29Z
BACKPORT: groupby.apply incorrectly dropping nan #43236
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 47ed073d12f1c..ddd3a8cf1ecb7 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
xref #43236
https://api.github.com/repos/pandas-dev/pandas/pulls/43426
2021-09-06T16:18:02Z
2021-09-06T18:37:29Z
2021-09-06T18:37:29Z
2021-09-06T18:56:48Z
Backport PR #42772 on branch 1.3.x (BUG: Series.groupby fails with InvalidIndexError on time series with …)
diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst index 7a9549affef00..e3c6268547dd2 100644 --- a/doc/source/whatsnew/v1.3.2.rst +++ b/doc/source/whatsnew/v1.3.2.rst @@ -26,6 +26,7 @@ Fixed regressions - Fixed regression in :func:`concat` where ``copy=False`` was not honored in ``axis=1`` Se...
Backport PR #42772: BUG: Series.groupby fails with InvalidIndexError on time series with …
https://api.github.com/repos/pandas-dev/pandas/pulls/43425
2021-09-06T15:18:12Z
2021-09-06T17:11:53Z
2021-09-06T17:11:53Z
2021-09-06T17:11:53Z
REF: MultiIndex._engine followup to #43370
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f55d66ccaa5a9..ca24055e85ee4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -291,7 +291,7 @@ Performance improvements - Performance improvement in :func:`read_stata` (:issue:`43059`) - Performance i...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43421
2021-09-05T18:26:51Z
2021-09-06T15:46:43Z
2021-09-06T15:46:43Z
2021-09-06T16:54:59Z
TYP: ExtensionArray.take accept np.ndarray
diff --git a/pandas/_typing.py b/pandas/_typing.py index 9ed31dc3738f3..5f8ea79046235 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -219,6 +219,10 @@ PositionalIndexer = Union[ScalarIndexer, SequenceIndexer] PositionalIndexerTuple = Tuple[PositionalIndexer, PositionalIndexer] PositionalIndexer2D = Union[...
- [x] closes #43391 (np.ndarray is never a Sequence) - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43418
2021-09-05T15:08:33Z
2021-09-26T12:02:23Z
2021-09-26T12:02:23Z
2022-06-08T19:26:51Z
Backport PR #43150 on branch 1.3.x (BUG: GroupBy.quantile fails with pd.NA)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 3b0f273451456..3e92f7124e717 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
Backport PR #43150
https://api.github.com/repos/pandas-dev/pandas/pulls/43417
2021-09-05T14:08:10Z
2021-09-09T19:21:27Z
2021-09-09T19:21:27Z
2021-09-09T19:23:54Z
ADMIN: Add GitHub Issue Forms for Bugs, Performance, or Installation issues
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 765c1b8bff62e..0000000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,39 +0,0 @@ ---- - -name: Bug Report -about: Create a bug report to help us improve pandas -title: "BUG:" -la...
- [x] xref #42951 Replaces the current bug report form with the new GitHub Issue Forms Additionally, adds performance issue and installation issue form that I've seen common in our tracker but currently does not have a good way to report. Forms can be tested here: https://github.com/mroeschke/issue-form-test/issu...
https://api.github.com/repos/pandas-dev/pandas/pulls/43411
2021-09-05T04:05:50Z
2021-09-06T06:06:30Z
2021-09-06T06:06:30Z
2021-09-06T06:06:34Z
REGR: Resampler.aggregate fails when used with column selection
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index c85da8ec79f6d..6ba623b9fdbe5 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
- [x] closes #42905 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry The method `resample._GroupByMixin._gotitem` calls ``` new_rs = type(self)( subse...
https://api.github.com/repos/pandas-dev/pandas/pulls/43410
2021-09-05T02:02:15Z
2021-09-06T20:37:19Z
2021-09-06T20:37:19Z
2021-09-07T21:50:29Z
BUG: concat of bool and boolean giving object dtype
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index bb9c124bae68b..edbdd41a4a34d 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -419,6 +419,7 @@ Reshaping - :func:`concat` creating :class:`MultiIndex` with duplicate level entries when concatenating a ...
- [x] closes #42800 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43409
2021-09-04T23:53:49Z
2021-09-07T22:40:36Z
2021-09-07T22:40:36Z
2021-09-07T22:51:05Z
Backport PR #43373 on branch 1.3.x (BUG: Fix regression in is_list_like)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 00409cf963ab3..47ed073d12f1c 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in :meth:`merge` where ``on`` columns with ``ExtensionDtype`` or ``bool...
Backport PR #43373: BUG: Fix regression in is_list_like
https://api.github.com/repos/pandas-dev/pandas/pulls/43407
2021-09-04T23:29:04Z
2021-09-05T07:21:01Z
2021-09-05T07:21:01Z
2021-09-05T07:21:01Z
BUG: DataFrame.__setitem__ sometimes operating inplace
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..a5dd43a35ac9a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -497,6 +497,7 @@ Indexing - Bug in :meth:`DataFrame.query` where method calls in query strings led to errors when the ``num...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry The fixed bug is the currently-xfailed test test_setitem_same_dtype_not_inplace (see #39510...
https://api.github.com/repos/pandas-dev/pandas/pulls/43406
2021-09-04T21:21:25Z
2021-11-01T17:14:20Z
2021-11-01T17:14:20Z
2023-06-01T14:26:36Z
BUG?: `hide_columns` now doesn't hide index names
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4cd76346a4a8f..10bc29d3e73df 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -76,7 +76,7 @@ Styler - :meth:`.Styler.bar` introduces additional arguments to control alignment and display (:issue:`260...
After #43346 it is now possible to control index names visibility. This PR adds full flexibility. This actually reverts #42839, but only because there is now an explicit method to hide index names. Also linking this to an old master tracker #24546. <img width="644" alt="Screenshot 2021-09-04 at 20 51 13" src="ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/43404
2021-09-04T18:55:15Z
2021-09-04T23:58:59Z
2021-09-04T23:58:59Z
2021-09-05T06:12:04Z
Revert Cythonized Kendall implementation and improve test case to prevent regressions
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index d8e9e70ec7227..cb0bf45aa1041 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``As...
- [x] closes #43401 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43403
2021-09-04T18:31:51Z
2021-09-06T18:35:47Z
2021-09-06T18:35:46Z
2021-09-06T23:51:43Z
TYP: type some un-typed decorators
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 0c158d47cfa3b..1b9f1d1d052ab 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -29,6 +29,7 @@ from pandas._typing import ( AnyArrayLike, DtypeObj, + F, Scalar, Shape, npt, @@ -185,7 ...
- xref #33455 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43400
2021-09-04T15:28:27Z
2021-09-10T17:05:38Z
2021-09-10T17:05:37Z
2021-09-22T01:05:49Z
BUG: no `label` render in `Styler.to_latex` if `caption` and `"longtable"`
diff --git a/pandas/io/formats/templates/latex_longtable.tpl b/pandas/io/formats/templates/latex_longtable.tpl index fdb45aea83c16..4545723785805 100644 --- a/pandas/io/formats/templates/latex_longtable.tpl +++ b/pandas/io/formats/templates/latex_longtable.tpl @@ -23,6 +23,11 @@ {%- if label is not none %} \label{{l...
No whats new this is a 1.4.0 feature fix.
https://api.github.com/repos/pandas-dev/pandas/pulls/43399
2021-09-04T12:56:28Z
2021-09-04T14:07:14Z
2021-09-04T14:07:14Z
2021-09-04T16:43:02Z
REF: `styler.to_latex` siunitx changes: render {} only when needed.
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e6f9503a1e6f2..d0bd59021c238 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -861,6 +861,7 @@ def to_latex( multicol_align=multicol_align, environment=environment, convert_css=co...
adds item on #41649 for better backwards compat, and this is probably slightly better anyway. When: - `siunitx=True` columns headers are now rendered like `{} & {A} & {B} \\` - `siunitx=False` (default) then they are now rendered like ` & A & B \\` Rndering column headers with or without curly braces has n...
https://api.github.com/repos/pandas-dev/pandas/pulls/43397
2021-09-04T08:02:40Z
2021-09-04T14:09:02Z
2021-09-04T14:09:01Z
2021-09-04T16:43:57Z
BUG: dtype lost in DataFrame.append
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4cd76346a4a8f..e2b42a0ea14f5 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -406,6 +406,7 @@ Reshaping - Improved error message when creating a :class:`DataFrame` column from a multi-dimensional :cla...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry 1) For BlockManager, this improves dtype-retention, see test_append_same_columns_type 2) F...
https://api.github.com/repos/pandas-dev/pandas/pulls/43392
2021-09-03T23:08:26Z
2021-09-04T18:14:11Z
2021-09-04T18:14:11Z
2021-09-04T18:17:46Z
Backport PR #43152 on branch 1.3.x (BUG: Outer/right merge with EA dtypes cast to object)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index b4265c1bc5ddd..00409cf963ab3 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
Backport PR #43152: BUG: Outer/right merge with EA dtypes cast to object
https://api.github.com/repos/pandas-dev/pandas/pulls/43389
2021-09-03T21:52:39Z
2021-09-04T23:28:48Z
2021-09-04T23:28:48Z
2021-09-04T23:28:56Z
BUG: one level multiindex styler display
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2f8cb346935a9..b2d73e6d5b2e7 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -423,6 +423,7 @@ Styler - Bug in :meth:`.Styler.copy` where ``uuid`` was not previously copied (:issue:`40675`) - Bug in :...
- [x] closes #43383
https://api.github.com/repos/pandas-dev/pandas/pulls/43385
2021-09-03T20:36:52Z
2021-09-04T15:00:20Z
2021-09-04T15:00:20Z
2021-09-04T16:42:00Z
REF: reindex_indexer up-front to simplify JoinUnit
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 25bdc71fe7d12..e8765343e510a 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -65,6 +65,7 @@ if TYPE_CHECKING: from pandas import Index + from pandas.core.internals.blocks import Block ...
Sits on top of #43376
https://api.github.com/repos/pandas-dev/pandas/pulls/43384
2021-09-03T19:34:33Z
2021-09-08T21:44:14Z
2021-09-08T21:44:14Z
2021-09-08T22:34:55Z
ENH: `multicol` naive implementation. part2
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 4e2c836a9db8d..09da9f04f8360 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -896,7 +896,7 @@ def register_converter_cb(key): "latex.multicol_align", "r", styler_multicol_align, - val...
follows #43369
https://api.github.com/repos/pandas-dev/pandas/pulls/43382
2021-09-03T17:32:56Z
2021-09-08T09:43:36Z
2021-09-08T09:43:36Z
2021-09-08T09:43:40Z
Auto-update now occurs monthly instead of weekly
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml index 801e063f72726..3696cba8cf2e6 100644 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -2,7 +2,7 @@ name: "Update pre-commit config...
- [x] closes #43364 - [x] tests passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43379
2021-09-03T11:33:55Z
2021-09-03T14:51:31Z
2021-09-03T14:51:31Z
2021-09-03T14:51:32Z
correcting example in comparison with spreadsheets
diff --git a/doc/source/getting_started/comparison/includes/nth_word.rst b/doc/source/getting_started/comparison/includes/nth_word.rst index 7af0285005d5b..20e2ec47a8c9d 100644 --- a/doc/source/getting_started/comparison/includes/nth_word.rst +++ b/doc/source/getting_started/comparison/includes/nth_word.rst @@ -5,5 +5,...
- [ ] closes #43361 - [ ] doc/source/getting_started/comparison/includes/nth_word.rst file updated with correction in example
https://api.github.com/repos/pandas-dev/pandas/pulls/43377
2021-09-03T09:51:08Z
2021-09-03T09:57:16Z
2021-09-03T09:57:15Z
2021-09-20T04:49:13Z
REF: reindex_indexer use np.void to avoid JoinUnit
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 6b41d7a26080d..25bdc71fe7d12 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -198,6 +198,8 @@ def concatenate_managers( if isinstance(mgrs_indexers[0][0], ArrayManager): return _conca...
ATM we do a kludgy thing where we sometimes reindex before calling concat (e.g. in DataFrame.append) and that leads to all-NA columns that we choose to ignore when choosing the dtype for the concatenated column. This leads to a) funky behavior when we encounter an "real" all-NA column and b) a big performance hit in c...
https://api.github.com/repos/pandas-dev/pandas/pulls/43376
2021-09-03T04:54:42Z
2021-09-08T12:44:59Z
2021-09-08T12:44:58Z
2021-09-08T14:07:13Z
BUG: rolling.groupby with on and __getitem__ doesn't mutate underlying object
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 3b9ddf8138689..dd3f0368f9227 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -408,6 +408,7 @@ Groupby/resample/rolling - Bug in :meth:`pandas.DataFrame.rolling` operation along rows (``axis=1``) incor...
- [x] closes #43355 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43374
2021-09-03T00:51:09Z
2021-09-06T15:36:23Z
2021-09-06T15:36:23Z
2021-09-06T17:14:39Z
BUG: Fix regression in is_list_like
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index b4265c1bc5ddd..254225eacc6f6 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`4239...
`is_list_like()` used to use `isinstance(obj, abc.Iterable)` before #39852 where it was optimized for performance. This resulted in a regression where objects that explicitly declare `__iter__` as `None` are considered "list like" but not instances of `abc.Iterable`. Because the original original PR was focused on p...
https://api.github.com/repos/pandas-dev/pandas/pulls/43373
2021-09-02T22:40:14Z
2021-09-04T23:28:26Z
2021-09-04T23:28:26Z
2021-09-05T01:44:50Z
CLN: Minor cleanup of deprecations in parser code
diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py index 6737f2dfd5086..bc554b5e6a208 100644 --- a/pandas/io/parsers/base_parser.py +++ b/pandas/io/parsers/base_parser.py @@ -111,6 +111,8 @@ "skip_blank_lines": True, "encoding_errors": "strict", "on_bad_lines": "error", + ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Some spaghetti that I noticed and was annoying.
https://api.github.com/repos/pandas-dev/pandas/pulls/43372
2021-09-02T22:19:49Z
2021-09-04T14:10:51Z
2021-09-04T14:10:51Z
2021-09-18T17:45:52Z
PERF: MultiIndex.get_indexer
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f2e2abd16b985..b72be00714b6c 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -603,26 +603,26 @@ cdef class BaseMultiIndexCodesEngine: def _codes_to_ints(self, ndarray[uint64_t] codes) -> np.ndarray: raise NotImplemented...
Avoids expensive construction of MultiIndex.values, followed by expensive casting of sequence-of-tuples back to tuple-of-Indexes. ``` import pandas as pd mi = pd.MultiIndex.from_product([range(100), range(100), range(100)]) %timeit mi.get_indexer(mi[:-1]) 698 ms ± 18.7 ms per loop (mean ± std. dev. of 7 runs...
https://api.github.com/repos/pandas-dev/pandas/pulls/43370
2021-09-02T22:02:06Z
2021-09-05T01:45:58Z
2021-09-05T01:45:58Z
2021-09-05T17:59:08Z
ENH: `multirow` naive implementation `Styler.to_latex` part1
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a85b84aad9f94..be38937741f93 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -78,6 +78,7 @@ Styler - :meth:`.Styler.to_html` introduces keyword arguments ``sparse_index``, ``sparse_columns``, ``bold...
this is also for compatability with `DataFrame.to_latex`. #41649 I think its a nice feature though, although opinions on the argument input choice are welcome. Maybe `"none"` is better than `"naive"`. When implementing this for multicol there will be the option for left or right alignment, so the likes of `"naiv...
https://api.github.com/repos/pandas-dev/pandas/pulls/43369
2021-09-02T21:43:37Z
2021-09-07T05:26:29Z
2021-09-07T05:26:29Z
2021-09-07T05:26:36Z
CLN: add arg validation for `caption`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4cd76346a4a8f..0868a93875c44 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -83,6 +83,8 @@ Formerly Styler relied on ``display.html.use_mathjax``, which has now been repla There are also bug fixes ...
this is needed since ``DataFrame.to_latex`` validates the ``caption`` arg. (Personally not a fan of this type of explicit validation)
https://api.github.com/repos/pandas-dev/pandas/pulls/43368
2021-09-02T21:10:19Z
2021-09-05T01:36:13Z
2021-09-05T01:36:12Z
2021-09-05T10:13:28Z
MAINT: rename IOError -> OSError
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 3b9ddf8138689..2a590af95d674 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -385,6 +385,7 @@ I/O - Column headers are dropped when constructing a :class:`DataFrame` from a sqlalchemy's ``Row`` object...
Since Python 3.3, IO and OS exceptions were re-worked as per [PEP 3151](https://www.python.org/dev/peps/pep-3151/). The new main base class is [OSError](https://docs.python.org/3/library/exceptions.html#OSError), with several other exceptions merged, including IOError (i.e. `assert IOError is OSError`). This PR cha...
https://api.github.com/repos/pandas-dev/pandas/pulls/43366
2021-09-02T20:35:36Z
2021-09-11T02:28:39Z
2021-09-11T02:28:39Z
2022-02-11T02:55:24Z
TYP: tslibs
diff --git a/pandas/_libs/tslibs/conversion.pyi b/pandas/_libs/tslibs/conversion.pyi index e74a56a519c5a..3d0288160e386 100644 --- a/pandas/_libs/tslibs/conversion.pyi +++ b/pandas/_libs/tslibs/conversion.pyi @@ -5,6 +5,8 @@ from datetime import ( import numpy as np +from pandas._typing import npt + DT64NS_DTYPE:...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43365
2021-09-02T18:39:22Z
2021-09-02T23:21:12Z
2021-09-02T23:21:12Z
2021-09-02T23:22:38Z
CLN: Replace sphinx's rpartition with python's in-built one
diff --git a/doc/source/conf.py b/doc/source/conf.py index 8df048ce65582..0096b3337e19a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -461,7 +461,6 @@ # eg pandas.Series.str and pandas.Series.dt (see GH9322) import sphinx # isort:skip -from sphinx.util import rpartition # isort:skip from sphinx.ext...
Closes #43348 Replaced Sphinx's `rpartition` which was deprecated with Python's in-built method
https://api.github.com/repos/pandas-dev/pandas/pulls/43360
2021-09-02T14:29:23Z
2021-09-02T23:50:34Z
2021-09-02T23:50:33Z
2021-09-03T12:58:39Z
TST: added test for groupby when calling first, last, nth (GH29645)
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index e7a5e931f5297..f0eef550b39ac 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -689,3 +689,20 @@ def test_first_multi_key_groupbby_categorical(): [(1, 100), (1, 200), (2, 100)], names=["...
- [x] closes #29645 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them Provided test for `groupby` when callling `first`, `last`, `nth` on a `Series` with `None` or `np.nan`. Tests...
https://api.github.com/repos/pandas-dev/pandas/pulls/43358
2021-09-02T10:54:17Z
2021-09-06T21:50:54Z
2021-09-06T21:50:54Z
2021-09-06T21:50:59Z
CI: styler mypy fix
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 54711473c1f5d..e6f9503a1e6f2 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -231,7 +231,7 @@ def __init__( thousands=thousands, ) - def _repr_html_(self) -> str: + def _repr_html_(self) ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/43356
2021-09-02T05:17:04Z
2021-09-02T09:48:07Z
2021-09-02T09:48:07Z
2021-09-02T11:27:42Z
PERF: concat
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 0aed9e697ca66..6b41d7a26080d 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -32,6 +32,7 @@ is_1d_only_ea_obj, is_datetime64tz_dtype, is_dtype_equal, + is_scalar, needs_i8_co...
``` from asv_bench.benchmarks.groupby import * self = Apply() self.setup(4) %timeit self.time_copy_overhead_single_col(4) 213 ms ± 10.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 161 ms ± 2.84 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43354
2021-09-02T02:34:11Z
2021-09-02T23:18:25Z
2021-09-02T23:18:25Z
2021-09-03T01:15:47Z
PERF: rebuild_blknos_and_blklocs
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index 1791cbb85c355..6542b7a251644 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -82,3 +82,4 @@ class BlockManager: self, blocks: tuple[B, ...], axes: list[Index], verify_integrity=True ): ... def get_s...
I don't have an asv on hand which is dominated by this method, but profiling time_copy_overhead_single_col and looking at this method: ``` from asv_bench.benchmarks.groupby import * self = Apply() self.setup(4) %timeit self.time_copy_overhead_single_col(4) 227 ms ± 10.9 ms per loop (mean ± std. dev. of 7 runs...
https://api.github.com/repos/pandas-dev/pandas/pulls/43353
2021-09-01T21:46:33Z
2021-09-01T23:01:18Z
2021-09-01T23:01:18Z
2021-09-01T23:40:44Z
PERF: unstack 2 the unstackening
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 88183a4571327..9a3f8920f8e9b 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1285,6 +1285,10 @@ def _unstack(self, unstacker, fill_value, new_placement, allow_fill: bool): mask = mask.any...
``` from asv_bench.benchmarks.reshape import * self2 = Unstack() self2.setup("category") %timeit self2.time_full_product("category") 31.3 ms ± 2.23 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 20.1 ms ± 304 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # < PR ``` Orthogon...
https://api.github.com/repos/pandas-dev/pandas/pulls/43352
2021-09-01T21:13:13Z
2021-09-01T23:04:31Z
2021-09-01T23:04:31Z
2021-09-01T23:35:32Z
Backport PR #43349 on branch 1.3.x (CI: Fix Failing Doc Build)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index bcfdcf6fd4b75..b4265c1bc5ddd 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`4239...
Backport PR #43349: CI: Fix Failing Doc Build
https://api.github.com/repos/pandas-dev/pandas/pulls/43350
2021-09-01T20:19:44Z
2021-09-01T20:23:50Z
2021-09-01T20:23:50Z
2021-09-02T09:57:32Z
CI: Fix Failing Doc Build
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index bcfdcf6fd4b75..b4265c1bc5ddd 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`4239...
https://github.com/pandas-dev/pandas/pull/43145 had failing code checks https://github.com/pandas-dev/pandas/pull/43347/checks?check_run_id=3488498926 ``` /home/runner/work/pandas/pandas/doc/source/whatsnew/v1.3.3.rst:36: WARNING: Bullet list ends without a blank line; unexpected unindent. ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43349
2021-09-01T20:16:04Z
2021-09-01T20:18:55Z
2021-09-01T20:18:55Z
2021-09-02T09:57:47Z
Backport PR #43145 on branch 1.3.x (REGR: Fix fastparquet 0.7.0 not being able to read a parquet file)
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 7c1a414c1f37d..bcfdcf6fd4b75 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -18,7 +18,7 @@ Fixed regressions - Performance regression in :meth:`core.window.ewm.ExponentialMovingWindow.mean` (:issue:`...
Backport PR #43145: REGR: Fix fastparquet 0.7.0 not being able to read a parquet file
https://api.github.com/repos/pandas-dev/pandas/pulls/43347
2021-09-01T19:37:10Z
2021-09-01T20:19:36Z
2021-09-01T20:19:36Z
2021-09-01T20:19:36Z