From 3ab13d58b64c7410f7bdfebc5f375b1f664b0a52 Mon Sep 17 00:00:00 2001 From: Ali Hilmi Uysal Date: Thu, 1 Apr 2021 14:14:39 -0400 Subject: [PATCH] Update funds.rst Updated the example to search the output Pandas data frame of the search_funds function using ISIN code. --- docs/source/_info/funds.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/_info/funds.rst b/docs/source/_info/funds.rst index 0a386f8..2898da1 100644 --- a/docs/source/_info/funds.rst +++ b/docs/source/_info/funds.rst @@ -102,12 +102,12 @@ in order to make it more easy to use. Note that you can either select the value country = search_result.loc[index, 'country'] # Get both name and country via unique field such as isin - isin = 'ES0113211835' - name = search_result.loc[(search_result['isin'].str == isin).idxmax(), 'name'] - country = search_result.loc[(search_result['isin'].str == isin).idxmax(), 'country'] + isin = 'ES0134599036' + name = search_result.loc[search_result['isin'] == isin, 'name'].values[0] + country = search_result.loc[search_result['isin'] == isin, 'country'].values[0] # Or get it manually via printing the resulting pandas.DataFrame - print(search_results) + print(search_result) Recent & Historical Data