Skip to content

Commit d22637b

Browse files
committed
Fixed the bug in hasNils method of the DataFrame class.
1 parent 18677f2 commit d22637b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/DataFrame/DataFrame.class.st

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,11 @@ DataFrame >> groupBy: columnName aggregate: anArrayOfUsingAsStatements [
10071007

10081008
{ #category : #replacing }
10091009
DataFrame >> hasNils [
1010-
1011-
1 to: self numberOfColumns do: [ :each |
1012-
^ true ifTrue: [ (self columnAt: each) hasNil ] ].
1010+
"Returns true if there is atleast one nil value in the data frame. Returns false if there are no nil values in the dataframe"
1011+
1012+
1 to: self numberOfColumns do: [ :each |
1013+
(self columnAt: each) hasNil
1014+
ifTrue:[^ true] ].
10131015
^ false
10141016
]
10151017

0 commit comments

Comments
 (0)