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 ?
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.
foreach(println, names(dataframe))
As well as the other fine suggestions, you may also be interested in
For me
show(names(df))
works in the console.
Similarly to print such a DataFrame
show(df, allcols=true)