Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 869 Bytes

series.maximum.md

File metadata and controls

46 lines (37 loc) · 869 Bytes
description
Obtain the maximum number between two series

Series.maximum

danfo.Series.maximum(other)

Parameters Type Description Default
other Series series to match

Return: {Series}

Example

{% tabs %} {% tab title="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.maximum(sf2).print()

{% endtab %} {% endtabs %}

{% tabs %} {% tab title="output" %}

╔═══╤════╗
║ 0 │ 30 ║
╟───┼────╢
║ 1 │ 41 ║
╟───┼────╢
║ 2 │ 3  ║
╟───┼────╢
║ 3 │ 5  ║
╚═══╧════╝

{% endtab %} {% endtabs %}