File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2408,7 +2408,9 @@ DataFrame >> toMarkdown [
24082408
24092409 columnWidths := dataFrame columnNames collect: [ :columnName |
24102410 | maxWidth |
2411- maxWidth := columnName size.
2411+ columnName isString
2412+ ifFalse: [ maxWidth := columnName asString size ]
2413+ ifTrue: [ maxWidth := columnName size ].
24122414 dataFrame rows do: [ :row |
24132415 | value |
24142416 value := row at: columnName.
@@ -2417,7 +2419,10 @@ DataFrame >> toMarkdown [
24172419
24182420 dataFrame columnNames withIndexDo: [ :columnName :index |
24192421 | paddedColumnName |
2420- paddedColumnName := columnName padRightTo: (columnWidths at: index).
2422+ paddedColumnName := (columnName isString
2423+ ifFalse: [ columnName asString ]
2424+ ifTrue: [ columnName ]) padRightTo:
2425+ (columnWidths at: index).
24212426 markdown nextPutAll: paddedColumnName , ' | ' ].
24222427 markdown cr.
24232428 markdown nextPutAll: ' | ' .
You can’t perform that action at this time.
0 commit comments