@@ -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