Sha256: cfa053d7c228f7762d95ca20b0fcde392c707eb7c6e82c50f4768dd0548c7d93
Contents?: true
Size: 727 Bytes
Versions: 4
Compression:
Stored size: 727 Bytes
Contents
module Remi module DataFrame class << self def create(df_type = :daru, *args, **kargs, &block) dataframe = case df_type when :daru Remi::DataFrame::Daru.new(*args, **kargs, &block) else raise TypeError, "Unknown frame type: #{df_type}" end end def daru(*args, **kargs, &block) self.create(:daru, *args, **kargs, &block) end end def [](*args) super end def size super end def write_csv(*args, **kargs, &block) super end # Public: Returns the type of DataFrame def df_type raise NoMethodError, "#{__method__} not defined for #{self.class.name}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
remi-0.3.3 | lib/remi/data_frame.rb |
remi-0.3.2 | lib/remi/data_frame.rb |
remi-0.3.1 | lib/remi/data_frame.rb |
remi-0.3.0 | lib/remi/data_frame.rb |