Skip to content

Commit 730c03e

Browse files
committed
applyWhere should have been applied to filter column not target.
1 parent 306d8a7 commit 730c03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/DataFrame/Operations.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ applyWhere ::
278278
T.Text -> -- Column name
279279
DataFrame -> -- DataFrame to apply operation to
280280
DataFrame
281-
applyWhere condition filterColumnName f columnName df = case DI.getColumn columnName df of
281+
applyWhere condition filterColumnName f columnName df = case DI.getColumn filterColumnName df of
282282
Nothing -> throw $ ColumnNotFoundException columnName "applyWhere" (map fst $ M.toList $ DI.columnIndices df)
283283
Just column -> let
284284
indexes = DI.ifoldrColumn (\i val acc -> if condition val then V.cons i acc else acc) V.empty column

0 commit comments

Comments
 (0)