Series.minimum
Return the minimum between two series (element wise)
danfo.Series.minimum(other)
Parameters
Type
Description
Default
other
Series
series to match
Return: {Series}
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [30, 40, 3, 5]
4
let data2 = [10, 41, 2, 0]
5
let sf1 = new dfd.Series(data1)
6
let sf2 = new dfd.Series(data2)
7
sf1.minimum(sf2).print()
Copied!
output
1
╔═══╤════╗
2
║ 0 │ 10 ║
3
╟───┼────╢
4
║ 1 │ 40 ║
5
╟───┼────╢
6
║ 2 │ 2 ║
7
╟───┼────╢
8
║ 3 │ 0 ║
9
╚═══╧════╝
Copied!
Copy link