We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025e6ae commit 6826845Copy full SHA for 6826845
doc/source/whatsnew/v0.14.0.rst
@@ -349,9 +349,15 @@ More consistent behavior for some groupby methods:
349
350
- groupby head and tail respect column selection:
351
352
- .. ipython:: python
+ .. code-block:: ipython
353
+
354
+ In [19]: g[['B']].head(1)
355
+ Out[19]:
356
+ B
357
+ 0 2
358
+ 2 6
359
- g[['B']].head(1)
360
+ [2 rows x 1 columns]
361
362
- groupby ``nth`` now reduces by default; filtering can be achieved by passing ``as_index=False``. With an optional ``dropna`` argument to ignore
363
NaN. See :ref:`the docs <groupby.nth>`.
0 commit comments