Skip to content

Commit 2b216af

Browse files
Christopher Whelanwesm
Christopher Whelan
authored andcommitted
Add some default parameters to TextParser in _parse_options_data()
1 parent f2651b9 commit 2b216af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/data.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def _parse_options_data(table):
223223
rows = table.findAll('tr')
224224
header = _unpack(rows[0], kind='th')
225225
data = [_unpack(r) for r in rows[1:]]
226-
return TextParser(data, names=header).get_chunk()
226+
# Use ',' as a thousands separator as we're pulling from the US site.
227+
return TextParser(data, names=header, na_values=['N/A'], thousands=',').get_chunk()
227228

228229

229230
class Options(object):

0 commit comments

Comments
 (0)