aboutsummaryrefslogtreecommitdiffstats
path: root/python/select_clean.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/select_clean.py')
-rw-r--r--python/select_clean.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/select_clean.py b/python/select_clean.py
new file mode 100644
index 00000000..f08fc0b2
--- /dev/null
+++ b/python/select_clean.py
@@ -0,0 +1,12 @@
+import os
+root = "/home/guillaume/share/CorpCDOs/Collaterals"
+for dealname in os.listdir(root):
+
+ with open( os.path.join(root, dealname), "r") as fh:
+ # import pdb; pdb.set_trace()
+ header = fh.readline().rstrip().split("\t")
+ if "Underlying Deal" in header:
+ print dealname
+ line = fh.readline().split("\t")
+ if line[0] == "Sum/WAVG":
+ print dealname