Powered By GitBook
Series.tail
Prints the last n values in a Series
danfo.Series.tail(rows) [source]
Parameters
Type
Description
Default
rows
Int
number of last n values
5
Return: Series
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [1, 2, 3, 4, 5, 620, 30, 40, 39, 89, 78]
4
let sf1 = new dfd.Series(data1)
5
6
sf1.tail().print()
Copied!
Output
1
╔════╤══════════════════════╗
2
║ │ 0 ║
3
╟────┼──────────────────────╢
4
║ 6 │ 30 ║
5
╟────┼──────────────────────╢
6
║ 7 │ 40 ║
7
╟────┼──────────────────────╢
8
║ 8 │ 39 ║
9
╟────┼──────────────────────╢
10
║ 9 │ 89 ║
11
╟────┼──────────────────────╢
12
║ 10 │ 78 ║
13
╚════╧══════════════════════╝
Copied!
Last modified 1yr ago
Copy link