Skip to content

Commit 917c7e6

Browse files
fix: apply biome formatting to str_get_dummies test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent eec0981 commit 917c7e6

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tests/stats/str_get_dummies.test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ describe("strGetDummies — pandas parity", () => {
165165
});
166166

167167
test("multi-label tags scenario", () => {
168-
const df = strGetDummies(
169-
s(["python|pandas", "python|numpy", "pandas|numpy|scipy"]),
170-
);
168+
const df = strGetDummies(s(["python|pandas", "python|numpy", "pandas|numpy|scipy"]));
171169
expect([...df.columns.values]).toEqual(["numpy", "pandas", "python", "scipy"]);
172170
expect([...df.col("python").values]).toEqual([1, 1, 0]);
173171
expect([...df.col("scipy").values]).toEqual([0, 0, 1]);
@@ -231,9 +229,7 @@ describe("strGetDummies — property-based", () => {
231229
const df = strGetDummies(ser);
232230
const origIdx = [...ser.index.values];
233231
const dfIdx = [...df.index.values];
234-
return (
235-
origIdx.length === dfIdx.length && origIdx.every((v, i) => v === dfIdx[i])
236-
);
232+
return origIdx.length === dfIdx.length && origIdx.every((v, i) => v === dfIdx[i]);
237233
},
238234
),
239235
);
@@ -284,9 +280,7 @@ describe("strGetDummies — property-based", () => {
284280
for (let i = 0; i < arr.length; i++) {
285281
const v = arr[i];
286282
const isMissing =
287-
v === null ||
288-
v === undefined ||
289-
(typeof v === "number" && Number.isNaN(v));
283+
v === null || v === undefined || (typeof v === "number" && Number.isNaN(v));
290284
if (!isMissing) {
291285
continue;
292286
}

0 commit comments

Comments
 (0)