Skip to content

Support subdataframes #76

@piever

Description

@piever

Currently SubDataFrames are not iterable tables, which is unfortunate as it's actually surprisingly clumsy to convert them to DataFrames. The current method to iterate on DataFrames could probably have a weaker signature and maybe that'd be enough to have it work on any AbstractDataFrame. The main application would be to be able to use it in a by call, see this discourse post

julia> using IterableTables

julia> df = DataFrame(x = rand(10));

julia> by(TableTraits.isiterabletable, df, :x)
10×2 DataFrames.DataFrame
│ Row │ x        │ x1    │
├─────┼──────────┼───────┤
│ 10.67292false │
│ 20.921996false │
│ 30.517816false │
│ 40.822496false │
│ 50.120007false │
│ 60.289319false │
│ 70.113851false │
│ 80.826421false │
│ 90.881944false │
│ 100.279972false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions