Skip to content

Commit

Permalink
Fix DataFrame.filter_with spec
Browse files Browse the repository at this point in the history
I believe since the callback can return a list of lazy series queries
  • Loading branch information
mhanberg committed Aug 30, 2024
1 parent 65b01e3 commit 54f19a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/explorer/data_frame.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2606,7 +2606,7 @@ defmodule Explorer.DataFrame do
@doc type: :single
@spec filter_with(
df :: DataFrame.t(),
callback :: (Explorer.Backend.LazyFrame.t() -> Series.lazy_t())
callback :: (Explorer.Backend.LazyFrame.t() -> [Series.lazy_t()])
) :: DataFrame.t()
def filter_with(df, fun) when is_function(fun, 1) do
ldf = Explorer.Backend.LazyFrame.new(df)
Expand Down

0 comments on commit 54f19a3

Please sign in to comment.