class Bio::DataFrame

Overview

DataFrame class

Represents, i.e., the result of omics experiments, organized features vs observations with same notation that pandas, contaning only numerical data except in the header and/or the index. Data is represented with num.cr tensor for perfomance.

Defined in:

omics/dataframe.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(data = nil, index : Nil | Array(String) = nil, columns : Nil | Array(String) = nil) #

Creates a new DataFrame object.

data argument can be specified as numeric arrays or num.cr tensors. If data argument is not nil, data dimention will be checked against index and columns arguments.


[View source]

Class Method Detail

def self.from_csv(path : String, delimiter = nil, header = false, index = false) #

Load methods


[View source]
def self.from_json(path : String) #

[View source]

Instance Method Detail

def apply #

[View source]
def columns : Array(String) | Nil #

[View source]
def columns=(columns : Array(String) | Nil) #

[View source]
def corr #

[View source]
def cov #

[View source]
def data #

[View source]
def distance_matrix #

[View source]
def filter #

[View source]
def iloc #

[View source]
def index : Array(String) | Nil #

[View source]
def index=(index : Array(String) | Nil) #

[View source]
def loc #

Search methods


[View source]
def max #

[View source]
def mean #

[View source]
def median #

[View source]
def min #

[View source]
def std #

[View source]
def to_csv #

Save methods


[View source]
def to_json #

[View source]
def transpose #

[View source]
def var #

[View source]