Skip to content

Commit c0238ed

Browse files
committed
Add exhaustiveness checks for applyStatistic
1 parent 9bce985 commit c0238ed

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/DataFrame/Operations/Statistics.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ applyStatistic f name df = case getColumn name df of
122122
mapColumn (realToFrac :: Float -> Double) column,
123123
Just column ]
124124
reduceColumn f matching
125+
_ -> Nothing
125126

126127
applyStatistics :: (VU.Vector Double -> VU.Vector Double) -> T.Text -> DataFrame -> Maybe (VU.Vector Double)
127128
applyStatistics f name df = case getColumn name df of

0 commit comments

Comments
 (0)