Skip to content

What is a DataFrame in RedAmber ? #85

Answered by heronshoes
heronshoes asked this question in Q&A
Discussion options

You must be logged in to vote

Class RedAmber::DataFrame represents 2D-data. It's alike 2D-Array or Matrix, but the difference is DataFrame has the Vector with same datatype within and columnar labels are exist. So columns and rows are not equal.

RedAmber::DataFrameとは2次元データを表現するクラス。
2次元の配列または行列に似ていますが、列方向に必ず同一種類のデータが並ぶことと、
列ラベルが必ずある点が異なります。このため、列と行は等価ではないことに注意が必要です。

component description object
vector 1D data array of same data type RedAmber::Vector
key a label attached to a vector Symbol
variable
(column)
a group of key and vector DataFrame#[](key) #=> Vector
Vector#key #=> key
dataframe 2D data set by Vectors with same length RedAmber::DataFrame
observation
(row)
a set of relating data at same position i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@heronshoes
Comment options

heronshoes Sep 14, 2022
Maintainer Author

Answer selected by heronshoes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant