Powered By GitBook
Series.maximum
Obtain the maximum number between two series
danfo.Series.maximum(other) [source]
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 ║
3
╟───┼──────────────────────╢
4
║ 0 │ 30 ║
5
╟───┼──────────────────────╢
6
║ 1 │ 41 ║
7
╟───┼──────────────────────╢
8
║ 2 │ 3 ║
9
╟───┼──────────────────────╢
10
║ 3 │ 5 ║
11
╚═══╧══════════════════════╝
Copied!
Last modified 1yr ago
Copy link