From 2c15ab001a39dcca61ed26da3daca9d2bfb1e8d7 Mon Sep 17 00:00:00 2001 From: Zero Date: Fri, 15 Oct 2021 09:11:26 +0800 Subject: [PATCH] DOC: add double backticks for DataFrame nlargest `keep` option --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 023ffb5a5fbda..1bb3dda0312cd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6584,8 +6584,8 @@ def nlargest(self, n, columns, keep: str = "first") -> DataFrame: keep : {'first', 'last', 'all'}, default 'first' Where there are duplicate values: - - `first` : prioritize the first occurrence(s) - - `last` : prioritize the last occurrence(s) + - ``first`` : prioritize the first occurrence(s) + - ``last`` : prioritize the last occurrence(s) - ``all`` : do not drop any duplicates, even it means selecting more than `n` items.