Series.describe
Generate descriptive statistics. Descriptive statistics include those that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding NaN values
danfo.Series.describe()
Parameters: No parameter
return: Series
Example
Node
Browser
const dfd = require("danfojs-node")
let data = [1,2,3,4,5,6]
let sf = new dfd.Series(data)
sf.describe().print()
Output
╔══════════╤════════════════════╗
║ count │ 6 ║
╟──────────┼────────────────────╢
║ mean │ 3.5 ║
╟──────────┼────────────────────╢
║ std │ 1.8708286933869707 ║
╟──────────┼────────────────────╢
║ min │ 1 ║
╟──────────┼────────────────────╢
║ median │ 3.5 ║
╟──────────┼────────────────────╢
║ max │ 6 ║
╟──────────┼────────────────────╢
║ variance │ 3.5 ║
╚══════════╧════════════════════╝
Copy link