diff --git a/lib/src/dataframe.dart b/lib/src/dataframe.dart index 1a31bfa..c8a4539 100644 --- a/lib/src/dataframe.dart +++ b/lib/src/dataframe.dart @@ -224,10 +224,10 @@ class DataFrame extends ListBase { List get columnNames => _trackedColumnNames.l; - /// Returns an unmodifiable list of nRows, nColumns + /// Returns an unmodifiable list of nRows, nColumns. List get shape => List.unmodifiable([length, nColumns]); - /// Accesses column index in O(1) + /// Accesses column index in O(1). int columnIndex(String colName) { try { return _trackedColumnNames.indexOf(colName); @@ -249,7 +249,7 @@ class DataFrame extends ListBase { Iterable columnAsIterable(String colName, {int start = 0, int? end}) => sublist(start, end).map((row) => row[columnIndex(colName)]).cast(); - /// Returns an iterable over the columns. + /// Returns an iterable over all columns. Iterable columns() => _trackedColumnNames.map(call); /// Grab a (typed) record sitting at dataframe[rowIndex][colName].