Files
OpenBB/website/content/custom/show/_index.md
jmaslek 6a66f3f3ed Custom data context (#1193)
* Add first iteration of custom context

* Add sample data + improve plot

* Change `head` to `show` with sorting and limit.  Add "-x" to plot and dynamic update of completer

* generate random time series for test csv

* Make columns lower case.  Check if date is in columns and convert to timestamp.  Improve plotting for dates

* Add qa to custom

* Add pred to custom

* Hugooooo

* Testing

* dang whitespace

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-19 10:45:56 +00:00

24 lines
808 B
Markdown
Vendored

```
usage: show [-s SORTCOL [SORTCOL ...]] [-a] [-h] [-l LIMIT]
```
Show loaded dataframe
```
optional arguments:
-s SORTCOL [SORTCOL ...], --sortcol SORTCOL [SORTCOL ...]
-a, --ascend
-h, --help show this help message (default: False)
-l LIMIT, --limit LIMIT
Number of entries to show in data. (default: 5)
```
Sample Output:
```
2022 Jan 18, 17:53 (✨) /custom/ $ show -l 3
colnorm col2 colnorm3 colb
date
2020-01-01 0.999953 1.012313 1.008667 0.001203
2020-01-02 0.983850 1.023421 1.004225 0.004517
2020-01-03 1.002692 1.019749 1.006244 0.007035
```
This shows the top 3 rows of my custom dataframe. This should primarily be used as a method of debugging that the load worked.