diff --git a/lib/polars/data_frame.rb b/lib/polars/data_frame.rb index c64dc537a5..67ba6a3b8f 100644 --- a/lib/polars/data_frame.rb +++ b/lib/polars/data_frame.rb @@ -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