columnIndex method

int columnIndex(
  1. String colName
)

Accesses column index in O(1).

Implementation

int columnIndex(String colName) {
  try {
    return _trackedColumnNames.indexOf(colName);
  } catch (_) {
    throw ArgumentError("Column named '$colName' not present in DataFrame");
  }
}