We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e925a38 commit 19de82dCopy full SHA for 19de82d
src/Data/DataFrame/IO.hs
@@ -58,7 +58,8 @@ readSeparated :: Char -> ReadOptions-> String -> IO DataFrame
58
readSeparated c opts path = withFile path ReadMode $ \handle -> do
59
columnNames <-if hasHeader opts
60
then map C.strip . C.split c <$> C.hGetLine handle
61
- else return []
+ else return [] -- TODO: this current doesn't work for a CSV file
62
+ -- with no header. We can read a line and seek back.
63
tmpFiles <- getTempFiles columnNames
64
mkColumns c tmpFiles handle
65
df <- foldM (\df (i, name) -> do
0 commit comments