@@ -1617,19 +1617,39 @@ DataFrameTest >> testFindAllIndicesOfAtColumnFloat [
16171617{ #category : #replacing }
16181618DataFrameTest >> testHasNils [
16191619
1620- | df1 df2 |
1621- df1 := DataFrame withRows: #( #( nil 1.609 true ) #( Dubai 2.789 nil ) #( nil 8.788 false ) ).
1620+ | df1 df2 df3 df4 |
1621+ df1 := DataFrame withRows:
1622+ #( #( nil 1.609 true ) #( Dubai 2.789 nil )
1623+ #( nil 8.788 false ) ).
16221624 df1 rowNames: #( A B C ) .
16231625 df1 columnNames: #( City Population BeenThere ) .
16241626
16251627 self assert: df1 hasNils.
16261628
1627- df2 := DataFrame withRows: #( #( Barcelona 1.609 true ) #( Dubai 2.789 true ) #( London 8.788 false ) ).
1629+ df2 := DataFrame withRows:
1630+ #( #( Barcelona 1.609 true ) #( Dubai 2.789 true )
1631+ #( London 8.788 false ) ).
16281632
16291633 df2 rowNames: #( A B C ) .
16301634 df2 columnNames: #( City Population BeenThere ) .
16311635
1632- self deny: df2 hasNils
1636+ self deny: df2 hasNils.
1637+
1638+ df3 := DataFrame withRows:
1639+ #( #( Barcelona 1.609 true ) #( Dubai 2.789 nil )
1640+ #( London 8.788 false ) ).
1641+ df3 rowNames: #( A B C ) .
1642+ df3 columnNames: #( City Population BeenThere ) .
1643+
1644+ self assert: df3 hasNils.
1645+
1646+ df4 := DataFrame withRows:
1647+ #( #( Barcelona nil true ) #( Dubai 2.789 true )
1648+ #( London 8.788 false ) ).
1649+ df4 rowNames: #( A B C ) .
1650+ df4 columnNames: #( City Population BeenThere ) .
1651+
1652+ self assert: df4 hasNils
16331653]
16341654
16351655{ #category : #replacing }
0 commit comments