Skip to content

Commit e992360

Browse files
Added a column for DataFrame row names in the inspector table. Fixes #275
1 parent 85a9c36 commit e992360

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

src/DataFrame/DataFrame.class.st

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,21 +1426,25 @@ DataFrame >> innerJoin: aDataFrame onLeft: leftColumn onRight: rightColumn [
14261426

14271427
{ #category : #newtools }
14281428
DataFrame >> inspectionItems: aBuilder [
1429-
<inspectorPresentationOrder: 0 title: 'DataFrame'>
14301429

1430+
<inspectorPresentationOrder: 0 title: 'DataFrame'>
14311431
| table |
14321432
table := aBuilder newTable.
14331433

14341434
table addColumn: (SpIndexTableColumn new
1435-
title: '#';
1436-
sortFunction: #yourself ascending;
1437-
beNotExpandable;
1438-
yourself).
1435+
title: '#';
1436+
sortFunction: #yourself ascending;
1437+
beNotExpandable;
1438+
yourself).
1439+
1440+
table addColumn: (SpStringTableColumn
1441+
title: ''
1442+
evaluated: [ :rowWithName | rowWithName at: 1 ]).
14391443

1440-
(self columnNames) doWithIndex: [ :headerName :columnIndex |
1444+
self columnNames doWithIndex: [ :headerName :columnIndex |
14411445
table addColumn: (SpStringTableColumn
1442-
title: headerName
1443-
evaluated: [ :rowWithName | rowWithName at: columnIndex + 1 ]) ].
1446+
title: headerName
1447+
evaluated: [ :rowWithName | rowWithName at: columnIndex + 1 ]) ].
14441448

14451449
table items: self asArrayOfRowsWithName.
14461450

0 commit comments

Comments
 (0)