@@ -864,7 +864,8 @@ Returns 'Left' with a 'DataFrameException' if the column cannot be converted to
864864This may occur if the column contains non-numeric data or values outside the 'Int' range.
865865-}
866866columnAsIntVector ::
867- Expr Int -> DataFrame -> Either DataFrameException (VU. Vector Int )
867+ (Columnable a , Num a ) =>
868+ Expr a -> DataFrame -> Either DataFrameException (VU. Vector Int )
868869columnAsIntVector (Col name) df = case getColumn name df of
869870 Just col -> toIntVector col
870871 Nothing ->
@@ -880,7 +881,8 @@ Returns 'Left' with a 'DataFrameException' if the column cannot be converted to
880881This may occur if the column contains non-numeric data.
881882-}
882883columnAsDoubleVector ::
883- Expr Double -> DataFrame -> Either DataFrameException (VU. Vector Double )
884+ (Columnable a , Num a ) =>
885+ Expr a -> DataFrame -> Either DataFrameException (VU. Vector Double )
884886columnAsDoubleVector (Col name) df = case getColumn name df of
885887 Just col -> toDoubleVector col
886888 Nothing ->
@@ -896,7 +898,8 @@ Returns 'Left' with a 'DataFrameException' if the column cannot be converted to
896898This may occur if the column contains non-numeric data.
897899-}
898900columnAsFloatVector ::
899- Expr Float -> DataFrame -> Either DataFrameException (VU. Vector Float )
901+ (Columnable a , Num a ) =>
902+ Expr a -> DataFrame -> Either DataFrameException (VU. Vector Float )
900903columnAsFloatVector (Col name) df = case getColumn name df of
901904 Just col -> toFloatVector col
902905 Nothing ->
0 commit comments