Skip to content

Commit 43f1f9b

Browse files
Fixed #267. #asDataFrame now retains original data types.
1 parent be8d477 commit 43f1f9b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/DataFrame/Collection.extension.st

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ Collection >> asDataFrame [
2323
| value |
2424
value := row at: colIndex ifAbsent: [ nil ].
2525
dataFrame at: rowIndex at: colIndex put: value ] ].
26-
26+
1 to: numberOfColumns do: [ :colIndex |
27+
dataFrame dataTypes
28+
at: colIndex
29+
put: (dataFrame columnAt: colIndex) calculateDataType ].
2730

2831
^ dataFrame
2932
]

0 commit comments

Comments
 (0)