From d0de0ea3651ac23948f6c121337f76ecf58bbf1d Mon Sep 17 00:00:00 2001 From: aburkard Date: Wed, 11 Sep 2024 14:49:59 -0700 Subject: [PATCH] Fix sample with frac (#75) --- lib/polars/data_frame.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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