Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 367 Bytes

danfo.series.sample.md

File metadata and controls

22 lines (13 loc) · 367 Bytes
description
Return a random sample of items from an axis of object.

danfo.Series.sample

Gets [num] number of random rows in a Series

        **parameter:** {rows}  Number of rows to return

        **return:** Series

Example

let data = [1, 2, 3, 4, 5, 620, 30, 40, 39, 89, 78]
let sf = new Series(data)
sf.sample(2)