您可以使用以下代码迭代列:
for c in eachcol(dataframe) ... end
其中c是该列中的值向量。
c
我如何迭代并获取列名和该列中的值?
for (name, col) in pairs(eachcol(dataframe)) ... end