DataFrame.opIndex

Get an entire row or column using index For column: df[["Index"]] For row: df[["Index"], 0]

  1. auto opIndex(size_t i1, size_t i2)
  2. auto opIndex(T rindx, U cindx)
  3. auto opIndex(string[] index, Args args)
    struct DataFrame(FrameFields...)
    opIndex
    (
    Args...
    )
    (
    string[] index
    ,
    Args args
    )
    if (
    Args.length == 0 ||
    (
    Args.length == 1 &&
    is(Args[0] == int)
    )
    )
    if (
    FrameFields.length > 0 &&
    (
    (
    !isType!(FrameFields[0]) &&
    is(typeof(FrameFields[0]) == bool)
    &&
    FrameFields[0] == true
    &&
    FrameFields.length > 1
    )
    ||
    isType!(FrameFields[0])
    )
    )

Meta