-
Notifications
You must be signed in to change notification settings - Fork 25
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
Differences from StructArrays #106
Comments
I'm asking myself the same question. |
Historically, TypedTables came just before StructArrays, and they have a lot in common. I'd say TypedTables comes from "dataframes in Julia should just be a strongly typed AbstractVector" and StructArrays implements a struct-of-arrays (SoA) to array-of-structs (AoS) wrapper type, which end up being somewhat equivalent ideas.
One difference that manifests from this viewpoint is in data systems (like, say, SQL) a row (element in a relation) is just a named tuple (and is structurally typed), whereas the SoA-AoS transformation naturally is useful for arbitrary Julia structs (which are nominally typed), which explains this distinction. |
@andyferris is there any functionality in TypedTables.Table not provided by StructArrays? Ie in what circumstances one should use the former? |
The interface seems very similar to a StructArray, so I wonder what are the main differences. Are they highlighted somewhere?
A cursory look suggests that a
Table
and aStructArray
are basically drop-in replacements for each other.The text was updated successfully, but these errors were encountered: