Referring Index.indexing[1] as Index.column
void constructFromLevels(int axis)(string[][] index, string[] titles = []) Description: Construct multi - index based on levels [["Owl", "Kiwi"], ["Wild", "Domestic"]] will generate: OWl Wild Owl Domestic Kiwi Wild Kiwi Domestic @params: axis - 0 for rows, 1 for columns @params: index - 2D array of string with each unique level index @params?: titles - Titles for each index level
void constructFromPairs(Args...)(Args args) Description: Constructing index row wise [["Hello", "Hi"], ["Hello", "Hi"], ["Hello", "Hi"]] will generate Hello Hi Hello Hi Hello Hi @params: rowindex - Can be a 1D or 2D array of int or string @params: rowindexTitles - 1D array of string @params?: columnindex - Can be a 1D or 2D array of int or string @params?: columnIndexTitles - 1D array of string
void constructFromZip(int axis, T...)(Zip!T index, string[] titles = []) Description: Constructing Index from a Zip range @params: axis - 0 for Row and 1 for Column @params: index - Zip from which index will be constructed @params?: titles - titles for index levels
void extend(int axis, T)(T next) Description:Extends row.index @params: axis - 0 for rows, 1 for column.index @params: next - The element to extend element
void generateCodes() Description: Function to generate index codes for given index array (Removes repetition)
int getPosition(int axis)(string[] index) Description: Get position of a particual index within the struct @params: axis - 0 to search row Index, 1 to search column index @params: index - index to search for
void optimize() Description: Optimizes a DataFrame - If row.index can be expressed as integer, converts string row.index to int and stores in the codes
Referring Index.indexing[0] as Index.row
void setIndex(Args...)(Args args) Description: Method for etting row.index @params: rowindex - Can be a 1D or 2D array of int or string @params: rowindexTitles - 1D array of string @params?: columnindex - Can be a 1D or 2D array of int or string @params?: columnIndexTitles - 1D array of string
Row and Column indexing
To know if data is multi-indexed
Structure for DataFrame Indexing