From 5a9e68edf888dbc6f93389456fefc60a5e4f03bb Mon Sep 17 00:00:00 2001 From: Cheuk Ho Date: Wed, 13 Dec 2017 12:12:47 +0000 Subject: [PATCH] DOC: Adding example to head and tail method (#16416) --- pandas/core/generic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b071d75aea6741..e828dce3654e35 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3578,8 +3578,8 @@ def head(self, n=5): 5 bee 6 bear - Viewing the last 5 lines (the default) - >>> df.head() + Viewing the last 5 lines (the default) + >>> df.head() animal 0 falcon 1 parrot @@ -3587,8 +3587,8 @@ def head(self, n=5): 3 monkey 4 shark - Viewing the last n lines (three in this case) - >>> df.head(3) + Viewing the last n lines (three in this case) + >>> df.head(3) animal 0 falcon 1 parrot