We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7999ad commit 17e04b4Copy full SHA for 17e04b4
pandas/tests/io/test_html.py
@@ -945,9 +945,10 @@ def test_computer_sales_page(self):
945
# After #kipping the empty row, header=[0,1] picks the two <th>-only
946
# rows.
947
df = self.read_html(data, header=[0, 1])[0]
948
- assert df.columns[3] == (u('Three months ended April\xa030'),
949
- u('2013.1'))
950
- assert df['Three months ended April\xa030', '2013.1'][2] == '3718'
+
+ three_months = u('Three months ended April\xa030')
+ assert df.columns[3] == (three_months, '2013.1')
951
+ assert df[three_months, '2013.1'][2] == '3718'
952
953
def test_wikipedia_states_table(self):
954
data = os.path.join(DATA_PATH, 'wikipedia_states.html')
0 commit comments