Powered By GitBook
Series.dt.minutes
Obtain the minutes in a Time Series
danfo.Series.dt.minutes() [source]
Parameters: None
Returns: Series (int Elements)
Example
Node
Browser
1
const dfd = require("danfojs-node")
2
3
let data = new dfd.date_range({"start":"2000-01-01", period:3, freq:"m"})
4
let sf = new dfd.Series(data)
5
//print the series
6
sf.print()
7
//print the minutes series
8
sf.dt.minutes().print()
Copied!
1
Copied!
Output
1
╔═══╤══════════════════════╗
2
║ │ 0 ║
3
╟───┼──────────────────────╢
4
║ 0 │ 1/1/2000, 1:00:00 AM ║
5
╟───┼──────────────────────╢
6
║ 1 │ 1/1/2000, 1:01:00 AM ║
7
╟───┼──────────────────────╢
8
║ 2 │ 1/1/2000, 1:02:00 AM ║
9
╚═══╧══════════════════════╝
10
11
//print the minutes series
12
╔═══╤══════════════════════╗
13
║ │ 0 ║
14
╟───┼──────────────────────╢
15
║ 0 │ 0 ║
16
╟───┼──────────────────────╢
17
║ 1 │ 1 ║
18
╟───┼──────────────────────╢
19
║ 2 │ 2 ║
20
╚═══╧══════════════════════╝
Copied!
Last modified 1yr ago
Copy link