@@ -3563,7 +3563,7 @@ def head(self, n=5):
3563
3563
-------
3564
3564
obj_head : type of caller
3565
3565
The first n rows of the caller object.
3566
-
3566
+
3567
3567
Examples
3568
3568
--------
3569
3569
>>> df = pd.DataFrame({'animal':['falcon', 'parrot', 'lion',
@@ -3577,7 +3577,7 @@ def head(self, n=5):
3577
3577
4 shark
3578
3578
5 bee
3579
3579
6 bear
3580
-
3580
+
3581
3581
Viewing the last 5 lines (the default)
3582
3582
>>> df.head()
3583
3583
animal
@@ -3586,7 +3586,7 @@ def head(self, n=5):
3586
3586
2 lion
3587
3587
3 monkey
3588
3588
4 shark
3589
-
3589
+
3590
3590
Viewing the last n lines (three in this case)
3591
3591
>>> df.head(3)
3592
3592
animal
@@ -3610,7 +3610,7 @@ def tail(self, n=5):
3610
3610
-------
3611
3611
obj_tail : type of caller
3612
3612
The last n rows of the caller object.
3613
-
3613
+
3614
3614
Examples
3615
3615
--------
3616
3616
>>> df = pd.DataFrame({'animal':['falcon', 'parrot', 'lion',
@@ -3624,23 +3624,23 @@ def tail(self, n=5):
3624
3624
4 shark
3625
3625
5 bee
3626
3626
6 bear
3627
-
3628
- Viewing the last 5 lines (the default)
3629
- >>> df.tail()
3627
+
3628
+ Viewing the last 5 lines (the default)
3629
+ >>> df.tail()
3630
3630
animal
3631
3631
2 lion
3632
3632
3 monkey
3633
3633
4 shark
3634
3634
5 bee
3635
3635
6 bear
3636
-
3637
- Viewing the last n lines (three in this case)
3638
- >>> df.tail(3)
3636
+
3637
+ Viewing the last n lines (three in this case)
3638
+ >>> df.tail(3)
3639
3639
animal
3640
3640
4 shark
3641
3641
5 bee
3642
3642
6 bear
3643
-
3643
+
3644
3644
"""
3645
3645
3646
3646
if n == 0 :
0 commit comments