Series.maximum
Obtain the maximum number between two series
danfo.Series.maximum(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.maximum(sf2).print()
Copied!
output
1
╔═══╤════╗
2
║ 0 │ 30 ║
3
╟───┼────╢
4
║ 1 │ 41 ║
5
╟───┼────╢
6
║ 2 │ 3 ║
7
╟───┼────╢
8
║ 3 │ 5 ║
9
╚═══╧════╝
Copied!
Copy link