class
Dataframe::Row
- Dataframe::Row
- Reference
- Object
Defined in:
row.crConstructors
-
.new(values : Array(Type), headers : Array(String))
Creates a new
Rowwith the specified headers and values. -
.new
Creates an empty
Row.
Instance Method Summary
- #==(other : Row) : Bool
-
#[](key : String) : Type
Returns the value for the key given by key.
-
#[]=(key : String, value : Type)
Sets the value of key to the given value.
-
#[]?(key : String) : Type
Returns the value for the key given by key, or
nilif it doesn't exist. -
#headers : Array(String)
Returns the headers of the
Row. - #to_a : Array(Type)
-
#to_h : Hash(String, Type)
Returns the data of the
Rowas aHash. -
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Instance Method Detail
Returns the value for the key given by key, or nil if it doesn't exist.
def to_s(io : IO) : Nil
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>