@@ -1561,7 +1561,7 @@ describe("DataFrame", function () {
15611561 const df_val = [ [ 2 , 4 ] ,
15621562 [ 180 , 360 ] ,
15631563 [ 180 , 360 ] ]
1564- assert . deepEqual ( ( df . dropNa ( 0 ) as DataFrame ) . values , df_val ) ;
1564+ assert . deepEqual ( ( df . dropNa ( { axis : 0 } ) as DataFrame ) . values , df_val ) ;
15651565
15661566 } ) ;
15671567 it ( "drop NaNs along axis 1" , function ( ) {
@@ -1572,15 +1572,15 @@ describe("DataFrame", function () {
15721572 const df = new DataFrame ( data , { columns : column } ) ;
15731573 const df_val = [ [ 0 , 2 , 4 ] ,
15741574 [ 360 , 180 , 360 ] ]
1575- assert . deepEqual ( ( df . dropNa ( 1 ) as DataFrame ) . values , df_val ) ;
1575+ assert . deepEqual ( ( df . dropNa ( { axis : 1 } ) as DataFrame ) . values , df_val ) ;
15761576
15771577 } ) ;
15781578 it ( "drop NaNs along axis 1" , function ( ) {
15791579 const data = [ [ NaN , 1 , 2 , 3 ] , [ 3 , 4 , NaN , 9 ] , [ 5 , 6 , 7 , 8 ] ] ;
15801580 const column = [ "A" , "B" , "C" , "D" ] ;
15811581 const df = new DataFrame ( data , { columns : column } ) ;
15821582 const df_val = [ [ 5 , 6 , 7 , 8 ] ] ;
1583- assert . deepEqual ( ( df . dropNa ( 1 ) as DataFrame ) . values , df_val ) ;
1583+ assert . deepEqual ( ( df . dropNa ( { axis : 1 } ) as DataFrame ) . values , df_val ) ;
15841584
15851585 } ) ;
15861586 it ( "drop inplace at axis 0, inplace false " , function ( ) {
@@ -1590,7 +1590,7 @@ describe("DataFrame", function () {
15901590
15911591 const df_val = [ [ 1 , 3 ] , [ 4 , 9 ] , [ 6 , 8 ] ] ;
15921592
1593- assert . deepEqual ( ( df . dropNa ( 0 ) as DataFrame ) . values , df_val ) ;
1593+ assert . deepEqual ( ( df . dropNa ( { axis : 0 } ) as DataFrame ) . values , df_val ) ;
15941594
15951595 } ) ;
15961596 it ( "drop inplace at axis 0, inplace true " , function ( ) {
@@ -1599,7 +1599,7 @@ describe("DataFrame", function () {
15991599 const df = new DataFrame ( data , { columns : column } ) ;
16001600
16011601 const df_val = [ [ 1 , 3 ] , [ 4 , 9 ] , [ 6 , 8 ] ] ;
1602- df . dropNa ( 0 , { inplace : true } ) ;
1602+ df . dropNa ( { axis : 0 , inplace : true } ) ;
16031603 assert . deepEqual ( df . values , df_val ) ;
16041604
16051605 } ) ;
@@ -1610,7 +1610,7 @@ describe("DataFrame", function () {
16101610
16111611 const df_val = [ [ 5 , 6 , 7 , 8 ] ] ;
16121612
1613- df . dropNa ( 1 , { inplace : true } ) ;
1613+ df . dropNa ( { axis : 1 , inplace : true } ) ;
16141614 assert . deepEqual ( df . values , df_val ) ;
16151615
16161616 } ) ;
@@ -1621,7 +1621,7 @@ describe("DataFrame", function () {
16211621
16221622 let df_val = [ [ 5 , 6 , 7 , 8 ] ] ;
16231623
1624- df . dropNa ( 1 , { inplace : true } ) ;
1624+ df . dropNa ( { axis : 1 , inplace : true } ) ;
16251625 assert . deepEqual ( df . values , df_val ) ;
16261626
16271627 } ) ;
@@ -2703,13 +2703,13 @@ describe("DataFrame", function () {
27032703
27042704 it ( "Confirms that column names are not changed" , function ( ) {
27052705
2706- let data = [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] , [ 20 , 30 , 40 ] , [ 39 , 89 , 78 ] ] ;
2707- let cols = [ "A" , "B" , "C" ] ;
2706+ let data = [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] , [ 20 , 30 , 40 ] , [ 39 , 89 , 78 ] ] ;
2707+ let cols = [ "A" , "B" , "C" ] ;
27082708 let df = new DataFrame ( data , { columns : cols } ) ;
2709- let df_query = df . query ( df [ "B" ] . ge ( 5 ) ) ;
2710- assert . deepEqual ( df_query . index , [ 1 , 2 , 3 ] ) ;
2711- assert . deepEqual ( df_query . columns , [ "A" , "B" , "C" ] ) ;
2712- } ) ;
2709+ let df_query = df . query ( df [ "B" ] . ge ( 5 ) ) ;
2710+ assert . deepEqual ( df_query . index , [ 1 , 2 , 3 ] ) ;
2711+ assert . deepEqual ( df_query . columns , [ "A" , "B" , "C" ] ) ;
2712+ } ) ;
27132713
27142714 } ) ;
27152715
0 commit comments