diff options
Diffstat (limited to 'python/analytics/portfolio.py')
| -rw-r--r-- | python/analytics/portfolio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/analytics/portfolio.py b/python/analytics/portfolio.py index 78d5046c..34516172 100644 --- a/python/analytics/portfolio.py +++ b/python/analytics/portfolio.py @@ -33,8 +33,8 @@ def portf_repr(method): "Attach Rho": percent, "Detach Rho": percent, "HY Equiv": thousands, - "Strike": lambda x: "N/A" if np.isnan(x) else x, - "Type": lambda x: "N/A" if np.isnan(x) else x, + "Strike": lambda x: "N/A" if np.isnan(x) else str(x), + "Type": lambda x: "N/A" if x is None else x, }, "index": False, } |
