Tables.jl icon indicating copy to clipboard operation
Tables.jl copied to clipboard

`columnnames` sometimes returns property names

Open ParadaCarleton opened this issue 2 years ago • 4 comments

using CSV
data = CSV.load("filepath.csv")
Tables.columnnames(data)
# returns (:filename, :delim, :keywords)--property names--instead of column names

ParadaCarleton avatar Jul 07 '23 00:07 ParadaCarleton

Indeed type returned by CSV.load seems to need to override the default return-value (or define getproperty differently)

bkamins avatar Jul 07 '23 05:07 bkamins

Yep. Besides that, is the default (automatically return properties) a good default, or should it error for types that don't have a defined method?

ParadaCarleton avatar Jul 07 '23 15:07 ParadaCarleton

The default has always been to return propertynames.

quinnj avatar Jul 10 '23 08:07 quinnj