Series.cumMin
Returns the cumulative min of a Series
danfo.Series.cumMin(options)
Parameters | Type | Description | Default |
---|---|---|---|
options | Object | inplace: Whether to perform the operation in-place or not. | { inplace: false } |
Example
Node
const dfd = require("danfojs-node")
let data1 = [10, 45, 56, 5, 23, 20, 10]
let sf1 = new dfd.Series(data1)
sf1.cumMin().print()
Output
╔═══╤════╗
║ 0 │ 10 ║
╟───┼────╢
║ 1 │ 10 ║
╟───┼────╢
║ 2 │ 10 ║
╟───┼────╢
║ 3 │ 5 ║
╟───┼────╢
║ 4 │ 5 ║
╟───┼────╢
║ 5 │ 5 ║
╟───┼────╢
║ 6 │ 5 ║
╚═══╧════╝
Last modified 1yr ago