Skip to content

Commit b7a41fd

Browse files
committed
FIX strike prices > 1k
1 parent 7cd1a8d commit b7a41fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas_datareader/tests/test_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
assert_produces_warning = None
1818

1919
import pandas.util.testing as tm
20+
2021
from numpy.testing import assert_array_equal
2122

2223
import pandas_datareader.data as web
@@ -483,6 +484,7 @@ def test_month_year(self):
483484
raise nose.SkipTest(e)
484485

485486
self.assertTrue(len(data) > 1)
487+
self.assertEqual(data.index.levels[0].dtype, 'float64') # GH168
486488

487489
def test_empty_table(self):
488490
# GH22

pandas_datareader/yahoo/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _parse_options_data(table):
3131
rows = table.findall('tbody/tr')
3232
data = [_unpack(r) for r in rows]
3333
if len(data) > 0:
34-
return TextParser(data, names=header).get_chunk()
34+
return TextParser(data, names=header, thousands=',').get_chunk()
3535
else: # Empty table
3636
return DataFrame(columns=header)
3737

0 commit comments

Comments
 (0)