eachrow() eachcolumn() eachslice() 函数怎么使用?文档里没有找到啊

# code

默认加载的包里确实没有。

你可能想要这个? Functions · DataFrames.jl

我说的是这里的

看了一下 issue 应该是新加的,在线的文档里确实没有。

REPL 的 help 里有(需要 1.1.0 及以上的版本)。

julia> VERSION
v"1.1.0"

help?> each
search: eachrow eachcol eachline eachslice eachmatch eachindex foreach readchomp searchsorted searchsortedlast

Couldn't find each
Perhaps you meant detach, esc, fetch, sech, csch, hash, match, tanh, catch, eachcol, eachrow, foreach, read or read!
  No documentation found.

  Binding each does not exist.

help?> eachrow
search: eachrow searchsorted searchsortedlast searchsortedfirst

  eachrow(A::AbstractVecOrMat)

  Create a generator that iterates over the first dimension of vector or matrix A, returning the rows as views.

  See also eachcol and eachslice.

  │ Julia 1.1
  │
  │  This function requires at least Julia 1.1.

help?> eachcol
search: eachcol eachslice eachmatch

  eachcol(A::AbstractVecOrMat)

  Create a generator that iterates over the second dimension of matrix A, returning the columns as views.

  See also eachrow and eachslice.

  │ Julia 1.1
  │
  │  This function requires at least Julia 1.1.

help?> eachslice
search: eachslice

  eachslice(A::AbstractArray; dims)

  Create a generator that iterates over dimensions dims of A, returning views that select all the data from the other
  dimensions in A.

  Only a single dimension in dims is currently supported. Equivalent to (view(A,:,:,...,i,:,: ...)) for i in axes(A,
  dims)), where i is in position dims.

  See also eachrow, eachcol, and selectdim.

  │ Julia 1.1
  │
  │  This function requires at least Julia 1.1.

julia>