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
1
const dfd = require("danfojs-node")
2
3
let data = [1,2,3,4,5,6]
4
let sf = new dfd.Series(data)
5
sf.describe().print()
Copied!
1
Copied!
Output
1
╔══════════╤════════════════════╗
2
║ count │ 6 ║
3
╟──────────┼────────────────────╢
4
║ mean │ 3.5 ║
5
╟──────────┼────────────────────╢
6
║ std │ 1.8708286933869707 ║
7
╟──────────┼────────────────────╢
8
║ min │ 1 ║
9
╟──────────┼────────────────────╢
10
║ median │ 3.5 ║
11
╟──────────┼────────────────────╢
12
║ max │ 6 ║
13
╟──────────┼────────────────────╢
14
║ variance │ 3.5 ║
15
╚══════════╧════════════════════╝
Copied!
Copy link