Skip to content

Commit 1fc5301

Browse files
committed
Restored the options to TextParser. They got removed on a copy/paste from my local test file and I just caught it
1 parent e526684 commit 1fc5301

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/io/data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,13 @@ def _unpack(row, kind='td'):
225225
els = row.findall('.//%s' % kind)
226226
return[val.text_content() for val in els]
227227

228+
228229
def _parse_options_data(table):
229230
rows = table.findall('.//tr')
230231
header = _unpack(rows[0], kind='th')
231232
data = [_unpack(r) for r in rows[1:]]
232-
return TextParser(data, names=header).get_chunk()
233+
# Use ',' as a thousands separator as we're pulling from the US site.
234+
return TextParser(data, names=header, na_values=['N/A'], thousands=',').get_chunk()
233235

234236

235237
class Options(object):

0 commit comments

Comments
 (0)