aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/parse_gs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/parse_gs.py b/python/parse_gs.py
index 4d78f744..999d3e95 100644
--- a/python/parse_gs.py
+++ b/python/parse_gs.py
@@ -56,8 +56,8 @@ for f in os.listdir("."):
df['refspread'] = refspread
if indextype=='HY':
df['refprice'] = refprice
- df[['PayBid', 'PayOffer']] = df.Pay.str.split('/').apply(pd.Series)
- df[['RecBid', 'RecOffer']] = df.Rec.str.split('/').apply(pd.Series)
+ df[['PayBid', 'PayOffer']] = df.Pay.str.split('/', expand=True)
+ df[['RecBid', 'RecOffer']] = df.Rec.str.split('/', expand=True)
df.drop(['Pay', 'Rec'], axis=1, inplace=True)
df = df.convert_objects(convert_numeric=True)
df.set_index('Stk', inplace=True)