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
WIP: Make weekday_name field in DatetimeIndex categorical
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index e944df7aa83c6..7853731537eb5 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -42,6 +42,7 @@ from pandas.tseries.frequencies import to_offset, get_period_alias, Resolution from pandas.core.ind...
- [x] closes #12993 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Work in progress. `DatetimeIndex` `CategoricalIndex` for `weekday_name` but accessing it from `dt.weekday_name` still returns an `object` dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/21177
2018-05-23T04:25:09Z
2018-10-11T01:50:51Z
null
2018-10-11T01:50:51Z
BUG: read_csv with specified kwargs
diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt index 67c7ce150132a..0f2c9c4756987 100644 --- a/doc/source/whatsnew/v0.23.2.txt +++ b/doc/source/whatsnew/v0.23.2.txt @@ -64,6 +64,7 @@ Bug Fixes **I/O** +- Bug in :func:`read_csv` that caused it to incorrectly raise an error when ``nro...
- [+] closes #21141 - [+] tests added / passed - [+] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Solves the issue 21141.
https://api.github.com/repos/pandas-dev/pandas/pulls/21176
2018-05-22T20:36:04Z
2018-06-19T11:26:49Z
2018-06-19T11:26:49Z
2018-06-29T14:58:23Z
Fix nonzero of a SparseArray
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index b5d0532c6dfa3..18edc290768c8 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1437,6 +1437,7 @@ Sparse - Bug in ``DataFrame.groupby`` not including ``fill_value`` in the groups for non-NA ``fill_v...
The nonzero operation returned the nonzero locations of the underlying index. However we need to get the nonzero locations in the real array. For this operation to be faster an inverse index structure would be beneficial or it could be implemented using binary search. ```python sa = pd.SparseArray([float('nan'), fl...
https://api.github.com/repos/pandas-dev/pandas/pulls/21175
2018-05-22T20:27:37Z
2018-11-17T22:15:58Z
2018-11-17T22:15:57Z
2018-11-17T22:16:02Z
Remove deprecated Slepian test
diff --git a/pandas/tests/test_window.py b/pandas/tests/test_window.py index d8e90ae0e1b35..74f2c977e0db2 100644 --- a/pandas/tests/test_window.py +++ b/pandas/tests/test_window.py @@ -41,7 +41,7 @@ def win_types(request): return request.param -@pytest.fixture(params=['kaiser', 'gaussian', 'general_gaussian', ...
Partially addresses #21137.
https://api.github.com/repos/pandas-dev/pandas/pulls/21173
2018-05-22T16:22:41Z
2018-05-23T10:35:43Z
2018-05-23T10:35:43Z
2018-05-23T17:26:16Z
BUG: group with multiple named results
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index df7a5dc9dc173..6cd2a91e9c17d 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2298,7 +2298,28 @@ def levels(self): @property def names(self): - return [ping.name for ping in self.gro...
- [x] closes #19029 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This bugfix gets rid of duplicated names that can be the result of groupby operations (#19029). I opted to implement one of the ideas proposed by [toobaz](https://github.com/p...
https://api.github.com/repos/pandas-dev/pandas/pulls/21171
2018-05-22T11:53:57Z
2018-11-01T01:38:19Z
null
2018-11-01T01:38:19Z
Small typo in deprecation message added in PR #21060
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 4c237da7b6d0e..e2b0b33053f83 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1246,7 +1246,7 @@ class Timedelta(_Timedelta): deprecated. Use 'array // timedelta.value' ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21170
2018-05-22T10:31:47Z
2018-05-22T18:32:37Z
2018-05-22T18:32:37Z
2018-05-22T18:32:58Z
BUG: Enable stata files to be written to buffers
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index a071d7f3f5534..a7ba0dfbbd1c4 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -83,7 +83,7 @@ Indexing I/O ^^^ -- +- Bug in :meth:`DataFrame.to_stata` which prevented exporting DataFrames to buff...
Enable support for general file-like objects when exporting stata files - [x] closes #21041 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21169
2018-05-22T09:02:36Z
2018-05-24T22:11:46Z
2018-05-24T22:11:46Z
2018-06-12T14:46:44Z
DOC: move mention of #21115 from bugs to enhancements
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index f204fce3a525f..44f7280d5535f 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -15,6 +15,8 @@ and bug fixes. We recommend that all users upgrade to this version. New features ~~~~~~~~~~~~ +- :met...
Very trivial followup to https://github.com/pandas-dev/pandas/pull/21116#discussion_r189738781
https://api.github.com/repos/pandas-dev/pandas/pulls/21165
2018-05-22T05:20:42Z
2018-05-22T10:19:52Z
2018-05-22T10:19:52Z
2018-07-08T08:31:43Z
BUG: Fix nested_to_record with None values in nested levels
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 974527624a312..e29cb0a5a2626 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -97,6 +97,7 @@ I/O - Bug in IO methods specifying ``compression='zip'`` which produced uncompressed zip archives (:is...
- [ ] closes #21158 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Continue after pop so you dont pop with the same key twice in a row
https://api.github.com/repos/pandas-dev/pandas/pulls/21164
2018-05-22T04:39:53Z
2018-06-07T15:58:48Z
2018-06-07T15:58:48Z
2018-06-12T16:30:33Z
Cleanup clipboard tests
diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py index 98c0effabec84..80fddd50fc9a8 100644 --- a/pandas/tests/io/test_clipboard.py +++ b/pandas/tests/io/test_clipboard.py @@ -9,10 +9,11 @@ from pandas import DataFrame from pandas import read_clipboard from pandas import get_option +...
As requested in #21111, I've refactored the original clipboard tests as well as adding my own. The set of tests have been improved to include testing of: - failure of tab delimited tables (#21104) - errors relating to copying and reading space-delimited tables - copy and pasting tables where the text contains quo...
https://api.github.com/repos/pandas-dev/pandas/pulls/21163
2018-05-22T02:52:55Z
2018-06-26T22:19:42Z
2018-06-26T22:19:42Z
2018-07-02T15:48:18Z
BUG: Fix interval_range when start/periods or end/periods are specified with float start/end
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 44f7280d5535f..a071d7f3f5534 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -77,6 +77,7 @@ Indexing ^^^^^^^^ - Bug in :meth:`Series.reset_index` where appropriate error was not raised with an ...
- [X] closes #21161 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Should be good for 0.23.1; the code changes only hit the `interval_range` function, which is outside the `IntervalIndex` class, so should be independent of any enhancements rela...
https://api.github.com/repos/pandas-dev/pandas/pulls/21162
2018-05-22T00:42:16Z
2018-05-23T04:22:15Z
2018-05-23T04:22:14Z
2018-06-08T17:14:49Z
ENH: Integer NA Extension Array
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a0076118a28a7..4d5c34b883d18 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -13,6 +13,7 @@ v0.24.0 (Month XX, 2018) New features ~~~~~~~~~~~~ + - ``ExcelWriter`` now accepts ``mode`` as a key...
closes #20700 closes #20747 ``` In [1]: df = pd.DataFrame({ 'A': pd.Series([1, 2, np.nan], dtype='Int64'), 'B': pd.Series([1, np.nan, 3], dtype='UInt8'), 'C': [1, 2, 3]}) In [2]: df Out[2]: A B C 0 1 1 1 1 2 NaN 2 2 NaN 3 3 In [3]: df.dtypes Out[3]: A Int64 B U...
https://api.github.com/repos/pandas-dev/pandas/pulls/21160
2018-05-22T00:00:03Z
2018-07-20T20:44:33Z
2018-07-20T20:44:33Z
2018-07-20T22:21:06Z
TST: Escape invalid escape characters
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 81d775157cf62..5d50c45fe7eca 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -241,7 +241,7 @@ def str_count(arr, pat, flags=0): Escape ``'$'`` to find the literal dollar sign. >>> s = pd.Series(['$', 'B', 'Aab$', '$$ca', ...
Partially addresses #21137.
https://api.github.com/repos/pandas-dev/pandas/pulls/21154
2018-05-21T16:53:25Z
2018-05-21T23:11:16Z
2018-05-21T23:11:16Z
2018-05-22T00:33:29Z
TST: Remove .ix deprecation warnings
diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py index 6d74ce54faa94..5459b6910e11a 100644 --- a/pandas/tests/frame/test_indexing.py +++ b/pandas/tests/frame/test_indexing.py @@ -397,11 +397,13 @@ def test_getitem_setitem_ix_negative_integers(self): df = DataFrame(np.ran...
Partially addresses #21137.
https://api.github.com/repos/pandas-dev/pandas/pulls/21148
2018-05-21T07:42:41Z
2018-05-21T10:34:40Z
2018-05-21T10:34:40Z
2018-05-21T10:43:48Z
Shorter MultiIndex representation
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 5a553264e828b..6ae2a79409c9e 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -15,6 +15,36 @@ and bug fixes. We recommend that all users upgrade to this version. New features ~~~~~~~~~~~~ +.. _w...
- [x] closes #12423 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry MultiIndex can currently have quite long repr output, which may also take a long time to print. This PR makes the MultiIndex repr output similar in style to other Index reprs...
https://api.github.com/repos/pandas-dev/pandas/pulls/21145
2018-05-20T23:18:09Z
2018-08-26T08:01:40Z
null
2018-10-27T08:16:14Z
BUG: set keyword argument so zipfile actually compresses
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 4876678baaa6e..c02d988a7bc63 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -83,6 +83,7 @@ Indexing I/O ^^^ +- Bug in IO methods specifying ``compression='zip'`` which produced uncompressed zi...
- [x] closes https://github.com/pandas-dev/pandas/issues/17778 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry zipfile.ZipFile has default compression mode `zipfile.ZIP_STORED`. It creates an uncompressed archive member. Whilst it doesn't cause ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21144
2018-05-20T16:16:35Z
2018-05-29T10:41:28Z
2018-05-29T10:41:28Z
2018-06-08T17:18:38Z
CLN: Refactor open into context manager in io tests
diff --git a/pandas/tests/io/test_packers.py b/pandas/tests/io/test_packers.py index cfac77291803d..0b1c1ca178762 100644 --- a/pandas/tests/io/test_packers.py +++ b/pandas/tests/io/test_packers.py @@ -128,9 +128,8 @@ def test_string_io(self): with ensure_clean(self.path) as p: s = df.to_msgpack(...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Building on #21105 by @WillAyd, I cleaned up some more `open` statements.
https://api.github.com/repos/pandas-dev/pandas/pulls/21139
2018-05-19T23:21:01Z
2018-05-21T10:37:53Z
2018-05-21T10:37:53Z
2018-05-21T12:00:47Z
DOC: Improve the docstring of Timedelta.delta redux
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index f7bb6c1dbb304..3f0b4db87e5ed 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -760,7 +760,32 @@ cdef class _Timedelta(timedelta): @property def delta(self): - """ retu...
- [ ] closes #xxxx - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry rather than trying to pick and choose items from my previous PR #21135 (which somehow had a number of other items sucked into it) ... gonna start from scratch here and close out...
https://api.github.com/repos/pandas-dev/pandas/pulls/21138
2018-05-19T20:12:03Z
2018-05-21T11:00:05Z
2018-05-21T11:00:04Z
2018-06-08T17:11:44Z
DOC: Improve docstring of Timedelta.delta
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index f7bb6c1dbb304..4ecbe672dcc16 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -760,7 +760,36 @@ cdef class _Timedelta(timedelta): @property def delta(self): - """ retu...
- [ ] closes #xxxx - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.pyx" | flake8 --diff` - [ ] whatsnew entry ``` ################################################################################ ###################### Docstring (pandas.Timedelta.delta) ###################### ########...
https://api.github.com/repos/pandas-dev/pandas/pulls/21135
2018-05-19T15:48:47Z
2018-05-19T20:13:41Z
null
2018-05-19T20:13:41Z
BUG: Should not raise error in concatenating Series with numpy scalar and tuple names (GH21015)
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 9382d74f95295..5973ad2ebf43f 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -82,7 +82,7 @@ Plotting Reshaping ^^^^^^^^^ -- +- Bug in :func:`concat` where error was raised in concatenating :cla...
- [x] closes #21015 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21132
2018-05-19T13:26:57Z
2018-05-21T10:41:20Z
2018-05-21T10:41:20Z
2018-06-08T17:11:01Z
Spell check
diff --git a/pandas/core/base.py b/pandas/core/base.py index aa051c6f5eaef..c331ead8d2fef 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -114,7 +114,7 @@ def _reset_cache(self, key=None): def __sizeof__(self): """ - Generates the total memory usage for a object that returns + ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21130
2018-05-19T04:24:56Z
2018-05-19T17:46:10Z
2018-05-19T17:46:10Z
2018-06-08T17:09:19Z
DEPR: Add deprecated index attribute names to deprecation list
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 9382d74f95295..c8a2076064c02 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -44,6 +44,8 @@ Documentation Changes Bug Fixes ~~~~~~~~~ +- tab completion on :class:`Index` in IPython no longer ou...
In ipython, when you press tab (e.g. ``idx.<tab>``) a long list of deprecations shows up: ``` C:\Users\TP\Miniconda3\envs\pandas-dev\lib\site-packages\jedi\evaluate\compiled\__init__.py:328: FutureWarning: Int64Index.base is deprecated and will be removed in a future version getattr(obj, name) C:\Users\TP\Minic...
https://api.github.com/repos/pandas-dev/pandas/pulls/21125
2018-05-18T20:57:34Z
2018-05-21T10:44:49Z
2018-05-21T10:44:49Z
2018-10-27T08:16:31Z
DEPR: Add deprecated index attribute names to deprecation list
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 35d150dc263b8..d45b4e19c6aac 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -30,6 +30,7 @@ Performance Improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Improved performance of :meth:`CategoricalIndex.i...
In ipython, when you press tab (e.g. ``idx.<tab>`` a long list of deprecations shows up: ``` C:\Users\TP\Miniconda3\envs\pandas-dev\lib\site-packages\jedi\evaluate\compiled\__init__.py:328: FutureWarning: Int64Index.base is deprecated and will be removed in a future version getattr(obj, name) C:\Users\TP\Minico...
https://api.github.com/repos/pandas-dev/pandas/pulls/21124
2018-05-18T19:05:51Z
2018-05-18T19:06:19Z
null
2018-05-18T19:06:19Z
ENH: add np.nan funcs to _cython_table
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 5a553264e828b..e08f9809c8f92 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -94,3 +94,9 @@ Categorical ^^^^^^^^^^^ - + +Numeric +^^^^^^^ + +- :meth:`~DataFrame.agg` now correctly handles numpy...
closes #19629 closes #21134 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This started as a copy of #19670 by @AaronCritchley, but has solved two bugs that the tests surfaced along the way. Bug 1: there is currently a bug in ``df.aggrega...
https://api.github.com/repos/pandas-dev/pandas/pulls/21123
2018-05-18T18:47:01Z
2018-07-28T23:08:21Z
null
2018-07-28T23:08:21Z
Resolution docstring
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 76849f2116123..a76ebc8000e54 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -834,7 +834,46 @@ cdef class _Timedelta(timedelta): @property def resolution(self): - """...
- [ ] closes #xxxx - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` ################################################################################ ################### Docstring (pandas.Timedelta.resolution) ################### #########...
https://api.github.com/repos/pandas-dev/pandas/pulls/21122
2018-05-18T16:16:56Z
2018-07-08T12:58:40Z
2018-07-08T12:58:40Z
2018-07-08T12:58:49Z
Idx droplevel
diff --git a/doc/source/api.rst b/doc/source/api.rst index d00e5511f1100..4faec93490fde 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1459,7 +1459,6 @@ Modifying and Computations Index.is_floating Index.is_integer Index.is_interval - Index.is_lexsorted_for_tuple Index.is_mixed Index...
- [x] closes #21115 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Collateral change: if ``mi`` is a ``MultiIndex``, ``mi.droplevel([])`` will now return ``mi`` itself, not a copy of it. Given that these are immutable objects, seems OK to me - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21116
2018-05-18T08:18:02Z
2018-05-21T23:13:49Z
2018-05-21T23:13:49Z
2018-06-29T08:41:52Z
DOC: Add linspace range behavior to the timeseries/timedeltas/interval docs
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index c81842d3d9212..ec517d3e07bdf 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -924,6 +924,55 @@ bins, with ``NaN`` representing a missing value similar to other dtypes. pd.cut([0, 3, 5, 1], bins=c.categories) + +Generating...
Follow-up to #21009 `timeseries.rst`: - Added documentation for linspace behavior of `date_range` `timedeltas.rst`: - Cleaned up `timedelta_range` documentation for the standard behavior - Added documentation for linspace behavior of `timedelta_range` `advanced.rst`: - Added documentation for the standard ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21114
2018-05-18T04:43:06Z
2018-05-22T07:15:04Z
2018-05-22T07:15:04Z
2018-06-22T17:14:57Z
BUG: to_clipboard fails to format output for Excel
diff --git a/doc/source/whatsnew/v0.23.2.txt b/doc/source/whatsnew/v0.23.2.txt index 987f171878d0b..1ca693755b3c6 100644 --- a/doc/source/whatsnew/v0.23.2.txt +++ b/doc/source/whatsnew/v0.23.2.txt @@ -57,6 +57,7 @@ Fixed Regressions - Bug in both :meth:`DataFrame.first_valid_index` and :meth:`Series.first_valid_index`...
`DataFrame.to_clipboard` has been broken for pasting to excel. Tables are copied with spaces as delimiters instead of tabs (#21104). This issue originated in https://github.com/pandas-dev/pandas/commit/e1d5a2738235fec22f3cfad4814e09e3e3786f8c#diff-3f25860d9237143c1952a1f93c3aae18R102 which I've partially reverte...
https://api.github.com/repos/pandas-dev/pandas/pulls/21111
2018-05-17T23:18:20Z
2018-06-29T12:22:17Z
2018-06-29T12:22:16Z
2018-07-02T15:44:24Z
PERF: Speedup in printing DataFrames of long strings
Currently, when printing DataFrames, each element of a table to be printed is first formatted in its entirety by `GenericArrayFormatter._format_strings` and then truncated by `_make_fixed_width`. When processing DataFrames that contain very long strings, there is a noticeable computation delay when calling `DataFrame....
https://api.github.com/repos/pandas-dev/pandas/pulls/21110
2018-05-17T22:36:43Z
2018-06-19T00:04:17Z
null
2018-06-19T00:35:52Z
DOC: Add sphinx spelling extension
diff --git a/Makefile b/Makefile index c79175cd3c401..4a82566cf726e 100644 --- a/Makefile +++ b/Makefile @@ -23,3 +23,4 @@ doc: cd doc; \ python make.py clean; \ python make.py html + python make.py spellcheck diff --git a/doc/make.py b/doc/make.py index 4967f30453fd1..4d54a2415a194 100755 --- a/doc/make.py +++ b...
This is my first time contributing to a project this big so I hope everything is okay I am still working on fixing bugs and polishing a few things but here is what I have done so far: - fixed typos - updated a wordlist txt file with words to be ignored by the spellchecker - added the spellcheck method to the Doc...
https://api.github.com/repos/pandas-dev/pandas/pulls/21109
2018-05-17T20:53:32Z
2018-06-07T13:20:33Z
2018-06-07T13:20:33Z
2018-06-12T07:58:06Z
PERF: Improve performance of CategoricalIndex.is_unique
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 35d150dc263b8..d45b4e19c6aac 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -30,6 +30,7 @@ Performance Improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Improved performance of :meth:`CategoricalIndex.i...
``CategoricalIndex.is_unique`` creates an extraneous boolean array. By changing ``CategoricalIndex.is_unique`` to use ``CategoricalIndex._engine.is_unique`` instead, this array creation is avoided. We simultaneously get to set ``is_monotonic*`` for free, and therefore will save time, if that property is called later. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21107
2018-05-17T19:14:55Z
2018-06-04T21:43:17Z
2018-06-04T21:43:17Z
2018-10-27T08:16:21Z
Replaced open with Context Mgrs in Parser Tests
diff --git a/pandas/tests/io/parser/common.py b/pandas/tests/io/parser/common.py index 2423ddcd9a1a0..2b7ff1f5a9879 100644 --- a/pandas/tests/io/parser/common.py +++ b/pandas/tests/io/parser/common.py @@ -54,20 +54,21 @@ def test_bad_stream_exception(self): # and C engine will raise UnicodeDecodeError instead ...
Maybe closes #21102 and #19984, though if not should still work as a general cleanup
https://api.github.com/repos/pandas-dev/pandas/pulls/21105
2018-05-17T16:08:22Z
2018-05-19T20:08:19Z
2018-05-19T20:08:18Z
2018-06-08T17:09:48Z
BUG: type aliasing is not allowed to be compared using isinstance()
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 35d150dc263b8..9c19d4d6bbaad 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -48,6 +48,11 @@ Groupby/Resample/Rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug in :func:`DataFrame.agg` where applying mult...
- [X] closes #21078 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry As raised in #21078, Python 3.5.4 supports the using `isinstance()` with `typing.re.Pattern` But it does not support the same method in 3.5.2. ``` Python Python 3.5.2 (defau...
https://api.github.com/repos/pandas-dev/pandas/pulls/21098
2018-05-17T04:02:09Z
2018-05-17T20:55:14Z
2018-05-17T20:55:14Z
2018-05-19T23:47:10Z
Support for OO Optimization
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 35484e34ee9eb..654b27624a6fe 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -46,8 +46,6 @@ Documentation Changes Bug Fixes ~~~~~~~~~ -- tab completion on :class:`Index` in IPython no longer ou...
- [X] closes #21071 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21093
2018-05-16T21:26:01Z
2018-05-30T21:04:48Z
2018-05-30T21:04:48Z
2018-06-08T17:18:57Z
BUG: assert_index_equal does not raise error for check_categorical=False when comparing 2 CategoricalIndex objects
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 5c9c3e2931bd9..d211a21546978 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -46,6 +46,11 @@ Bug Fixes - - +Categorical +^^^^^^^^^^^ + +- Bug in :func:`pandas.util.testing.assert_index_equal` w...
- [x] closes #19776 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry * tests added for `check_categorical` parameter in `assert_series_equal` * cleaned up `assert_categorical_equal` parameter order and docstring to match other functions (`obj` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21092
2018-05-16T18:55:14Z
2018-05-19T20:10:01Z
2018-05-19T20:10:00Z
2018-06-08T17:10:27Z
BUG: to_records() fails for MultiIndex DF (#21064)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3886b6c142305..5f9e43a158b0f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -131,7 +131,7 @@ Indexing MultiIndex ^^^^^^^^^^ -- +- Bug :func:`to_records` fails for empty MultiIndex DF (:issue:`...
- [x] closes #21064 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This fixes the bug that prevents using `to_records` on an empty dataframe that has a MultiIndex `self.index.values` returns an empty array (no tuples) for an empty MultiIndex...
https://api.github.com/repos/pandas-dev/pandas/pulls/21082
2018-05-16T12:10:05Z
2018-12-03T01:43:49Z
null
2018-12-03T01:43:49Z
Fixed extensionarray ref [ci skip]
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index feba9d856789b..a099fb40c35a7 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -202,7 +202,7 @@ for storing ip addresses. ...: ``IPArray`` isn't a normal 1-D NumPy array, but because it's a...
[ci skip]
https://api.github.com/repos/pandas-dev/pandas/pulls/21077
2018-05-16T11:09:26Z
2018-05-16T11:09:33Z
2018-05-16T11:09:33Z
2018-05-16T11:09:36Z
DOC: Start 0.24.0 whatsnew [ci skip]
diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst index d61a98fe2dae4..c744e44b4c17c 100644 --- a/doc/source/whatsnew.rst +++ b/doc/source/whatsnew.rst @@ -18,6 +18,10 @@ What's New These are new features and improvements of note in each release. +.. include:: whatsnew/v0.24.0.txt + +.. include:: what...
[ci skip]
https://api.github.com/repos/pandas-dev/pandas/pulls/21072
2018-05-16T03:07:04Z
2018-05-16T03:07:34Z
2018-05-16T03:07:34Z
2018-05-26T10:45:00Z
DOC: Correct the date of whatsnew v0.23 #21067
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 3f89de1dc22d8..feba9d856789b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1,6 +1,6 @@ .. _whatsnew_0230: -v0.23.0 (May 15, 2017) +v0.23.0 (May 15, 2018) ---------------------- This is a ...
- [x] closes #21067 - [x] tests added / passed (NA, just the DOC) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21069
2018-05-16T02:24:03Z
2018-05-16T03:02:00Z
2018-05-16T03:02:00Z
2018-05-16T13:34:50Z
Prevent Unlimited Agg Recursion with Duplicate Col Names
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 5c9c3e2931bd9..338364a943edf 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -43,7 +43,10 @@ Documentation Changes Bug Fixes ~~~~~~~~~ -- +Groupby/Resample/Rolling +^^^^^^^^^^^^^^^^^^^^^^^^ + +...
- [X] closes #21063 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The `_gotitem` implementation for `DataFrame` seems a little strange so there may be a more comprehensive approach, but this should prevent the issue for the time being Didn'...
https://api.github.com/repos/pandas-dev/pandas/pulls/21066
2018-05-15T18:29:40Z
2018-05-17T12:42:15Z
2018-05-17T12:42:14Z
2018-06-08T17:08:34Z
DOC: updated docstring for nanoseconds function per doc guidelines
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index d17d4e7139d72..f7bb6c1dbb304 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -791,9 +791,32 @@ cdef class _Timedelta(timedelta): @property def nanoseconds(self): """ ...
- [ ] closes #xxxx - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` ################################################################################ ################### Docstring (pandas.Timedelta.nanoseconds) ################### #########...
https://api.github.com/repos/pandas-dev/pandas/pulls/21065
2018-05-15T17:20:02Z
2018-05-17T00:20:43Z
2018-05-17T00:20:43Z
2018-06-08T17:06:45Z
Pass sort for agg multiple
diff --git a/pandas/core/base.py b/pandas/core/base.py index 5022beabef76b..fa78c89ed4ee7 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -608,7 +608,7 @@ def _aggregate_multiple_funcs(self, arg, _level, _axis): raise ValueError("no results") try: - return concat(results...
xref https://github.com/pandas-dev/pandas/issues/20909
https://api.github.com/repos/pandas-dev/pandas/pulls/21062
2018-05-15T16:07:43Z
2018-05-15T20:02:19Z
2018-05-15T20:02:19Z
2018-05-15T20:02:33Z
DOC: add highlights and toc to whatsnew file for 0.23.0
diff --git a/doc/source/release.rst b/doc/source/release.rst index 5fe397a7cbb37..32db2ff5ebb24 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -42,7 +42,7 @@ pandas 0.23.0 **Release date**: May 15, 2017 -This is a major release from 0.23.0 and includes a number of API changes, new +This is a m...
@TomAugspurger in case you didn't do this yet
https://api.github.com/repos/pandas-dev/pandas/pulls/21061
2018-05-15T15:31:46Z
2018-05-15T20:05:26Z
2018-05-15T20:05:26Z
2018-05-15T20:05:26Z
Add epoch alternative to deprecation message
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 248c648c33db3..d17d4e7139d72 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1196,6 +1196,9 @@ class Timedelta(_Timedelta): msg = textwrap.dedent("""\ ...
cfr https://github.com/pandas-dev/pandas/pull/21036#issuecomment-389162167
https://api.github.com/repos/pandas-dev/pandas/pulls/21060
2018-05-15T15:24:59Z
2018-05-15T18:09:49Z
2018-05-15T18:09:49Z
2018-05-15T18:11:18Z
0.22.x
diff --git a/.gitignore b/.gitignore index ff0a6aef47163..b1748ae72b8ba 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,4 @@ doc/build/html/index.html doc/tmp.sv doc/source/styled.xlsx doc/source/templates/ +env/ diff --git a/.travis.yml b/.travis.yml index fe1a2950dbf08..42b4ef0396fc8 100644 --- a/.travis.y...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21059
2018-05-15T15:24:48Z
2018-05-15T16:44:13Z
null
2018-05-15T16:44:13Z
Fixed space in small info
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0437c479c9d81..dccc840f5affd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2231,7 +2231,7 @@ def _sizeof_fmt(num, size_qualifier): # returns size in human readable format for x in ['bytes', 'KB', 'MB', 'GB', 'TB'...
Closes https://github.com/pandas-dev/pandas/issues/21056 ping @jreback @jorisvandenbossche this should be the last failure that was picked up by dask's tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/21057
2018-05-15T14:54:28Z
2018-05-15T19:04:11Z
2018-05-15T19:04:10Z
2018-05-15T21:36:26Z
BUG: Keep original name in str.cat
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index d40ff02fd0285..81d775157cf62 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -2320,9 +2320,9 @@ def cat(self, others=None, sep=None, na_rep=None, join=None): res = str_cat(data, others=others, sep=sep, na_rep=na_rep) ...
Closes https://github.com/pandas-dev/pandas/issues/21053 cc @jreback @jorisvandenbossche @h-vetinari for a quick check if you have a chance.
https://api.github.com/repos/pandas-dev/pandas/pulls/21054
2018-05-15T13:51:20Z
2018-05-15T15:07:43Z
2018-05-15T15:07:42Z
2018-05-15T15:09:43Z
DOC: Updated release and whatsnew for 0.23.0
diff --git a/doc/source/release.rst b/doc/source/release.rst index 709c9b15b55f7..5fe397a7cbb37 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -37,6 +37,361 @@ analysis / manipulation tool available in any language. * Binary installers on PyPI: https://pypi.org/project/pandas * Documentation: htt...
https://api.github.com/repos/pandas-dev/pandas/pulls/21051
2018-05-15T13:20:02Z
2018-05-15T13:49:18Z
2018-05-15T13:49:18Z
2018-05-15T16:21:41Z
DOC: Fix find_undoc_args script to use getfullargspec()
diff --git a/scripts/find_undoc_args.py b/scripts/find_undoc_args.py index a135c8e5171a1..c4d846ee3c3e5 100755 --- a/scripts/find_undoc_args.py +++ b/scripts/find_undoc_args.py @@ -62,7 +62,7 @@ def build_loc(f): path = f.__code__.co_filename.split(args.path, 1)[-1][1:] return dict(path=path, lnum=f._...
Use [getfullargspec](https://docs.python.org/3/library/inspect.html#inspect.getfullargspec) instead of [getargspec](https://docs.python.org/3/library/inspect.html#inspect.getargspec) to fix the find_undoc_args.py script
https://api.github.com/repos/pandas-dev/pandas/pulls/21046
2018-05-15T06:03:16Z
2018-05-17T06:39:15Z
null
2018-05-17T06:39:15Z
Fix Inconsistent MultiIndex Sorting
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dccc840f5affd..2b65af4b368a9 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4454,7 +4454,10 @@ def sort_index(self, axis=0, level=None, ascending=True, inplace=False, axis = self._get_axis_number(axis) labels = self._get_...
closes #20994 closes #20945 closes #21052 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a pretty dark corner and I'll admit that I don't fully understand all of the elements in play. That said, the first problem I noticed with the fi...
https://api.github.com/repos/pandas-dev/pandas/pulls/21043
2018-05-15T02:10:13Z
2018-05-19T20:15:04Z
2018-05-19T20:15:03Z
2018-06-05T09:04:41Z
CI: Fixed linting on download_wheels
diff --git a/scripts/download_wheels.py b/scripts/download_wheels.py index a4705d0e4e63c..f5cdbbe36d90d 100644 --- a/scripts/download_wheels.py +++ b/scripts/download_wheels.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """Fetch wheels from wheels.scipy.org for a pandas version.""" import argparse import pathlib @@ -23,...
xref https://github.com/pandas-dev/pandas/pull/20928#pullrequestreview-120060546
https://api.github.com/repos/pandas-dev/pandas/pulls/21042
2018-05-15T01:34:05Z
2018-05-15T10:00:21Z
2018-05-15T10:00:21Z
2018-05-15T10:00:24Z
Docstring shift
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 38f334762fa88..84595153103c7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8012,12 +8012,12 @@ def mask(self, cond, other=np.nan, inplace=False, axis=None, level=None, errors=errors) _shared_docs[...
- [x] closes #20492 - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21039
2018-05-14T21:35:24Z
2018-11-03T06:40:11Z
null
2018-11-03T06:40:11Z
DOC: Enhancing pivot / reshape docs
diff --git a/doc/source/reshaping.rst b/doc/source/reshaping.rst index 7d9925d800441..feb58c1c11dfd 100644 --- a/doc/source/reshaping.rst +++ b/doc/source/reshaping.rst @@ -17,6 +17,8 @@ Reshaping and Pivot Tables Reshaping by pivoting DataFrame objects --------------------------------------- +.. image:: _static/re...
- [x] closes #19089 - [x] tests added / passed (NA Just Docs) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Enhancing pivot / reshape docs Added more examples and added Q + A section.
https://api.github.com/repos/pandas-dev/pandas/pulls/21038
2018-05-14T20:13:41Z
2018-11-12T00:21:59Z
2018-11-12T00:21:58Z
2018-11-12T00:22:12Z
Warn on ndarray[int] // timedelta
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index adb4cdf2974a0..73e3e721aad71 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -257,7 +257,7 @@ Pass ``errors='coerce'`` to convert unparseable data to ``NaT`` (not a time): Epoch Timestamps ~~~~~~~~~~~~~~~~ -pandas sup...
Closes #19761. ```python In [2]: pd.DatetimeIndex(['1931', '1970', '2017']).view('i8') // pd.Timedelta(1, unit='s') pandas-dev/bin/ipython:1: FutureWarning: Floor division between integer array and Timedelta is deprecated. Use 'array // timedelta.value' instead. Out[2]: array([-1230768000, 0, 148322...
https://api.github.com/repos/pandas-dev/pandas/pulls/21036
2018-05-14T18:47:31Z
2018-05-15T10:01:33Z
2018-05-15T10:01:33Z
2019-12-05T15:53:26Z
DOC: Rephrased doc for Series.asof. Added examples
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6ca8f6731bbb8..a0886eb431882 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6495,40 +6495,98 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False, def asof(self, where, subset=None): """ - ...
Used code from https://github.com/pandas-dev/pandas/issues/20652 as example, to illustrate different behaviours. - [x] closes #20652 - [x] tests added / passed (N/A, docs) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21034
2018-05-14T18:26:18Z
2018-11-04T15:01:16Z
2018-11-04T15:01:16Z
2018-11-12T13:22:21Z
TST: add arithmetic operators fixture
diff --git a/pandas/conftest.py b/pandas/conftest.py index 137afaa3b3490..b09cb872a12fb 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -2,6 +2,7 @@ import numpy as np import pandas as pd +from pandas.compat import PY3 import pandas.util._test_decorators as td @@ -77,6 +78,24 @@ def observed(reques...
https://api.github.com/repos/pandas-dev/pandas/pulls/21033
2018-05-14T12:21:28Z
2018-05-14T23:49:23Z
2018-05-14T23:49:23Z
2018-05-14T23:49:23Z
BUG: Fixed 19497 - previously, renaming an index changed its type if …
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 1660c8d9fcdc5..f441e6976bd89 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1364,6 +1364,7 @@ Reshaping - Improved error message for :func:`DataFrame.merge` when there is no common merge key (:i...
Fixes bug GH19497 - previously, renaming an index with tuples changed its type (i.e. from Index to MultiIndex). - [x] closes #19497 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/21029
2018-05-14T06:57:19Z
2018-05-14T23:52:16Z
2018-05-14T23:52:15Z
2018-05-15T03:53:24Z
BUG: Iteration over DatetimeIndex stops at chunksize (GH21012)
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 9761974d77d4b..83950f1d71633 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1365,7 +1365,8 @@ def __iter__(self): converted = libts.ints_to_pydatetime(data[start_i:end_i], ...
- [x] closes #21012 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry avoided using `yield` and changing DatetimeIndex itself into a iterator. @cbertinato 's advice was helpful.
https://api.github.com/repos/pandas-dev/pandas/pulls/21027
2018-05-14T01:02:31Z
2018-05-15T10:02:35Z
2018-05-15T10:02:34Z
2018-06-25T20:59:21Z
DOC: updated the Series.str.rsplit and Series.str.split docstrings
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 08239ae4dae20..b27cfdfe3f1bd 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1343,108 +1343,7 @@ def str_pad(arr, width, side='left', fillchar=' '): def str_split(arr, pat=None, n=None): - """ - Split strings around given...
- [ ] closes #xxxx - [x] tests passed validate_docstrings.py - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] rendered document looks ok 'python make.py --single pandas.Series.str.rsplit' and 'python make.py --single pandas.Series.str.split'
https://api.github.com/repos/pandas-dev/pandas/pulls/21026
2018-05-14T00:32:12Z
2018-06-22T23:36:45Z
2018-06-22T23:36:45Z
2018-06-22T23:36:49Z
PERF: improved performance of CategoricalIndex.is_monotonic*
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index ae1d7029217a4..5464e7cba22c3 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -173,3 +173,23 @@ def setup(self, dtype): def time_isin_categorical(self, dtype): se...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ```python >>> n = 1000000 >>> ci = pd.CategoricalIndex(list('a' * n + 'b' * n + 'c' * n)) >>> %t ci.is_monotonic_increasing 22 ms # v0.22 and master 227 ns # this commit ``` There seem to be a few more like this, whe...
https://api.github.com/repos/pandas-dev/pandas/pulls/21025
2018-05-14T00:16:10Z
2018-05-17T00:21:51Z
2018-05-17T00:21:51Z
2018-06-08T17:08:16Z
PERF: __contains__ method for Categorical
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index 5464e7cba22c3..41460eaf47699 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -193,3 +193,53 @@ def time_categorical_series_is_monotonic_increasing(self): def time_categor...
Calling `key in Categorical(...)` trivially falls back to calling `__iter__` and then forces a full construction of the array by invoking `get_values`. This implementation is faster in best case situations than using .e.g.`any(Categorical.isin(key))` since we do not care about the complete array. Not sure if I need t...
https://api.github.com/repos/pandas-dev/pandas/pulls/21022
2018-05-13T17:53:38Z
2018-06-19T01:46:31Z
null
2023-05-11T01:17:50Z
DOC: some cleanup of various whatsnew files
diff --git a/doc/source/whatsnew/v0.13.0.txt b/doc/source/whatsnew/v0.13.0.txt index f440be1ddd56e..02ddc362255ec 100644 --- a/doc/source/whatsnew/v0.13.0.txt +++ b/doc/source/whatsnew/v0.13.0.txt @@ -651,7 +651,7 @@ Enhancements Additionally, the ``method`` argument to ``interpolate`` has been expanded to incl...
Over time, various whatsnew text files have had some errors that caused parsing errors for sphinx/rst. This PR cleans up various such bugs that have been causing wrong parsing output.
https://api.github.com/repos/pandas-dev/pandas/pulls/21021
2018-05-13T15:27:02Z
2018-05-15T00:02:04Z
2018-05-15T00:02:04Z
2018-05-18T18:05:14Z
BUG: CategoricalIndex.searchsorted doesn't return a scalar if input was scalar
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 9c29c34adb7dd..db39a1c558b97 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -88,7 +88,8 @@ Indexing - Bug in :meth:`MultiIndex.set_names` where error raised for a ``MultiIndex`` with ``nlevels ==...
`CategoricalIndex.searchsorted` returns the wrong shape for scalar input. Numpy arrays and all other index types return a scalar if the input is a scalar, but the `CategoricalIndex` does not For example ``` >>> import numpy as np >>> np.array([1, 2, 3]).searchsorted(1) 0 >>> np.array([1, 2, 3]).searchsorted([1]...
https://api.github.com/repos/pandas-dev/pandas/pulls/21019
2018-05-13T09:51:10Z
2018-11-18T22:29:55Z
null
2018-11-18T22:29:55Z
BUG: .reset_index() should raise with an invalid level name (GH20925)
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 35d150dc263b8..90780f118016c 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -59,7 +59,7 @@ Conversion Indexing ^^^^^^^^ -- +- Bug in :meth:`Series.reset_index` where appropriate error was not ...
#20925 Raises appropriate error for Series.reset_index(level_name, drop=True) when index is flat and an invalid level is supplied - [x] closes #20925 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21016
2018-05-12T14:21:23Z
2018-05-18T05:53:46Z
2018-05-18T05:53:45Z
2018-06-08T17:09:13Z
BUG: Concatentation of TZ-aware dataframes
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index d10d51352d0e4..72ca371f6c6be 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1372,6 +1372,8 @@ Reshaping - Bug in :class:`Series` constructor with a ``dtype=str``, previously raised in some cases...
closes #12396 closes #18447 supersedes #19327
https://api.github.com/repos/pandas-dev/pandas/pulls/21014
2018-05-11T21:52:04Z
2018-05-13T13:17:46Z
null
2018-05-13T13:18:21Z
Don't raise warning on merging int and float with nan
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 0204e655bfa2c..4d8897fb7c811 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -955,14 +955,14 @@ def _maybe_coerce_merge_keys(self): # check whether ints and floats elif is_i...
Closes https://github.com/pandas-dev/pandas/issues/20998
https://api.github.com/repos/pandas-dev/pandas/pulls/21011
2018-05-11T08:58:09Z
2018-05-11T11:46:29Z
2018-05-11T11:46:29Z
2018-05-24T20:20:22Z
CLN: Revert "Return Python integers" (not needed after #20989)
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 741e5553141f7..205ab9002379d 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -195,7 +195,7 @@ cdef class IndexEngine: if count > 1: return indexer if count == 1: - return int(found[0]) + ...
This reverts commit 8e3d4d08501dc83d4c2302686c8342e7448c78e5. - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` I had introduced the explicit casting to solve broken tests on Windows, but @jreback's #20989 is the correct way to do it, so these are now redundant.
https://api.github.com/repos/pandas-dev/pandas/pulls/21010
2018-05-11T08:54:04Z
2018-05-11T13:06:08Z
null
2018-05-11T13:06:31Z
ENH: Implement linspace behavior for timedelta_range and interval_range
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 3f7bc0e8d8c3f..a8a201558ec9b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -526,7 +526,7 @@ Other Enhancements - Added new writer for exporting Stata dta files in version 117, ``StataWriter117``...
- [X] closes #20976 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Summary: - added linspace behavior support to `timedelta_range` - added linspace behavior support to `interval_range` - refactored `test_interval_range.py` to use `parame...
https://api.github.com/repos/pandas-dev/pandas/pulls/21009
2018-05-11T05:09:16Z
2018-05-11T11:53:49Z
2018-05-11T11:53:49Z
2018-05-11T14:50:46Z
MyPy cleanup and absolute imports in pandas.core.dtypes.common
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index ce87c0a8b0c5a..30949ca6d1d6b 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -195,13 +195,13 @@ def __setitem__(self, key, value): ) def __len__(self): + # type: () -> int """Length of ...
Starting the conversation towards #14468 There were a couple misplaced annotations below docstrings that were causing mypy to choke when running: ```bash mypy pandas --ignore-missing-imports ``` A starred import in pandas.core.dtypes.common was responsible for a lot of complaints from mypy. These were being ...
https://api.github.com/repos/pandas-dev/pandas/pulls/21008
2018-05-11T02:37:51Z
2018-06-23T16:12:19Z
2018-06-23T16:12:19Z
2018-06-23T16:12:23Z
DOC: cleanup of v0.23.0.txt
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 32f7447e5ef77..a262a85722329 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -519,7 +519,7 @@ Other Enhancements - :meth:`~pandas.core.window.Rolling.quantile` and :meth:`~pandas.core.window.Expan...
Cleanup of some errors in ``v.0.23.0.txt``
https://api.github.com/repos/pandas-dev/pandas/pulls/21007
2018-05-10T21:56:35Z
2018-05-11T06:49:14Z
2018-05-11T06:49:14Z
2018-05-18T18:05:14Z
Whatsnew Typo Correction
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 750227cd59f26..3f7bc0e8d8c3f 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -555,8 +555,8 @@ If installed, we now require: .. _whatsnew_0230.api_breaking.dict_insertion_order: -Instantation f...
https://api.github.com/repos/pandas-dev/pandas/pulls/21006
2018-05-10T19:56:55Z
2018-05-10T19:59:45Z
2018-05-10T19:59:45Z
2018-05-14T21:11:03Z
DOC: Added 0.23.1 whatsnew template
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt new file mode 100644 index 0000000000000..5c9c3e2931bd9 --- /dev/null +++ b/doc/source/whatsnew/v0.23.1.txt @@ -0,0 +1,82 @@ +.. _whatsnew_0231: + +v0.23.1 +------- + +This is a minor bug-fix release in the 0.23.x series and includes some sm...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/21001
2018-05-10T15:33:15Z
2018-05-16T03:00:32Z
2018-05-16T03:00:32Z
2018-06-12T14:33:51Z
PERF: removed coercion to int64 for arrays of ints in Categorical.from_codes
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index 0ffd5f881d626..ae1d7029217a4 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -51,6 +51,7 @@ def setup(self): self.values_some_nan = list(np.tile(self.categories + [np...
- [x] closes #18501 - [ ] tests added / **passed** - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``` In [3]: arr = np.ones(10000000,dtype='int8') # master In [4]: %timeit pd.Categorical.from_codes(arr, ['foo', 'bar']) 44.2 ms ± 545 µs per loop (mean ± std. dev. of 7...
https://api.github.com/repos/pandas-dev/pandas/pulls/21000
2018-05-10T14:38:06Z
2018-05-15T02:20:05Z
2018-05-15T02:20:05Z
2018-05-15T02:20:06Z
API: Added axis to take
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index e8f74cf58a262..88bc497f9f22d 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1448,7 +1448,7 @@ def func(arr, indexer, out, fill_value=np.nan): return func -def take(arr, indices, allow_fill=False, fill_value=Non...
- [x] closes #20932 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` One thing that's worrisome here: for N-D arrays, the `fill_value` argument is set for each element. In the case of IPArray, this is fine, since my storage NA-value is (0, 0), so I would pass `fill_v...
https://api.github.com/repos/pandas-dev/pandas/pulls/20999
2018-05-10T14:27:29Z
2018-05-10T18:25:31Z
2018-05-10T18:25:30Z
2018-05-10T18:25:35Z
ENH: Raise useful error when iterating a Window
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 32f7447e5ef77..8d20d7b6b78bd 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -966,6 +966,7 @@ Other API Changes - Constructing a Series from a list of length 1 no longer broadcasts this list when ...
Until Issue #11704 is completed, raise a NotImplementedError to provide a more clear error message when attempting to iterate over a Rolling or Expanding window.
https://api.github.com/repos/pandas-dev/pandas/pulls/20996
2018-05-09T22:12:22Z
2018-05-12T18:38:15Z
2018-05-12T18:38:15Z
2018-05-12T18:38:20Z
DEPR: DataFrame dropna accepting multiple axes
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 32f7447e5ef77..c47c7878843c2 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1005,6 +1005,7 @@ Deprecations - Setting ``PeriodIndex.freq`` (which was not guaranteed to work correctly) is deprecat...
Deprecates multiple axes passing to `dropna`. I added the whatsnew to 0.23.0 for now, I can move this to 0.24.0 later if preferred once the whatsnew doc is created. - [x] closes #20987 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20995
2018-05-09T21:41:01Z
2018-05-10T10:32:10Z
2018-05-10T10:32:10Z
2018-05-10T21:02:01Z
DOC: update Readme recommended tags for new contributors
diff --git a/README.md b/README.md index cd2cb99992977..3c8fe57400099 100644 --- a/README.md +++ b/README.md @@ -233,7 +233,7 @@ All contributions, bug reports, bug fixes, documentation improvements, enhanceme A detailed overview on how to contribute can be found in the **[contributing guide.](https://pandas.pydata....
This changes the recommended tag for new contributors from `Difficulty Novice` to `good first issue` in both main README.md and /doc/source/contributing.rst. closes #20982
https://api.github.com/repos/pandas-dev/pandas/pulls/20992
2018-05-09T15:16:31Z
2018-05-09T15:19:59Z
2018-05-09T15:19:59Z
2018-05-09T15:19:59Z
COMPAT: 32-bit indexing compat
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 9968d398e9040..741e5553141f7 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -8,7 +8,8 @@ from cpython.slice cimport PySlice_Check import numpy as np cimport numpy as cnp -from numpy cimport ndarray, float64_t, int32_t, int64_t, ...
xref #19539
https://api.github.com/repos/pandas-dev/pandas/pulls/20989
2018-05-09T10:52:04Z
2018-05-10T09:57:01Z
2018-05-10T09:57:01Z
2018-05-10T09:57:15Z
BUG: date_range linspace behavior respects tz
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index c6991bc016868..6f5c180c587bd 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -525,7 +525,7 @@ Other Enhancements library. (:issue:`20564`) - Added new writer for exporting Stata dta files in ve...
- [x] closes #20983 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (addendum to the v0.23 whatsnew entry for this feature)
https://api.github.com/repos/pandas-dev/pandas/pulls/20988
2018-05-09T06:47:02Z
2018-05-10T10:26:23Z
2018-05-10T10:26:23Z
2018-05-10T15:22:35Z
Consistent Return Structure for Rolling Apply
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index c6991bc016868..32f7447e5ef77 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1328,6 +1328,7 @@ Groupby/Resample/Rolling - Bug in :func:`DataFrame.groupby` where transformations using ``np.all`` a...
- [X] closes #14013 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry With the changes made in #20949 it appears possible to fix this bug by suppressing a `catch` block that was internal to Rolling's `_apply`. I'm not sure what the purpose of this...
https://api.github.com/repos/pandas-dev/pandas/pulls/20984
2018-05-09T00:07:16Z
2018-05-09T10:24:39Z
2018-05-09T10:24:38Z
2018-09-04T23:49:29Z
Preserve Alignment Between Index and Values for Non-Monotonic Stack
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index 0829aa8f5a509..622e3bd553f8c 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -653,7 +653,13 @@ def _convert_level_number(level_num, columns): # time to ravel the values new_data = {} lev...
- [X] closes #20945 - [X] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Not overly familiar with this code so submitting for review as there's probably a better way of going about it. The root cause of the referenced issue IIUC is that the index lab...
https://api.github.com/repos/pandas-dev/pandas/pulls/20980
2018-05-08T20:33:07Z
2018-06-02T18:42:29Z
null
2018-12-25T06:13:04Z
Parametrization of indexes/test_base #4
diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index 377b17d45265c..f4fa547574b9e 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -13,7 +13,7 @@ from pandas.tests.indexes.common import Base from pandas.compat import (range, lrange, lzip, ...
progress towards #20812 This should be it for parametrizing tests. Plan is to look at and clean up fixtures after this
https://api.github.com/repos/pandas-dev/pandas/pulls/20979
2018-05-08T16:27:54Z
2018-05-09T10:22:39Z
2018-05-09T10:22:39Z
2018-05-09T10:25:48Z
COMPAT: 32-bit indexing compat
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 858d08d73e603..2c40be17ce781 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1318,7 +1318,7 @@ def _convert_to_indexer(self, obj, axis=None, is_setter=False): (indexer, missing) = label...
xref #20939
https://api.github.com/repos/pandas-dev/pandas/pulls/20977
2018-05-08T10:28:40Z
2018-05-08T11:39:48Z
2018-05-08T11:39:48Z
2018-05-08T11:40:13Z
BUG: Fix drop_duplicates failure when DataFrame has no column
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ffb2ad046158f..a0559cef6831d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4354,6 +4354,9 @@ def duplicated(self, subset=None, keep='first'): from pandas.core.sorting import get_group_index from pandas._libs.hashtable im...
- [x] closes #20516 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20974
2018-05-07T15:26:52Z
2018-08-17T10:29:21Z
null
2018-08-17T10:29:21Z
CLN: simplify combine_first
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ffb2ad046158f..d43fb95a70555 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -43,7 +43,6 @@ is_extension_array_dtype, is_datetimetz, is_datetime64_any_dtype, - is_datetime64tz_dtype, is_bool_dtype, is_integer_dtyp...
https://api.github.com/repos/pandas-dev/pandas/pulls/20972
2018-05-07T10:26:28Z
2018-05-08T00:18:57Z
2018-05-08T00:18:57Z
2018-05-08T00:19:31Z
BUG: Fix isna cannot handle ambiguous typed list
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 05e0028047941..078a733a67a3e 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1364,6 +1364,7 @@ Reshaping - Bug in :func:`cut` and :func:`qcut` where timezone information was dropped (:issue:`1987...
- [x] closes #20675 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20971
2018-05-07T00:34:35Z
2018-05-08T00:06:50Z
2018-05-08T00:06:50Z
2018-05-08T00:06:55Z
Sharey keyword for boxplot
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 97a5975dad9a6..5a1bcce9b5970 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -48,22 +48,26 @@ Bug Fixes ~~~~~~~~~ Groupby/Resample/Rolling +~~~~~~~~~~~~~~~~~~~~~~~~ - Bug in :func:`DataFrame...
…to _subplots(). .. code-block:: jupyter-notebook %pylab inline import pandas as pd N = 100 rand = random.random(N) clas = random.binomial(5,.5, N) df = pd.DataFrame({'Rand': rand-clas, 'Rand2': rand, 'Class': clas}, inde...
https://api.github.com/repos/pandas-dev/pandas/pulls/20968
2018-05-06T17:03:31Z
2018-06-08T11:27:30Z
2018-06-08T11:27:29Z
2018-06-08T16:25:29Z
BUG: Fix wrong khash method definition
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index af1bee435eead..940505c01d6c6 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1254,6 +1254,7 @@ Indexing - Bug in ``.loc`` assignment with a single-element list-like incorrectly assigns as a list ...
- [x] closes #20722 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20966
2018-05-06T08:01:05Z
2018-05-08T10:35:11Z
2018-05-08T10:35:10Z
2018-05-08T10:35:17Z
BUG: Fix combine_first converts other columns type into floats unexpectedly
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 91575c311b409..83bd8ee9b3c74 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -867,3 +867,4 @@ Other - :meth:`DataFrame.nlargest` and :meth:`DataFrame.nsmallest` now returns the correct n values wh...
- [x] closes #20699 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20965
2018-05-06T06:54:02Z
2018-10-09T12:54:03Z
2018-10-09T12:54:03Z
2018-10-09T12:54:35Z
PERF: removed coercion to int64 in Categorical.from_codes
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index f91782459df67..d540a114749bb 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -578,7 +578,7 @@ def from_codes(cls, codes, categories, ordered=False): unordered. """ ...
- [x] closes #18501 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20961
2018-05-05T17:51:17Z
2018-05-05T19:49:59Z
null
2018-05-10T15:37:06Z
DOC: add reshaping visuals to the docs (Reshaping and Pivot Tables)
diff --git a/doc/source/_static/reshaping_melt.png b/doc/source/_static/reshaping_melt.png new file mode 100644 index 0000000000000..d0c4e77655e60 Binary files /dev/null and b/doc/source/_static/reshaping_melt.png differ diff --git a/doc/source/_static/reshaping_pivot.png b/doc/source/_static/reshaping_pivot.png new fi...
- [x] closes #20898 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20960
2018-05-05T16:44:22Z
2018-05-08T20:44:01Z
2018-05-08T20:44:01Z
2018-05-08T20:44:04Z
BUG in .groupby.apply when applying a function that has mixed data types and the user supplied function can fail on the grouping column
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index eb6c212731822..a77620fe6b36b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1320,6 +1320,7 @@ Groupby/Resample/Rolling - Bug in :func:`DataFrame.resample` that dropped timezone information (:iss...
closes #20949
https://api.github.com/repos/pandas-dev/pandas/pulls/20959
2018-05-05T14:29:27Z
2018-05-08T00:19:52Z
2018-05-08T00:19:52Z
2018-05-08T00:20:14Z
ENH: Return DatetimeIndex or TimedeltaIndex bins for q/cut when input is datelike
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index dfb7a3675fdd5..abfa57dc09334 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -161,6 +161,7 @@ Datetimelike API Changes - For :class:`DatetimeIndex` and :class:`TimedeltaIndex` with non-``None`` ``...
- [x] closes #19891 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20956
2018-05-05T05:29:13Z
2018-07-03T15:34:15Z
2018-07-03T15:34:15Z
2018-07-03T16:41:34Z
Add pip 9.0.3 to conda environment to avoid numpy 1.9.3 error
diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml index c3d3d59f895c6..91ee11f73f682 100644 --- a/ci/environment-dev.yaml +++ b/ci/environment-dev.yaml @@ -12,3 +12,4 @@ dependencies: - pytz - setuptools - sphinx + - pip==9.0.3
I obtain this error: 'No matching distribution found for numpy==1.9.3'. See #20952 for more details. This change works for me. Closes #20952 . - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20953
2018-05-04T14:31:15Z
2018-05-04T15:54:51Z
null
2018-05-04T16:33:30Z
CLN: add missing space in package's description
diff --git a/setup.py b/setup.py index a436f451a2a55..6febe674fb2a1 100755 --- a/setup.py +++ b/setup.py @@ -134,7 +134,7 @@ def build_extensions(self): _build_ext.build_extensions(self) -DESCRIPTION = ("Powerful data structures for data analysis, time series," +DESCRIPTION = ("Powerful data structures for...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The typo fixed here is in the package description, so it shows up in `pip show`. I'd say this fix needs no issue or whatsnew entry; if you feel otherwise, please say so and I'll ...
https://api.github.com/repos/pandas-dev/pandas/pulls/20950
2018-05-04T11:53:49Z
2018-05-05T12:43:45Z
2018-05-05T12:43:45Z
2018-05-05T12:43:48Z
Allow drop bins when using the cut function
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 6036ef7e221fb..750227cd59f26 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -525,6 +525,7 @@ Other Enhancements library. (:issue:`20564`) - Added new writer for exporting Stata dta files in ve...
- [ ] if cut(x, bins=[0, 1, 2, 3, 4, 5, 6, 6, 8, 8, 10], labels=False, retbins=True, right=False) will raise ValueError: You can drop duplicate edges by setting the 'duplicates' kwarg, so add 'duplicates' parameters to the cut function.
https://api.github.com/repos/pandas-dev/pandas/pulls/20947
2018-05-04T02:48:21Z
2018-05-10T18:27:48Z
2018-05-10T18:27:48Z
2018-05-11T02:11:25Z
BUG: Fix IntervalIndex.get_loc/get_indexer for IntervalIndex of length one
diff --git a/doc/source/api.rst b/doc/source/api.rst index 93edd090d846b..d00e5511f1100 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1632,6 +1632,8 @@ IntervalIndex Components IntervalIndex.length IntervalIndex.values IntervalIndex.is_non_overlapping_monotonic + IntervalIndex.get_loc + I...
- [X] closes #17284 - [X] closes #20921 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/20946
2018-05-04T00:25:09Z
2018-05-05T12:53:37Z
2018-05-05T12:53:36Z
2018-05-05T19:17:56Z
Update link to NumPy Docstring Standard explanation
diff --git a/doc/README.rst b/doc/README.rst index efa21fdd3a2d9..12950d323f5d3 100644 --- a/doc/README.rst +++ b/doc/README.rst @@ -42,7 +42,7 @@ Some other important things to know about the docs: - The docstrings follow the **Numpy Docstring Standard** which is used widely in the Scientific Python community. Thi...
- [ ] whatsnew Updated link to NumPy DocString from `https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt` to `https://numpydoc.readthedocs.io/en/latest/`
https://api.github.com/repos/pandas-dev/pandas/pulls/20942
2018-05-03T10:19:32Z
2018-05-03T10:22:30Z
2018-05-03T10:22:30Z
2018-05-03T10:22:33Z
DOC: followup to #20583, observed kwarg for .groupby
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 3616a7e1b41d2..da13a34cccfea 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -994,7 +994,7 @@ is only interesting over one column (here ``colname``), it may be filtered Handling of (un)observed Categorical values ~~~~~~~~~~~~~~~~~~...
closes #20902
https://api.github.com/repos/pandas-dev/pandas/pulls/20941
2018-05-03T10:16:31Z
2018-05-05T12:44:14Z
2018-05-05T12:44:14Z
2018-05-05T12:44:44Z
BUG: cant modify df with duplicate index (#17105)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index e3b4eb5e22dec..c1f588b0072fd 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1253,6 +1253,7 @@ Indexing - Bug in ``Series.is_unique`` where extraneous output in stderr is shown if Series contains...
- [x] closes #17105 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixing to allow the modification of DataFrames that have duplicate elements in the index. Previously it would fail with ``` AttributeError: 'bool' object has no attribute 'a...
https://api.github.com/repos/pandas-dev/pandas/pulls/20939
2018-05-03T08:28:15Z
2018-05-08T00:23:34Z
2018-05-08T00:23:34Z
2018-05-08T00:23:41Z