forked from DataHaskell/dataframe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataframe.ghci
More file actions
33 lines (27 loc) · 1.07 KB
/
Copy pathdataframe.ghci
File metadata and controls
33 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
:set -XOverloadedStrings
:set -XTypeApplications
:set -XTemplateHaskell
import qualified Data.Text as T
import DataFrame.Functions (declareColumns)
import Data.Text (Text)
import DataFrame ((|>))
import Data.Int
import Data.Time
import qualified DataFrame as D
import qualified DataFrame.Functions as F
default (Int, T.Text, Double)
:def! exposeColumns \s -> return ("_ = (); declareColumns " ++ s)
__brightBlue s = "\ESC[94m" ++ s ++ "\ESC[0m"
__brightGreen s = "\ESC[92m" ++ s ++ "\ESC[0m"
putStrLn "========================================"
putStrLn (" 📦" ++ (__brightBlue "Dataframe"))
putStrLn "========================================"
putStrLn ""
putStrLn "✨ Modules were automatically imported."
putStrLn ""
putStrLn "💡 Use prefix 'D' for core functionality."
putStrLn (" ● E.g. " ++ (__brightGreen "D.readCsv \"/path/to/file\""))
putStrLn "💡 Use prefix 'F' for expression functions."
putStrLn (" ● E.g. " ++ (__brightGreen "F.sum (F.col @Int \"value\")"))
putStrLn ""
putStrLn "✅ Ready."