Files
OpenBB/website/content/custom/_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
1.0 KiB
Markdown
Vendored

---
geekdocCollapseSection: true
---
{{< toc-tree >}}
# Loading in custom data
There is a directory in root, labeled `custom_imports`. Here there is a sample
csv file titled `test.csv` that is __randomly__ generated data for visualization purposes.
When loading in the data, we recommend working with time series. The prediction techniques menu
will plot against time data, so not using that may result in undesired outputs.
## How to load in a time variable
Note in the sample csv, the first row has the following form `Date,ColNorm,Col2,ColNorm3,ColB`.
The process for loading data into Gamestonk Terminal is that the code loops through all input columns and looks through
for one column that is either `Date`,`Time` or `Timestamp` (not case-sensitive).
If one of these are found, then the dataframe sets this column to be the index.
If onc of these columns are not found, then the index will just be integers from 0 to the length of your data.
Once again: __the prediction menu is designed for data with a datetime index__.