@@ -1204,6 +1204,15 @@ def test_multiheader_two_blank_lines(self, read_ext): |
|
|
1204 |
1204 |
) |
1205 |
1205 |
tm.assert_frame_equal(result, expected) |
1206 |
1206 |
|
|
1207 |
+def test_trailing_blanks(self, read_ext): |
|
1208 |
+""" |
|
1209 |
+ Sheets can contain blank cells with no data. Some of our readers |
|
1210 |
+ were including those cells, creating many empty rows and columns |
|
1211 |
+ """ |
|
1212 |
+file_name = "trailing_blanks" + read_ext |
|
1213 |
+result = pd.read_excel(file_name) |
|
1214 |
+assert result.shape == (3, 3) |
|
1215 |
+ |
1207 |
1216 |
|
1208 |
1217 |
class TestExcelFileRead: |
1209 |
1218 |
@pytest.fixture(autouse=True) |