Series.minimum

Obtain the minimum value between two series (element wise)

danfo.Series.minimum(other) [source]

Parameters

Type

Description

Default

other

Series

series to match

Return: {Series}

Example

Node
Node
const dfd = require("danfojs-node")
let data1 = [30, 40, 3, 5]
let data2 = [10, 41, 2, 0]
let sf1 = new dfd.Series(data1)
let sf2 = new dfd.Series(data2)
sf1.minimum(sf2).print()
output
output
╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ 0 │ 10 ║
╟───┼──────────────────────╢
║ 1 │ 40 ║
╟───┼──────────────────────╢
║ 2 │ 2 ║
╟───┼──────────────────────╢
║ 3 │ 0 ║
╚═══╧══════════════════════╝