Closed yurivish closed 3 years ago
OffsetArrays.jl is not supported by DataFrames.jl (nor by PrettyTables.jl but here @ronisbr should comment). We will produce a correct error message in 1.0 release after https://github.com/JuliaData/DataFrames.jl/pull/2594 is merged.
Yes, unfortunately I cannot support OffsetArrays inside PrettyTables currently. Maybe in the future, but it will really require a lot of modifications.
Thanks for the note and PR @bkamins, I appreciate it. I asked on Slack before I posted this issue and several folks told me that there were no restrictions on what a column can be beyond being an AbstractVector
.
In the future we might lift this restriction, but for now it is too much buried deep in the package that indexing starts with 1.
Documenting that and throwing an error when someone tries to use an array that doesn't follow the restrictions seems perfectly acceptable and completely reasonable to me.
So far I've had a really positive experience with DataFrames
relative to other packages and I think this has to do with the effort you and the other contributors have put into correctness and consistency. Thanks for all of your work!
Showing a
DataFrame
with anOffsetArray
column fails on Julia 1.5.3 and 1.6-beta1:This seems to be due to a bug in the PrettyTables package. A quick test of that package directly incorrectly shows the contents of the same array (but doesn't crash):