mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 23:41:27 +00:00
* 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>
14 KiB
Vendored
14 KiB
Vendored
title, description, keywords
| title | description | keywords | |||||
|---|---|---|---|---|---|---|---|
| show | This documentation page provides a detailed overview of the 'show' function in Python, used for data representation and manipulation in DataFrames. It presents the usage, parameters, and examples demonstrating how the function can be employed for different econometrics datasets by sorting and displaying datasets in an organized manner. |
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
Show a portion of the DataFrame
Usage
show [-n {}] [-s SORTBY] [-r]
Parameters
| Name | Description | Default | Optional | Choices |
|---|---|---|---|---|
| name | The name of the database you want to show data for | None | True | None |
| sortby | Sort based on a column in the DataFrame | True | None | |
| reverse | Data is sorted in descending order by default. Reverse flag will sort it in an ascending way. Only works when raw data is displayed. | False | True | None |
Examples
2022 Mar 04, 05:57 (🦋) /econometrics/ $ load longley -a ll
2022 Mar 04, 05:57 (🦋) /econometrics/ $ index ll -i year -d
2022 Mar 04, 05:57 (🦋) /econometrics/ $ show ll -s unemp
Dataset ll | Showing 10 of 16 rows
┏━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┓
┃ ┃ totemp ┃ gnpdefl ┃ gnp ┃ unemp ┃ armed ┃ pop ┃
┡━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━┩
│ 1961.0 │ 69331.00 │ 115.70 │ 518173.00 │ 4806.00 │ 2572.00 │ 127852.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1958.0 │ 66513.00 │ 110.80 │ 444546.00 │ 4681.00 │ 2637.00 │ 121950.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1962.0 │ 70551.00 │ 116.90 │ 554894.00 │ 4007.00 │ 2827.00 │ 130081.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1960.0 │ 69564.00 │ 114.20 │ 502601.00 │ 3931.00 │ 2514.00 │ 125368.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1959.0 │ 68655.00 │ 112.60 │ 482704.00 │ 3813.00 │ 2552.00 │ 123366.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1949.0 │ 60171.00 │ 88.20 │ 258054.00 │ 3682.00 │ 1616.00 │ 109773.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1954.0 │ 63761.00 │ 100.00 │ 363112.00 │ 3578.00 │ 3350.00 │ 116219.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1950.0 │ 61187.00 │ 89.50 │ 284599.00 │ 3351.00 │ 1650.00 │ 110929.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1957.0 │ 68169.00 │ 108.40 │ 442769.00 │ 2936.00 │ 2798.00 │ 120445.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1955.0 │ 66019.00 │ 101.20 │ 397469.00 │ 2904.00 │ 3048.00 │ 117388.00 │
└────────┴──────────┴─────────┴───────────┴─────────┴─────────┴───────────┘
2022 Mar 04, 05:57 (🦋) /econometrics/ $ load wage_panel -a wp
2022 Mar 04, 05:58 (🦋) /econometrics/ $ show
Dataset ll | Showing 10 of 16 rows
┏━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┓
┃ ┃ totemp ┃ gnpdefl ┃ gnp ┃ unemp ┃ armed ┃ pop ┃
┡━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━┩
│ 1947.0 │ 60323.00 │ 83.00 │ 234289.00 │ 2356.00 │ 1590.00 │ 107608.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1948.0 │ 61122.00 │ 88.50 │ 259426.00 │ 2325.00 │ 1456.00 │ 108632.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1949.0 │ 60171.00 │ 88.20 │ 258054.00 │ 3682.00 │ 1616.00 │ 109773.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1950.0 │ 61187.00 │ 89.50 │ 284599.00 │ 3351.00 │ 1650.00 │ 110929.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1951.0 │ 63221.00 │ 96.20 │ 328975.00 │ 2099.00 │ 3099.00 │ 112075.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1952.0 │ 63639.00 │ 98.10 │ 346999.00 │ 1932.00 │ 3594.00 │ 113270.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1953.0 │ 64989.00 │ 99.00 │ 365385.00 │ 1870.00 │ 3547.00 │ 115094.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1954.0 │ 63761.00 │ 100.00 │ 363112.00 │ 3578.00 │ 3350.00 │ 116219.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1955.0 │ 66019.00 │ 101.20 │ 397469.00 │ 2904.00 │ 3048.00 │ 117388.00 │
├────────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┤
│ 1956.0 │ 67857.00 │ 104.60 │ 419180.00 │ 2822.00 │ 2857.00 │ 118734.00 │
└────────┴──────────┴─────────┴───────────┴─────────┴─────────┴───────────┘
Dataset wp | Showing 10 of 4360 rows
┏━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓
┃ ┃ nr ┃ year ┃ black ┃ exper ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃
┡━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩
│ 0 │ 13.00 │ 1980.00 │ 0.00 │ 1.00 │ 0.00 │ 2672.00 │ 0.00 │ 14.00 │ 0.00 │ 1.20 │ 1.00 │ 9.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 1 │ 13.00 │ 1981.00 │ 0.00 │ 2.00 │ 0.00 │ 2320.00 │ 0.00 │ 14.00 │ 1.00 │ 1.85 │ 4.00 │ 9.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 2 │ 13.00 │ 1982.00 │ 0.00 │ 3.00 │ 0.00 │ 2940.00 │ 0.00 │ 14.00 │ 0.00 │ 1.34 │ 9.00 │ 9.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 3 │ 13.00 │ 1983.00 │ 0.00 │ 4.00 │ 0.00 │ 2960.00 │ 0.00 │ 14.00 │ 0.00 │ 1.43 │ 16.00 │ 9.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 4 │ 13.00 │ 1984.00 │ 0.00 │ 5.00 │ 0.00 │ 3071.00 │ 0.00 │ 14.00 │ 0.00 │ 1.57 │ 25.00 │ 5.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 5 │ 13.00 │ 1985.00 │ 0.00 │ 6.00 │ 0.00 │ 2864.00 │ 0.00 │ 14.00 │ 0.00 │ 1.70 │ 36.00 │ 2.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 6 │ 13.00 │ 1986.00 │ 0.00 │ 7.00 │ 0.00 │ 2994.00 │ 0.00 │ 14.00 │ 0.00 │ -0.72 │ 49.00 │ 2.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 7 │ 13.00 │ 1987.00 │ 0.00 │ 8.00 │ 0.00 │ 2640.00 │ 0.00 │ 14.00 │ 0.00 │ 1.67 │ 64.00 │ 2.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 8 │ 17.00 │ 1980.00 │ 0.00 │ 4.00 │ 0.00 │ 2484.00 │ 0.00 │ 13.00 │ 0.00 │ 1.68 │ 16.00 │ 2.00 │
├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤
│ 9 │ 17.00 │ 1981.00 │ 0.00 │ 5.00 │ 0.00 │ 2804.00 │ 0.00 │ 13.00 │ 0.00 │ 1.52 │ 25.00 │ 2.00 │
└───┴───────┴─────────┴───────┴───────┴──────┴─────────┴─────────┴───────┴───────┴───────┴─────────┴────────────┘