Series.dt.minutes Obtain the minutes in a Time Series
danfo.Series.dt.minutes () [source ]
Parameters : None
Returns: Series (int Elements)
Example
Node Browser
Copy const dfd = require ( "danfojs-node" )
let data = new dfd .dateRange ({ "start" : "2000-01-01" , period : 3 , freq : "m" })
let sf = new dfd .Series (data)
//print the series
sf .print ()
//print the minutes series
sf . dt .minutes () .print ()
Output
Copy ╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ 0 │ 1/1/2000, 1:00:00 AM ║
╟───┼──────────────────────╢
║ 1 │ 1/1/2000, 1:01:00 AM ║
╟───┼──────────────────────╢
║ 2 │ 1/1/2000, 1:02:00 AM ║
╚═══╧══════════════════════╝
//print the minutes series
╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ 0 │ 0 ║
╟───┼──────────────────────╢
║ 1 │ 1 ║
╟───┼──────────────────────╢
║ 2 │ 2 ║
╚═══╧══════════════════════╝