aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/parse_emails.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/parse_emails.py b/python/parse_emails.py
index f8d64eba..9baac888 100644
--- a/python/parse_emails.py
+++ b/python/parse_emails.py
@@ -53,7 +53,10 @@ def makedf(r, indextype, quote_source):
df[k] = df[k].str.replace(",", "")
try:
df[k] = pd.to_numeric(df[k])
- except ValueError:
+ except ValueError as e:
+ logging.info(e)
+ logging.error("couldn't convert column")
+ df[k] = pd.to_numeric(df[k].str.replace("n", ""))
breakpoint()
df.set_index('strike', inplace=True)
return df