Skip to content

Commit

Permalink
Refined docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
w2sv committed Jun 6, 2023
1 parent 17b1a8f commit 419cb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/dataframe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ class DataFrame extends ListBase<RecordRow> {

List<String> get columnNames => _trackedColumnNames.l;

/// Returns an unmodifiable list of nRows, nColumns
/// Returns an unmodifiable list of nRows, nColumns.
List<int> 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);
Expand All @@ -249,7 +249,7 @@ class DataFrame extends ListBase<RecordRow> {
Iterable<T> columnAsIterable<T>(String colName, {int start = 0, int? end}) =>
sublist(start, end).map((row) => row[columnIndex(colName)]).cast<T>();

/// Returns an iterable over the columns.
/// Returns an iterable over all columns.
Iterable<Column> columns() => _trackedColumnNames.map(call);

/// Grab a (typed) record sitting at dataframe[rowIndex][colName].
Expand Down

0 comments on commit 419cb81

Please sign in to comment.