Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
9dcc49a4
Commit
9dcc49a4
authored
Nov 17, 2020
by
Philippe Veber
Browse files
tk/Dataframe: added columns
parent
8e7685ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lib/tk/dataframe.ml
lib/tk/dataframe.ml
+2
-0
lib/tk/dataframe.mli
lib/tk/dataframe.mli
+2
-0
No files found.
lib/tk/dataframe.ml
View file @
9dcc49a4
...
...
@@ -16,6 +16,8 @@ type t = {
cols
:
(
string
*
column
)
list
;
}
let
columns
df
=
df
.
cols
let
nrows
t
=
t
.
nrows
let
ncols
t
=
t
.
ncols
...
...
lib/tk/dataframe.mli
View file @
9dcc49a4
...
...
@@ -15,6 +15,8 @@ val get_col : t -> int -> column option
val
get_col_by_name
:
t
->
string
->
column
option
val
columns
:
t
->
(
string
*
column
)
list
val
from_file
:
?
header
:
[
`Read_in_file
|
`Expect
of
string
list
|
`Use
of
string
list
]
->
string
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment