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

columnnames sometimes returns property names #337

Open
ParadaCarleton opened this issue Jul 7, 2023 · 3 comments
Open

columnnames sometimes returns property names #337

ParadaCarleton opened this issue Jul 7, 2023 · 3 comments

Comments

@ParadaCarleton
Copy link

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

bkamins commented Jul 7, 2023

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

@ParadaCarleton
Copy link
Author

ParadaCarleton commented Jul 7, 2023

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?

@quinnj
Copy link
Member

quinnj commented Jul 10, 2023

The default has always been to return propertynames.

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

3 participants