diff options
Diffstat (limited to 'python/collateral/citi.py')
| -rw-r--r-- | python/collateral/citi.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/python/collateral/citi.py b/python/collateral/citi.py index dcd6992c..25fc1b23 100644 --- a/python/collateral/citi.py +++ b/python/collateral/citi.py @@ -1,6 +1,6 @@ import pandas as pd from . import DAILY_DIR -from .common import load_pdf, get_col, next_business_day +from .common import load_pdf, get_col, next_business_day, parse_num def load_file(d): @@ -28,14 +28,6 @@ def download_files(em, count=20, **kwargs): p.write_bytes(attach.content) -def parse_num(s): - s = s.replace(",", "") - if s[0] == "(": - return -float(s[1:-1]) - else: - return float(s) - - def get_df(l, col1, col2, col3): df = pd.DataFrame( {"amount": get_col(l, *col2), "currency": get_col(l, *col3)}, |
