Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected complaint about too-wide a table #357

Open
ablaom opened this issue Nov 22, 2024 · 2 comments
Open

Unexpected complaint about too-wide a table #357

ablaom opened this issue Nov 22, 2024 · 2 comments

Comments

@ablaom
Copy link
Contributor

ablaom commented Nov 22, 2024

I don't expect tables with 5 columns to be "too wide". Should I?

Pkg.activate(temp=true)
Pkg.add("Tables")
Pkg.add("OpenML")

using OpenML, Tables

# [8b6db2d4] OpenML v0.3.2
# [bd369af6] Tables v1.12.0

table = OpenML.load(61)
# Tables.DictColumnTable with 150 rows, 5 columns, and schema:
#  :sepallength  Float64
#  :sepalwidth   Float64
#  :petallength  Float64
#  :petalwidth   Float64
#  :class        CategoricalArrays.CategoricalValue{String, UInt32}

Tables.columntable(table)
# ERROR: ArgumentError: input table too wide (5 columns) to convert to `NamedTuple` of `AbstractVector`s
# Stacktrace:
#  [1] columntable(sch::Tables.Schema{nothing, nothing}, cols::Tables.DictColumnTable)
#    @ Tables ~/.julia/packages/Tables/8p03y/src/namedtuples.jl:180
#  [2] columntable(itr::Tables.DictColumnTable)
#    @ Tables ~/.julia/packages/Tables/8p03y/src/namedtuples.jl:190
#  [3] top-level scope
#    @ REPL[7]:1
@ablaom
Copy link
Contributor Author

ablaom commented Nov 22, 2024

@jbrea Have you run into this kind of thing?

@jbrea
Copy link

jbrea commented Nov 22, 2024

Weird. No, I usually use DataFrames, which work fine on this example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants