Files
OpenBB/website/content/terminal/reference/econometrics/desc.md
DidierRLopes 4ad995fdd0 Docs/terminalpro and improvement (#5622)
* add first iteration of content for Terminal Pro

* Update index.md

* Update dashboards.md

* Update folders.md

* Update grouping.md

* Update report.md

* Update templates.md

* Update quick-start.md

* Update index.md

* Update index.md

* Update home.md

* Update news.md

* Update index.md

* Update index.md

* Update index.md

* Update data-provider.md

* Update chat-with-widget.md

* Update data-manipulation.md

* Update forecasting.md

* fix: images self closing tags

* fix: only pro visitors can see pro

* inter font

* improve SEO content and restructuring

* add new package for toggle on tutorials

* move folder around

* improve main page of each prod

* small updates and improvements

* fix logo above

* small improvement in headtitle for portfolio funcs

* fix typos from OpenAI's GPT-4

* fix _category_ json

* remove generic SEO words

* add script that generates SEO for documentation

* add missing file

* remove sdk warning message

* fix links for andrew

---------

Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-10-30 21:01:29 +00:00

91 lines
6.4 KiB
Markdown
Vendored

---
title: desc
description: Easily analyze data with the desc command in Python. Generate comprehensive
descriptive statistics for each column in your dataset; such as count, mean, standard
deviation, min, max, etc. Ideal for econometric analysis and other forms of statistical
insights.
keywords:
- data analysis
- descriptive statistics
- dataset
- econometrics
- statistics for dataset
- anes96 dataset
---
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
<HeadTitle title="econometrics /desc - Reference | OpenBB Terminal Docs" />
Show the descriptive statistics of the dataset
### Usage
```python
desc -n {}
```
---
## Parameters
| Name | Description | Default | Optional | Choices |
| ---- | ----------- | ------- | -------- | ------- |
| name | The name of the dataset.column you want to show the descriptive statistics | None | False | None |
---
## Examples
```python
2022 Jun 01, 06:50 (🦋) /econometrics/ $ load anes96
2022 Jun 01, 06:51 (🦋) /econometrics/ $ desc anes96
Statistics for dataset: 'anes96'
┏━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┓
┃ ┃ popul ┃ tvnews ┃ selflr ┃ clinlr ┃ dolelr ┃ pid ┃ age ┃ educ ┃ income ┃ vote ┃ logpopul ┃
┡━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━┩
│ count │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ mean │ 306.38 │ 3.73 │ 4.33 │ 2.94 │ 5.39 │ 2.84 │ 47.04 │ 4.57 │ 16.33 │ 0.42 │ 2.47 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ std │ 1082.61 │ 2.68 │ 1.44 │ 1.38 │ 1.27 │ 2.27 │ 16.42 │ 1.60 │ 5.97 │ 0.49 │ 3.19 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ min │ 0.00 │ 0.00 │ 1.00 │ 1.00 │ 1.00 │ 0.00 │ 19.00 │ 1.00 │ 1.00 │ 0.00 │ -2.30 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ 25% │ 1.00 │ 1.00 │ 3.00 │ 2.00 │ 5.00 │ 1.00 │ 34.00 │ 3.00 │ 14.00 │ 0.00 │ 0.10 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ 50% │ 22.00 │ 3.00 │ 4.00 │ 3.00 │ 6.00 │ 2.00 │ 44.00 │ 4.00 │ 17.00 │ 0.00 │ 3.10 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ 75% │ 110.00 │ 7.00 │ 6.00 │ 4.00 │ 6.00 │ 5.00 │ 58.00 │ 6.00 │ 21.00 │ 1.00 │ 4.70 │
├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤
│ max │ 7300.00 │ 7.00 │ 7.00 │ 7.00 │ 7.00 │ 6.00 │ 91.00 │ 7.00 │ 24.00 │ 1.00 │ 8.90 │
└───────┴─────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴──────────┘
2022 Jun 01, 06:51 (🦋) /econometrics/ $ desc anes96.educ
Statistics for dataset: 'anes96'
┏━━━━━━━┳━━━━━━━━┓
┃ ┃ educ ┃
┡━━━━━━━╇━━━━━━━━┩
│ count │ 944.00 │
├───────┼────────┤
│ mean │ 4.57 │
├───────┼────────┤
│ std │ 1.60 │
├───────┼────────┤
│ min │ 1.00 │
├───────┼────────┤
│ 25% │ 3.00 │
├───────┼────────┤
│ 50% │ 4.00 │
├───────┼────────┤
│ 75% │ 6.00 │
├───────┼────────┤
│ max │ 7.00 │
└───────┴────────┘
```
---