diff options
author | Danglewood <85772166+deeleeramone@users.noreply.github.com> | 2024-04-05 17:17:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 17:17:03 -0700 |
commit | bf3e18bb79dbb53b21543ea096dcce877ae45823 (patch) | |
tree | 715b745f47caee63dde73762dde212286ed91c5e /examples/usdLiquidityIndex.ipynb | |
parent | 4474022c5a26ab8ffa4cdd3bb3fcdc14a9aa1647 (diff) | |
parent | 3f4ab6edf6752eba9f8c3a3fccb6cb0137e19a33 (diff) |
Merge branch 'develop' into feature/field-descriptionsfeature/field-descriptions
Diffstat (limited to 'examples/usdLiquidityIndex.ipynb')
-rw-r--r-- | examples/usdLiquidityIndex.ipynb | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/examples/usdLiquidityIndex.ipynb b/examples/usdLiquidityIndex.ipynb index 7681e0c9488..4f177babebb 100644 --- a/examples/usdLiquidityIndex.ipynb +++ b/examples/usdLiquidityIndex.ipynb @@ -20,12 +20,10 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ - "import json\n", - "\n", "from openbb import obb\n", "from pandas import DataFrame\n" ] @@ -42,7 +40,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -50,15 +48,15 @@ "text/plain": [ "OBBject\n", "\n", - "id: 06580cab-5bdc-7e28-8000-632a5d8dc92f\n", - "results: [{'date': datetime.date(2002, 12, 18), 'WALCL': 719542.0, 'WLRRAL': 21905....\n", + "id: 0660e135-3511-73d7-8000-b792f7e418bb\n", + "results: [{'date': datetime.date(2002, 12, 18), 'provider': 'fred', 'WALCL': 719542...\n", "provider: fred\n", - "warnings: [{'category': 'UserWarning', 'message': '{\"WALCL\": {\"title\": \"Assets: Tot...\n", + "warnings: None\n", "chart: None\n", - "extra: {'metadata': {'arguments': {'provider_choices': {'provider': None}, 'standar..." + "extra: {'results_metadata': {'WALCL': {'title': 'Assets: Total Assets: Total Assets..." ] }, - "execution_count": 4, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -78,7 +76,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -110,7 +108,7 @@ } ], "source": [ - "metadata = json.loads(data.warnings[0].message)\n", + "metadata = data.extra[\"results_metadata\"]\n", "\n", "display(metadata.keys())\n", "display(metadata[\"WALCL\"].get(\"title\"))\n", @@ -573,7 +571,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -10197,7 +10195,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.7" }, "orig_nbformat": 4 }, |