Skip to content

Commit

Permalink
Fix sample with frac (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkard authored Sep 11, 2024
1 parent 0f20845 commit d0de0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/polars/data_frame.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4234,7 +4234,7 @@ def sample(
if n.nil? && !frac.nil?
frac = Series.new("frac", [frac]) unless frac.is_a?(Series)

_from_rbdf(
return _from_rbdf(
_df.sample_frac(frac._s, with_replacement, shuffle, seed)
)
end
Expand Down

0 comments on commit d0de0ea

Please sign in to comment.