class

Bio::DataFrame

Inherits Reference < Object

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.

Constructors

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.

Source

Class methods

from_csv(path : String, delimiter = nil, header = false, index = false)

Load methods

Source
from_json(path : String)
Source

Instance methods

apply
Source
columns
Source
columns=(columns : Array(String) | Nil)
Source
corr
Source
data
Source
distance_matrix
Source
filter
Source
iloc
Source
index
Source
index=(index : Array(String) | Nil)
Source
loc

Search methods

Source
mean
Source
median
Source
to_csv

Save methods

Source
to_json
Source
transpose
Source