Skip to content

Adds See Also sections to pandas.core.groupby.DataFrameGroupBy.sem, pandas.core.groupby.DataFrameGroupBy.nunique #60478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
42203a9
remove single quotes in index names when printing
thedataninja1786 Nov 8, 2024
5d9edbf
Removed trailing whitespace
thedataninja1786 Nov 8, 2024
5da2343
Removed trailing whitespaces
thedataninja1786 Nov 8, 2024
9519268
Merge branch 'main' into bugfix--pprint-embedded-quotes
thedataninja1786 Nov 8, 2024
a13b8b1
branch 'upstream/main' into bugfix--pprint-embedded-quotes
thedataninja1786 Nov 9, 2024
f0a9008
Added relevant tests when removing single quotes
thedataninja1786 Nov 9, 2024
0f1c9e5
Merge branch 'bugfix--pprint-embedded-quotes' of https://github.com/t…
thedataninja1786 Nov 9, 2024
9552a43
Refactor test_formatted_index_names to adhere with line-legth constra…
thedataninja1786 Nov 9, 2024
597e6c5
Merge remote-tracking branch 'upstream/main' into bugfix--pprint-embe…
thedataninja1786 Nov 10, 2024
2fa7eeb
Escape single quotes
thedataninja1786 Nov 10, 2024
034ad05
Merge branch 'main' into bugfix--pprint-embedded-quotes
thedataninja1786 Nov 11, 2024
c3aa8f0
Merge remote-tracking branch 'upstream/main' into bugfix--pprint-embe…
thedataninja1786 Nov 12, 2024
bdcbca1
Apply formatting and import sorting from pre-commit hooks
thedataninja1786 Nov 12, 2024
a6cad8d
Apply formatting and import sorting from pre-commit hooks
thedataninja1786 Nov 12, 2024
9d02418
Apply formatting and import sorting from pre-commit hooks
thedataninja1786 Nov 12, 2024
7e59bda
Merge branch 'bugfix--pprint-embedded-quotes' of https://github.com/t…
thedataninja1786 Nov 12, 2024
67fd773
Apply formatting and import sorting from pre-commit hooks
thedataninja1786 Nov 12, 2024
67ecd35
Merge remote-tracking branch 'upstream/main' into bugfix--pprint-embe…
thedataninja1786 Nov 17, 2024
8c41d9d
Update whatsnew
thedataninja1786 Nov 17, 2024
7a4c1ee
Merge remote-tracking branch 'upstream/main' into bugfix--pprint-embe…
thedataninja1786 Nov 22, 2024
2c3625a
Update whatsnew in v3.0.0.
thedataninja1786 Nov 22, 2024
6391b76
Update whatsnew in v3.0.0.
thedataninja1786 Nov 22, 2024
10df8b4
Converted tests for string comparisons
thedataninja1786 Nov 23, 2024
52eb04b
Merge remote-tracking branch 'upstream/main' into bugfix--pprint-embe…
thedataninja1786 Dec 3, 2024
7073ec8
Added See Also sections
thedataninja1786 Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,10 @@ Indexing
^^^^^^^^
- Bug in :meth:`DataFrame.__getitem__` returning modified columns when called with ``slice`` in Python 3.12 (:issue:`57500`)
- Bug in :meth:`DataFrame.from_records` throwing a ``ValueError`` when passed an empty list in ``index`` (:issue:`58594`)
<<<<<<< HEAD
=======
- Bug in :meth:`MultiIndex.insert` when a new value inserted to a datetime-like level gets cast to ``NaT`` and fails indexing (:issue:`60388`)
>>>>>>> upstream/main
- Bug in printing :attr:`Index.names` and :attr:`MultiIndex.levels` would not escape single quotes (:issue:`60190`)

Missing
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2452,6 +2452,10 @@ def nunique(self, dropna: bool = True) -> DataFrame:
-------
nunique: DataFrame
Counts of unique elements in each position.

See Also
--------
DataFrame.nunique : Count number of distinct elements in specified axis.

Examples
--------
Expand Down
5 changes: 5 additions & 0 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -2657,6 +2657,11 @@ def sem(self, ddof: int = 1, numeric_only: bool = False) -> NDFrameT:
-------
Series or DataFrame
Standard error of the mean of values within each group.

See Also
--------
DataFrame.groupby : Apply a function groupby to each row or column of a
DataFrame.

Examples
--------
Expand Down
Loading