출력이 이고 아래에 표시된 것처럼 DataFrame
으로 변환해야합니다.Julia의 단일 차원 배열을 DataFrame으로 변환
x = rand(4)
4-element Array{Float64,1}:
0.951252
0.936421
0.773268
0.207913
p = convert(DataFrame, x) // Why this doesn't work ?
이 결과 :
MethodError: Cannot
convert
an object of type Array{Float64,1} to an object of type DataFrames.DataFrame This may have arisen from a call to the constructor DataFrames.DataFrame(...), since type constructors fall back to convert methods.
이 작동하지 않는 이유는 무엇입니까?