Skip to content

Commit

Permalink
Merge pull request #116 from tkf/isrowtable
Browse files Browse the repository at this point in the history
Use Tables.isrowtable (Tables v1.0 API)
  • Loading branch information
Pietro Vertechi authored Feb 13, 2020
2 parents 6e8e0ab + 48bc36f commit 3712337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
DataAPI = "1"
Tables = "0.2"
Tables = "1"
julia = "1"

[extras]
Expand Down
6 changes: 2 additions & 4 deletions src/tables.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Tables: Tables

Tables.istable(::Type{<:StructVector}) = true
Tables.rowaccess(::Type{<:StructVector}) = true
Tables.columnaccess(::Type{<:StructVector}) = true
Tables.isrowtable(::Type{<:StructVector}) = true

Tables.rows(s::StructVector) = s
Tables.columnaccess(::Type{<:StructVector}) = true
Tables.columns(s::StructVector) = fieldarrays(s)

Tables.schema(s::StructVector) = Tables.Schema(staticschema(eltype(s)))

0 comments on commit 3712337

Please sign in to comment.