diff options
Diffstat (limited to 'openbb_terminal/cryptocurrency/defi/coindix_model.py')
-rw-r--r-- | openbb_terminal/cryptocurrency/defi/coindix_model.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbb_terminal/cryptocurrency/defi/coindix_model.py b/openbb_terminal/cryptocurrency/defi/coindix_model.py index f02306d395a..477e11f8b70 100644 --- a/openbb_terminal/cryptocurrency/defi/coindix_model.py +++ b/openbb_terminal/cryptocurrency/defi/coindix_model.py @@ -1,4 +1,5 @@ """Coindix model""" + __docformat__ = "numpy" import logging @@ -164,9 +165,9 @@ def get_defi_vaults( if rich_config.USE_COLOR and not get_current_user().preferences.USE_INTERACTIVE_DF: df["tvl"] = df["tvl"].apply(lambda x: lambda_long_number_format(x)) df["apy"] = df["apy"].apply( - lambda x: f"{str(round(x * 100, 2))} %" - if isinstance(x, (int, float)) - else x + lambda x: ( + f"{str(round(x * 100, 2))} %" if isinstance(x, (int, float)) else x + ) ) df.columns = [x.title() for x in df.columns] |