aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/quote_parsing/parse_emails.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py
index d4c1090c..f0c078b0 100644
--- a/python/quote_parsing/parse_emails.py
+++ b/python/quote_parsing/parse_emails.py
@@ -68,7 +68,12 @@ def makedf(r, indextype, quote_source):
except ValueError as e:
logger.info(e)
logger.error("couldn't convert column")
- df[k] = pd.to_numeric(df[k].str.replace("n", "").str.replace("\\", ""))
+ df[k] = pd.to_numeric(
+ df[k]
+ .str.replace("n", "")
+ .str.replace("\\", "")
+ .str.replace("M", "")
+ )
df.set_index("strike", inplace=True)
return df