Is there any function in Julia to print column names of dataframe ?
I used names(dataframe) - It gave me the desired output but my dataframe contains 67 features, however the function printed few of them.
How to get all the names ?
1 Like
It’s probably just the printing (show), which truncates the vector of names to your available terminal lines.
You can check if
length(names(dataframe))
gives you 67.
Or you can print them all with
foreach n in names(dataframe)
println(n)
end
for example.
2 Likes
foreach(println, names(dataframe))
2 Likes
As well as the other fine suggestions, you may also be interested in
2 Likes
For me
show(names(df))
works in the console.
Similarly to print such a DataFrame
show(df, allcols=true)
2 Likes