Skip to content

Commit a6e6191

Browse files
committed
chore: Bump statistics down so it works with iHaskell.
1 parent 6f3010b commit a6e6191

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dataframe.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ executable one_billion_row_challenge
192192
directory >= 1.3.0.0 && <= 1.3.9.0,
193193
hashable >= 1.2 && <= 1.5.0.0,
194194
snappy >= 0.2.0.0 && <= 0.2.0.4,
195-
statistics >= 0.16.2.1 && <= 0.16.3.0,
195+
statistics >= 0.16.2.1 && < 0.16.3.0,
196196
template-haskell >= 2.0 && <= 2.30,
197197
text >= 2.0 && <= 2.1.2,
198198
time >= 1.12 && <= 1.14,

src/DataFrame/Operations/Statistics.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ correlation :: T.Text -> T.Text -> DataFrame -> Maybe Double
9191
correlation first second df = do
9292
f <- _getColumnAsDouble first df
9393
s <- _getColumnAsDouble second df
94-
return $ SS.correlation2 f s
94+
return $ SS.correlation (VG.zip f s)
9595

9696
_getColumnAsDouble :: T.Text -> DataFrame -> Maybe (VU.Vector Double)
9797
_getColumnAsDouble name df = case getColumn name df of

0 commit comments

Comments
 (0)