Skip to content

Commit 77d4e19

Browse files
committed
ENH: gb.is_monotonic_increasing pandas-dev#17015 rebase to upstream/master
1 parent d0b0155 commit 77d4e19

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

doc/source/whatsnew/v0.21.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Other Enhancements
2222
^^^^^^^^^^^^^^^^^^
2323

2424
- :meth:`Timestamp.timestamp` is now available in Python 2.7. (:issue:`17329`)
25+
- :class:`Grouper` and :class:`TimeGrouper` now have a friendly repr output (:issue:`18203`).
2526
- :meth:`groupby.is_monotonic_increasing()` and :meth:`.is_monotonic_decreasing()` extend :meth:`Series.is_monotonic_increasing()` to groups. (:issue:`17015`)
26-
-
2727

2828
.. _whatsnew_0211.deprecations:
2929

pandas/tests/groupby/test_whitelist.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,18 @@ def test_groupby_blacklist(df_letters):
239239
def test_tab_completion(mframe):
240240
grp = mframe.groupby(level='second')
241241
results = set([v for v in dir(grp) if not v.startswith('_')])
242-
expected = set(
243-
['A', 'B', 'C', 'agg', 'aggregate', 'apply', 'boxplot', 'filter',
244-
'first', 'get_group', 'groups', 'hist', 'indices', 'last', 'max',
245-
'mean', 'median', 'min', 'ngroups', 'nth', 'ohlc', 'plot',
246-
'prod', 'size', 'std', 'sum', 'transform', 'var', 'sem', 'count',
247-
'nunique', 'head', 'describe', 'cummax', 'quantile',
248-
'rank', 'cumprod', 'tail', 'resample', 'cummin', 'fillna',
249-
'cumsum', 'cumcount', 'ngroup', 'all', 'shift', 'skew',
250-
'take', 'tshift', 'pct_change', 'any', 'mad', 'corr', 'corrwith',
251-
'cov', 'dtypes', 'ndim', 'diff', 'idxmax', 'idxmin',
252-
'ffill', 'bfill', 'pad', 'backfill', 'rolling', 'expanding', 'pipe',
253-
'is_monotonic_increasing', 'is_monotonic_decreasing'])
242+
expected = {
243+
'A', 'B', 'C', 'agg', 'aggregate', 'apply', 'boxplot', 'filter',
244+
'first', 'get_group', 'groups', 'hist', 'indices', 'last', 'max',
245+
'mean', 'median', 'min', 'ngroups', 'nth', 'ohlc', 'plot',
246+
'prod', 'size', 'std', 'sum', 'transform', 'var', 'sem', 'count',
247+
'nunique', 'head', 'describe', 'cummax', 'quantile',
248+
'rank', 'cumprod', 'tail', 'resample', 'cummin', 'fillna',
249+
'cumsum', 'cumcount', 'ngroup', 'all', 'shift', 'skew',
250+
'take', 'tshift', 'pct_change', 'any', 'mad', 'corr', 'corrwith',
251+
'cov', 'dtypes', 'ndim', 'diff', 'idxmax', 'idxmin',
252+
'ffill', 'bfill', 'pad', 'backfill', 'rolling', 'expanding', 'pipe',
253+
'is_monotonic_increasing', 'is_monotonic_decreasing'}
254254
assert results == expected
255255

256256

0 commit comments

Comments
 (0)