class Series(T, V)

Overview

A Series is a one dimensional view of a Frame. Slicing column-wise will return a Series. A Series stores its own index information even if an index is being tracked by a Frame.

Defined in:

frame/series.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(t : Tensor(U), index : Index(V), name : Symbol = :unnamed) forall U, V #

Initializes a Series from a Tensor, Index and a #name. If no name is provided the Series will be unnamed, and a name will be inferred if adding this to a Frame

Arguments

t : Tensor(U) One dimensional input Tensor #index : Index(V) Index for the Series #name : Symbol Identifier for the Series


[View source]
def self.new(t : Tensor(U), name : Symbol = :unnamed) forall U #

Initializes a Series from a Tensor and a #name. If no name is provided the Series will be unnamed, and a name will be inferred if adding this to a Frame

Arguments

t : Tensor(U) One dimensional input Tensor #name : Symbol Identifier for the Series


[View source]

Instance Method Detail

def [](i : V) #

[View source]
def add(other : Number) #

[View source]
def add(other : FrameSlice) #

[View source]
def all #

[View source]
def any #

[View source]
def bitwise_and(other : Number) #

[View source]
def bitwise_and(other : FrameSlice) #

[View source]
def bitwise_or(other : Number) #

[View source]
def bitwise_or(other : FrameSlice) #

[View source]
def bitwise_xor(other : Number) #

[View source]
def bitwise_xor(other : FrameSlice) #

[View source]
def data : Tensor(T) #

[View source]
def divide(other : Number) #

[View source]
def divide(other : FrameSlice) #

[View source]
def equal(other : Number) #

[View source]
def equal(other : FrameSlice) #

[View source]
def floordiv(other : Number) #

[View source]
def floordiv(other : FrameSlice) #

[View source]
def greater(other : Number) #

[View source]
def greater(other : FrameSlice) #

[View source]
def greater_equal(other : Number) #

[View source]
def greater_equal(other : FrameSlice) #

[View source]
def index : Index(V) #

[View source]
def left_shift(other : Number) #

[View source]
def left_shift(other : FrameSlice) #

[View source]
def less(other : Number) #

[View source]
def less(other : FrameSlice) #

[View source]
def less_equal(other : Number) #

[View source]
def less_equal(other : FrameSlice) #

[View source]
def max #

[View source]
def mean #

[View source]
def min #

[View source]
def modulo(other : Number) #

[View source]
def modulo(other : FrameSlice) #

[View source]
def multiply(other : Number) #

[View source]
def multiply(other : FrameSlice) #

[View source]
def name : Symbol #

[View source]
def not_equal(other : Number) #

[View source]
def not_equal(other : FrameSlice) #

[View source]
def power(other : Number) #

[View source]
def power(other : FrameSlice) #

[View source]
def prod #

[View source]
def right_shift(other : Number) #

[View source]
def right_shift(other : FrameSlice) #

[View source]
def set_index!(index : Index(V)) #

[View source]
def std #

[View source]
def subtract(other : Number) #

[View source]
def subtract(other : FrameSlice) #

[View source]
def sum #

[View source]
def to_a #

[View source]
def to_tensor #

[View source]
def unique #

[View source]