examples/dataset.rb in statsample-2.0.2 vs examples/dataset.rb in statsample-2.1.0

- old
+ new

@@ -4,14 +4,10 @@ # # This example demonstrates creation of basic Vectors and DataFrames. require 'statsample' Statsample::Analysis.store(Daru::DataFrame) do - # We set lazy_update to *true* so that time is not wasted in updating - # metdata every time an assignment happens. - Daru.lazy_update = true - samples = 1000 # The 'new_with_size' function lets you specify the size of the # vector as the argument and the block specifies how each element # of the vector will be created. @@ -24,12 +20,9 @@ # The *order* option lets you specify the way the vectors in the Hash # will be ordered. Not specifyin this will order vectors in alphabetical # order by default. ds = Daru::DataFrame.new({:a=>a,:b=>b}, order: [:b, :a]) summary(ds) - - # Reset lazy_update to *false* to prevent other code from breaking. - Daru.lazy_update = false end if __FILE__==$0 Statsample::Analysis.run_batch end