Powered By GitBook
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() [source]
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
║ │ 0 ║
3
╟──────────┼──────────────────────╢
4
║ count │ 6 ║
5
╟──────────┼──────────────────────╢
6
║ mean │ 3.5 ║
7
╟──────────┼──────────────────────╢
8
║ std │ 1.8708286933869707 ║
9
╟──────────┼──────────────────────╢
10
║ min │ 1 ║
11
╟──────────┼──────────────────────╢
12
║ median │ 3.5 ║
13
╟──────────┼──────────────────────╢
14
║ max │ 6 ║
15
╟──────────┼──────────────────────╢
16
║ variance │ 3.5 ║
17
╚══════════╧══════════════════════╝
Copied!
Last modified 1yr ago
Copy link