Files
OpenBB/website/versioned_docs/version-v3/terminal/reference/economy/eval.md
Theodore Aptekarev f72bc8ccec Add Versioned Documentation (#5470)
* Adding versioning to docs

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-09-29 11:49:05 +02:00

709 B
Vendored

title, description
title description
eval OpenBB Terminal Function

eval

Create custom data column from loaded datasets. Can be mathematical expressions supported by pandas.eval() function. Example. If I have loaded fred DGS2,DGS5 and I want to create a new column that is the difference between these two, I can create a new column by doing eval spread = DGS2 - DGS5. Notice that the command is case sensitive, i.e., DGS2 is not the same as dgs2.

Usage

eval [-q QUERY [QUERY ...]]

Parameters

Name Description Default Optional Choices
query Query to evaluate on loaded datasets None False None