We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c06d75 commit 052509eCopy full SHA for 052509e
1 file changed
tests/io/read_html.test.ts
@@ -174,9 +174,11 @@ describe("readHtml – filtering", () => {
174
<tr><td></td></tr>
175
<tr><td>2</td></tr>
176
</table>`;
177
- // With skipBlankLines=true (default) and naValues, the blank row is still
178
- // present as null. skipBlankLines only drops rows where ALL cells are
179
- // whitespace-only.
+ const [dfDefault] = readHtml(html);
+ expect(dfDefault!.shape[0]).toBe(2); // 1, 2
+ expect(dfDefault!.col("v").toArray()).toEqual([1, 2]);
180
+
181
+ // With skipBlankLines=false, the blank row is preserved and coerced to null.
182
const [df] = readHtml(html, { skipBlankLines: false });
183
expect(df!.shape[0]).toBe(3); // 1, null, 2
184
});
0 commit comments