Skip to content

Commit

Permalink
Update Table.describe for the typechecker changes (#164)
Browse files Browse the repository at this point in the history
The changes to typechecker broke Table.describe function. Now values need to be explicitly converted before being wrapped into column. #161
  • Loading branch information
mwu-tow committed Jun 27, 2019
1 parent a0b9446 commit 17e2fc6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Table.luna
Original file line number Diff line number Diff line change
Expand Up @@ -1350,14 +1350,14 @@ class Table:
quart3Val = quart3.map .toList
quart3FlatList = quart3Val.concat

col1 = Column.fromList "column" StringType names
col2 = Column.fromList "Mean" DoubleType meanFlatList
col3 = Column.fromList "Std dev" DoubleType stdFlatList
col4 = Column.fromList "Min" DoubleType minFlatList
col5 = Column.fromList "Quantile 0.25" DoubleType quart1FlatList
col6 = Column.fromList "Median" DoubleType medianFlatList
col7 = Column.fromList "Quantile 0.75" DoubleType quart3FlatList
col8 = Column.fromList "Max" DoubleType maxFlatList
col1 = Column.fromList "column" StringType names
col2 = Column.fromList "Mean" DoubleType $ meanFlatList . map .toReal
col3 = Column.fromList "Std dev" DoubleType $ stdFlatList . map .toReal
col4 = Column.fromList "Min" DoubleType $ minFlatList . map .toReal
col5 = Column.fromList "Quantile 0.25" DoubleType $ quart1FlatList . map .toReal
col6 = Column.fromList "Median" DoubleType $ medianFlatList . map .toReal
col7 = Column.fromList "Quantile 0.75" DoubleType $ quart3FlatList . map .toReal
col8 = Column.fromList "Max" DoubleType $ maxFlatList . map .toReal
Table.fromColumns [col1, col2, col3, col4, col5, col6, col7, col8]

# Provides rolling window calculations. Rolling is provided over `keyColumnName`.
Expand Down

0 comments on commit 17e2fc6

Please sign in to comment.