Skip to content

Commit 80971a5

Browse files
authored
simplify tables code (#54)
1 parent bac759c commit 80971a5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/tables.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,4 @@ Tables.columnaccess(::Type{<:StructVector}) = true
66
Tables.rows(s::StructVector) = s
77
Tables.columns(s::StructVector) = fieldarrays(s)
88

9-
function Tables.schema(s::StructVector)
10-
cols = fieldarrays(s)
11-
names = propertynames(cols)
12-
types = map(eltype, cols)
13-
Tables.Schema(names, types)
14-
end
9+
Tables.schema(s::StructVector) = Tables.Schema(eltype(s))

0 commit comments

Comments
 (0)