Add GroupBy.pipe method · topper-123/pandas@8614c32 (original) (raw)
`@@ -239,17 +239,17 @@ def test_groupby_blacklist(df_letters):
`
239
239
`def test_tab_completion(mframe):
`
240
240
`grp = mframe.groupby(level='second')
`
241
241
`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'])
`
``
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
253
`assert results == expected
`
254
254
``
255
255
``