mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 19:22:23 +00:00
* Add Statistics Menu * Add Granger Causality test * Apply Black formatting * Add Cointegration Tests * Adjust plotting for Cointegration test * Add Significant parameter to Cointegration tests * Move regression functions to seperate .py files * Progress on Panel Data * A lot of progress for Panel Data * Make functions robust and improve documentation * Re-enable Breusch-Godfrey * Add modify functionality * Improve modify functionality * Add Breusch-Pagan heteroscedasticity test * Capitalize a word * Include documentatin for the Statistics Menu * Update _index.md * Update _index.md * Update _index.md * Fix export statements and add Example datasets * Update example with Longley's dataset * Update documentation with a legit source * Compare the results from each regression models based on the wage_panel dataset * Updated with all relevant types of regression tables * Update with all relevant regression types for Panel data * Update _index.md * Add change column type, improve OLS, add time and entity effects for FE * Update documentation and fix a small bug * Add in Statistics menu, replacing Custom menu * Remove custom menu * Add in documentation * Add in gst files * Cointegration can be used on any amount of columns * Add Tests * Make tests time invariant * Update Poetry and Requirements * Change name of Statistics menu to Econometrics menu * Rename scripts * Add type in Documentation * Change names from Statistics to Econometrics * Add graph * Update tests with rounding and naming * Make minor adjustments to fix the tests * Updating tests : allow extra args for capture * Apply recorder formatting * Adding some minor formatting * Fix error with MyPy * Attempt to fix MyPy annoyance * super small style things * Fix small bugs and add plot command to dwat * Small description mistake * Update documentation with missing argument * Update styling * Add error handling and add improve show functionality * Fix merge issue * Allow import from custom_imports Co-authored-by: Jeroen Bouma <jeroenbouma@MacBook-Pro-van-Jeroen.local> Co-authored-by: jmaslek <jmaslek11@gmail.com> Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
9.2 KiB
Vendored
9.2 KiB
Vendored
usage: desc [-n {OPTIONS}] [-h] [--export {csv,json,xlsx}]
Show the descriptive statistics of a dataset, specified by --name.
optional arguments:
-n {OPTIONS}, --name {OPTIONS}
The name of the database you want to show the descriptive statistics for (default: None)
-h, --help show this help message (default: False)
--export {csv,json,xlsx}
Export raw data into csv, json, xlsx (default: )
Example:
2022 Feb 28, 04:12 (✨) /econometrics/ $ desc aapl
aapl
┏━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ ┃ open ┃ high ┃ low ┃ close ┃ adj_close ┃ volume ┃
┡━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ count │ 759.00 │ 759.00 │ 759.00 │ 759.00 │ 759.00 │ 759.00 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ mean │ 101.76 │ 102.95 │ 100.63 │ 101.84 │ 100.99 │ 118128287.62 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ std │ 40.70 │ 41.13 │ 40.21 │ 40.67 │ 40.94 │ 56579126.66 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ min │ 42.43 │ 42.86 │ 42.37 │ 42.73 │ 41.61 │ 41000000.00 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ 25% │ 62.31 │ 64.18 │ 61.64 │ 62.23 │ 61.16 │ 81086650.00 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ 50% │ 111.06 │ 112.48 │ 109.11 │ 111.11 │ 110.10 │ 104174400.00 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ 75% │ 134.31 │ 135.32 │ 133.00 │ 134.06 │ 133.14 │ 137744400.00 │
├───────┼────────┼────────┼────────┼────────┼───────────┼──────────────┤
│ max │ 182.63 │ 182.94 │ 179.12 │ 182.01 │ 181.78 │ 426510000.00 │
└───────┴────────┴────────┴────────┴────────┴───────────┴──────────────┘
2022 Feb 28, 04:12 (✨) /econometrics/ $ desc thesis
thesis
┏━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ ┃ current_assets ┃ assets ┃ debt ┃ depr_amor ┃ income ┃ current_liabilities ┃ revenue ┃ equity ┃ interest_expense ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
│ count │ 78146.00 │ 95648.00 │ 94484.00 │ 88228.00 │ 97737.00 │ 78232.00 │ 89898.00 │ 95524.00 │ 80955.00 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ mean │ 1552.18 │ 14681.37 │ 3018.15 │ 61.61 │ 68.14 │ 1218.23 │ 959.41 │ 2611.89 │ 32.26 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ std │ 7270.81 │ 112579.71 │ 46117.13 │ 323.99 │ 516.80 │ 6104.23 │ 4384.80 │ 12412.20 │ 355.50 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ min │ -9.06 │ 0.00 │ 0.00 │ -581.00 │ -25392.00 │ -118.00 │ -3935.00 │ -66338.00 │ -1255.55 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ 25% │ 9.88 │ 45.07 │ 0.00 │ 0.08 │ -2.10 │ 4.90 │ 1.30 │ 15.12 │ 0.02 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ 50% │ 106.58 │ 512.08 │ 36.14 │ 1.89 │ 0.51 │ 48.58 │ 50.51 │ 164.04 │ 1.26 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ 75% │ 602.70 │ 3147.53 │ 779.93 │ 20.70 │ 20.90 │ 372.79 │ 375.10 │ 1011.39 │ 13.69 │
├───────┼────────────────┼────────────┼────────────┼───────────┼───────────┼─────────────────────┼───────────┼───────────┼──────────────────┤
│ max │ 207497.14 │ 3421034.00 │ 3371939.00 │ 12313.76 │ 47840.23 │ 210664.61 │ 138793.00 │ 379419.00 │ 25810.00 │
└───────┴────────────────┴────────────┴────────────┴───────────┴───────────┴─────────────────────┴───────────┴───────────┴──────────────────┘