We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79fb1dd commit 24857a2Copy full SHA for 24857a2
pandas/core/series.py
@@ -1422,6 +1422,21 @@ def to_string(
1422
| 1 | pig |
1423
| 2 | dog |
1424
| 3 | quetzal |
1425
+
1426
+ Output markdown with a tabulate option.
1427
1428
+ >>> print(s.to_markdown(tablefmt="grid"))
1429
+ +----+----------+
1430
+ | | animal |
1431
+ +====+==========+
1432
+ | 0 | elk |
1433
1434
+ | 1 | pig |
1435
1436
+ | 2 | dog |
1437
1438
+ | 3 | quetzal |
1439
1440
"""
1441
)
1442
@Substitution(klass="Series")
0 commit comments