description |
---|
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
{% tabs %} {% tab title="Node" %}
const dfd = require("danfojs-node")
let data = [1,2,3,4,5,6]
let sf = new dfd.Series(data)
sf.describe().print()
{% endtab %}
{% tab title="Browser" %}
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="Output" %}
╔══════════╤════════════════════╗
║ count │ 6 ║
╟──────────┼────────────────────╢
║ mean │ 3.5 ║
╟──────────┼────────────────────╢
║ std │ 1.8708286933869707 ║
╟──────────┼────────────────────╢
║ min │ 1 ║
╟──────────┼────────────────────╢
║ median │ 3.5 ║
╟──────────┼────────────────────╢
║ max │ 6 ║
╟──────────┼────────────────────╢
║ variance │ 3.5 ║
╚══════════╧════════════════════╝
{% endtab %} {% endtabs %}