Skip to content

Commit 681f739

Browse files
jwkvamwesm
authored andcommitted
make parsing position independent therefore more robust
1 parent bb64ac9 commit 681f739

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/data.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def get_quote_yahoo(symbols):
9696
for line in lines:
9797
fields = line.strip().split(',')
9898
for i,field in enumerate(fields):
99-
# assumes change_pct is in the 5th index
100-
if i == 5:
99+
if field[-2:] == '%"':
101100
data[header[i]].append(float(field.strip('"%')))
102101
elif field[0] == '"':
103102
data[header[i]].append( field.strip('"'))

0 commit comments

Comments
 (0)