General rules

The following rules explain target functionality of how getindex, setindex!, and view are intended to work with DataFrame, SubDataFrame and DataFrameRow objects.

The rules for a valid type of index into a column are the following:

The rules for a valid type of index into a row are the following:

In the descriptions below df represents a DataFrame, sdf is a SubDataFrame and dfr is a DataFrameRow.


The following list specifies return types of getindex operations depending on argument types.

In all operations copying vectors is avoided where possible. If it is performed a description explicitly mentions that the data is copied.

For performance reasons, accessing, via getindex or view, a single row and multiple cols of a DataFrame, a SubDataFrame or a DataFrameRow always returns a DataFrameRow (which is a view-like type).





Under construction