Group

Struct for groupBy Operation

Members

Aliases

GrpType
alias GrpType = staticMap!(toArr, GrpRowType)
Undocumented in source.
GrpType
alias GrpType = toArr!(GrpRowType[0])[GrpRowType.length]
Undocumented in source.

Functions

aggregate
auto aggregate()
Undocumented in source. Be warned that the author may not have intended to support it.
asSlice
auto asSlice(U grp)

Get a specific group

asSlice
auto asSlice()

Get entire

asSlice
auto asSlice(U grp, U index)
Undocumented in source. Be warned that the author may not have intended to support it.
combine
auto combine(T[] groupIndex)

auto combine(T)(T[] groupIndex) Description: Combines selective groups into a DataFrame @params: groupIndex - Group index in form of integer array or string array

combine
auto combine()

auto combine(T)(T[] groupIndex) Description: Combines all te groups into a DataFrame

createGroup
void createGroup(DataFrame!T df, int[] indexLevels)

void createGroup(T)(DataFrame!T df, int[] levels) Description: Funtion to create a groupBy object from a DataFrame @parmas: df - DataFrame on which groupBy is operated @params: levels - levels to consider for grouping

display
string display(T[] groupIndex, bool getStr, int termianlw)

string display(T)(T[] groupIndex = [],bool getStr = false, int termianlw = 0) Description: Display groupBy on terminal @params: groupIndex - Group index in form of integer array or string array @params: getStr - Returns the generated display sring @params: termianlw - Set terminal width

display
string display(bool getStr, int termianlw)

string display(bool getStr = false, int termianlw = 0) Description: Display complete groupBy on terminal @params: getStr - Returns the generated display sring @params: termianlw - Set terminal width

getGroupPosition
ptrdiff_t getGroupPosition(string[] grpTitles)

ptrdiff_t getGroupPosition(string[] grpTitles) Description: Get position of a particular group in the sruct @params: grpTitles - the group you wnant to search for

getGroups
string[][] getGroups()

string[][] getGroups() @property Description: Get the generated string array containing all the groups

opAssign
void opAssign(Slice!(T*, 2, kind) input)

Assign a Slice to the Group

opIndex
auto opIndex(size_t i1, size_t i2, size_t i3)

Index operation of the form gp[size_t, size_t, size_t]

opIndex
auto opIndex(T i1, U i2, V i3)

Index operation of the form gp[["Grp Index"], ["Row-Index"], ["Column-Index"]]

opIndex
auto opIndex(T groupIndex, U index, Args args)

opIndex that returns Axis for column/row binary operations

opIndexAssign
void opIndexAssign(Axis!T elements, string[] groupTitle, string[] index, int axis)

Binary Operation on DataFrame rows/columns

opIndexAssign
void opIndexAssign(Slice!(T*, 1, kind) sl, string[] groupTitle, string[] index, int axis)

Slice assignment operation

opIndexAssign
void opIndexAssign(Slice!(T*, 2, kind) sl, string[] groupTitle)

Assigning a Slice to group

opIndexOpAssign
void opIndexOpAssign(Axis!T elements, string[] groupTitle, string[] index, int axis)

Short Hand Binary operation

opIndexOpAssign
void opIndexOpAssign(Slice!(T*, 1, kind) sl, string[] groupTitle, string[] index, int axis)

Slice assignment operation

Variables

data
GrpType data;

Data of Group

elementCountTill
int[] elementCountTill;

number of elements before the particular group

groups
string[][] groups;

Group names

grpIndex
Index grpIndex;

Index for group

isHomogeneousType
enum bool isHomogeneousType;

Flag to check if the Group is Homogeneous

Meta