gpt4 book ai didi

dataframe - 在 Julia 中获取数据框的名称

转载 作者:行者123 更新时间:2023-12-03 00:10:01 24 4
gpt4 key购买 nike

我试图简单地提取 Julia 中数据帧列的名称列表,但收到此错误消息:

ERROR: MethodError: objects of type Array{String,1} are not callable
Use square brackets [] for indexing an Array.

我只是在调用names(df)

(它还提示一些 IOerror)。谢谢。

<小时/>

编辑:这是我使用下面建议的 MWE 得到的(长得可笑的)错误:

julia> df = DataFrame(:a => [2,3,5])
3×1 DataFrame
¦ Row ¦ a ¦
¦ ¦ Int64 ¦
+-----+-------¦
¦ 1 ¦ 2 ¦
¦ 2 ¦ 3 ¦
¦ 3 ¦ 5 ¦

julia> names(df)
ERROR: MethodError: objects of type Array{String,1} are not callable
Use square brackets [] for indexing an Array.
Stacktrace:
[1] top-level scope at REPL[144]:1
caused by [exception 6]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
[1] uv_error at .\libuv.jl:97 [inlined]
[2] symlink(::String, ::String) at .\file.jl:851
[3] probe_symlink_creation(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\PlatformEngines.jl:131
[4] #unpack#95(::Bool, ::typeof(Pkg.PlatformEngines.unpack), ::String, ::String) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:727
[5] #unpack at .\logging.jl:0 [inlined]
[6] #download_verify_unpack#100(::Nothing, ::Bool, ::Bool, ::Bool, ::typeof(Pkg.PlatformEngines.do
wnload_verify_unpack), ::String, ::String, ::String) at D:\buildbot\worker\package_win64\build\usr\
share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:894
[7] #download_verify_unpack at .\none:0 [inlined]
[8] #download_artifact#38(::Bool, ::typeof(Pkg.Artifacts.download_artifact), ::Base.SHA1, ::String
, ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts
.jl:744
[9] #download_artifact at .\none:0 [inlined]
[10] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.
ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at D:\buildbot\worker\package_w
in64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:869
[11] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tupl
e{Pkg.BinaryPlatforms.Windows,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String,
::Dict{String,Any}, ::String) at .\none:0
[12] #ensure_all_artifacts_installed#43(::Pkg.BinaryPlatforms.Platform, ::Nothing, ::Bool, ::Bool,
::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at D:\buildbot\worker\package_wi
n64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:919
[13] #ensure_all_artifacts_installed at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\Operations.jl:0 [inlined]
[14] #download_artifacts#78(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{String,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v
1.3\Pkg\src\Operations.jl:580
[15] #download_artifacts at .\none:0 [inlined]
[16] #download_artifacts#73(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share
\julia\stdlib\v1.3\Pkg\src\Operations.jl:570
[17] (::Pkg.Operations.var"#kw##download_artifacts")(::NamedTuple{(:platform,),Tuple{Pkg.BinaryPla
tforms.Windows}}, ::typeof(Pkg.Operations.download_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at
.\none:0
[18] #add#112(::Bool, ::Pkg.BinaryPlatforms.Windows, ::typeof(Pkg.Operations.add), ::Pkg.Types.Con
text, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at D:\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1017
[19] #add at .\none:0 [inlined]
[20] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{}
,NamedTuple{,Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1
}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:102
[21] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win6
4\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
[22] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
69 [inlined]
[23] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [
inlined]
[24] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
67 [inlined]
[25] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [
inlined]
[26] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}}, ::typeof(Pkg.AP
I.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API
.jl:66
[27] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\A
PI.jl:66
[28] top-level scope at REPL[65]:1
caused by [exception 5]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
[1] uv_error at .\libuv.jl:97 [inlined]
[2] symlink(::String, ::String) at .\file.jl:851
[3] probe_symlink_creation(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\PlatformEngines.jl:131
[4] #unpack#95(::Bool, ::typeof(Pkg.PlatformEngines.unpack), ::String, ::String) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:727
[5] #unpack at .\logging.jl:0 [inlined]
[6] #download_verify_unpack#100(::Nothing, ::Bool, ::Bool, ::Bool, ::typeof(Pkg.PlatformEngines.do
wnload_verify_unpack), ::String, ::String, ::String) at D:\buildbot\worker\package_win64\build\usr\
share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:894
[7] #download_verify_unpack at .\none:0 [inlined]
[8] #download_artifact#38(::Bool, ::typeof(Pkg.Artifacts.download_artifact), ::Base.SHA1, ::String
, ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts
.jl:744
[9] #download_artifact at .\none:0 [inlined]
[10] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.
ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at D:\buildbot\worker\package_w
in64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:869
[11] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tupl
e{Pkg.BinaryPlatforms.Windows,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String,
::Dict{String,Any}, ::String) at .\none:0
[12] #ensure_all_artifacts_installed#43(::Pkg.BinaryPlatforms.Platform, ::Nothing, ::Bool, ::Bool,
::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at D:\buildbot\worker\package_wi
n64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:919
[13] #ensure_all_artifacts_installed at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\Operations.jl:0 [inlined]
[14] #download_artifacts#78(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{String,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v
1.3\Pkg\src\Operations.jl:580
[15] #download_artifacts at .\none:0 [inlined]
[16] #download_artifacts#73(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share
\julia\stdlib\v1.3\Pkg\src\Operations.jl:570
[17] (::Pkg.Operations.var"#kw##download_artifacts")(::NamedTuple{(:platform,),Tuple{Pkg.BinaryPla
tforms.Windows}}, ::typeof(Pkg.Operations.download_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at
.\none:0
[18] #add#112(::Bool, ::Pkg.BinaryPlatforms.Windows, ::typeof(Pkg.Operations.add), ::Pkg.Types.Con
text, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at D:\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1017
[19] #add at .\none:0 [inlined]
[20] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{}
,NamedTuple{,Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1
}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:102
[21] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win6
4\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
[22] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
69 [inlined]
[23] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [
inlined]
[24] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
67 [inlined]
[25] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [
inlined]
[26] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}}, ::typeof(Pkg.AP
I.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API
.jl:66
[27] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\A
PI.jl:66
[28] top-level scope at REPL[65]:1
caused by [exception 4]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
[1] uv_error at .\libuv.jl:97 [inlined]
[2] symlink(::String, ::String) at .\file.jl:851
[3] probe_symlink_creation(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\PlatformEngines.jl:131
[4] #unpack#95(::Bool, ::typeof(Pkg.PlatformEngines.unpack), ::String, ::String) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:727
[5] #unpack at .\logging.jl:0 [inlined]
[6] #download_verify_unpack#100(::Nothing, ::Bool, ::Bool, ::Bool, ::typeof(Pkg.PlatformEngines.do
wnload_verify_unpack), ::String, ::String, ::String) at D:\buildbot\worker\package_win64\build\usr\
share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:894
[7] #download_verify_unpack at .\none:0 [inlined]
[8] #download_artifact#38(::Bool, ::typeof(Pkg.Artifacts.download_artifact), ::Base.SHA1, ::String
, ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts
.jl:744
[9] #download_artifact at .\none:0 [inlined]
[10] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.
ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at D:\buildbot\worker\package_w
in64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:869
[11] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tupl
e{Pkg.BinaryPlatforms.Windows,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String,
::Dict{String,Any}, ::String) at .\none:0
[12] #ensure_all_artifacts_installed#43(::Pkg.BinaryPlatforms.Platform, ::Nothing, ::Bool, ::Bool,
::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at D:\buildbot\worker\package_wi
n64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:919
[13] #ensure_all_artifacts_installed at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\Operations.jl:0 [inlined]
[14] #download_artifacts#78(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{String,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v
1.3\Pkg\src\Operations.jl:580
[15] #download_artifacts at .\none:0 [inlined]
[16] #download_artifacts#73(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share
\julia\stdlib\v1.3\Pkg\src\Operations.jl:570
[17] (::Pkg.Operations.var"#kw##download_artifacts")(::NamedTuple{(:platform,),Tuple{Pkg.BinaryPla
tforms.Windows}}, ::typeof(Pkg.Operations.download_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at
.\none:0
[18] #add#112(::Bool, ::Pkg.BinaryPlatforms.Windows, ::typeof(Pkg.Operations.add), ::Pkg.Types.Con
text, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at D:\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1017
[19] #add at .\none:0 [inlined]
[20] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{}
,NamedTuple{,Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1
}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:102
[21] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win6
4\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
[22] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
69 [inlined]
[23] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [
inlined]
[24] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
67 [inlined]
[25] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [
inlined]
[26] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}}, ::typeof(Pkg.AP
I.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API
.jl:66
[27] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\A
PI.jl:66
[28] top-level scope at REPL[65]:1
caused by [exception 3]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
[1] uv_error at .\libuv.jl:97 [inlined]
[2] symlink(::String, ::String) at .\file.jl:851
[3] probe_symlink_creation(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\PlatformEngines.jl:131
[4] #unpack#95(::Bool, ::typeof(Pkg.PlatformEngines.unpack), ::String, ::String) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:727
[5] #unpack at .\logging.jl:0 [inlined]
[6] #download_verify_unpack#100(::Nothing, ::Bool, ::Bool, ::Bool, ::typeof(Pkg.PlatformEngines.do
wnload_verify_unpack), ::String, ::String, ::String) at D:\buildbot\worker\package_win64\build\usr\
share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:894
[7] #download_verify_unpack at .\none:0 [inlined]
[8] #download_artifact#38(::Bool, ::typeof(Pkg.Artifacts.download_artifact), ::Base.SHA1, ::String
, ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts
.jl:744
[9] #download_artifact at .\none:0 [inlined]
[10] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.
ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at D:\buildbot\worker\package_w
in64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:869
[11] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tupl
e{Pkg.BinaryPlatforms.Windows,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String,
::Dict{String,Any}, ::String) at .\none:0
[12] #ensure_all_artifacts_installed#43(::Pkg.BinaryPlatforms.Platform, ::Nothing, ::Bool, ::Bool,
::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at D:\buildbot\worker\package_wi
n64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:919
[13] #ensure_all_artifacts_installed at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\Operations.jl:0 [inlined]
[14] #download_artifacts#78(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{String,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v
1.3\Pkg\src\Operations.jl:580
[15] #download_artifacts at .\none:0 [inlined]
[16] #download_artifacts#73(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share
\julia\stdlib\v1.3\Pkg\src\Operations.jl:570
[17] (::Pkg.Operations.var"#kw##download_artifacts")(::NamedTuple{(:platform,),Tuple{Pkg.BinaryPla
tforms.Windows}}, ::typeof(Pkg.Operations.download_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at
.\none:0
[18] #add#112(::Bool, ::Pkg.BinaryPlatforms.Windows, ::typeof(Pkg.Operations.add), ::Pkg.Types.Con
text, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at D:\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1017
[19] #add at .\none:0 [inlined]
[20] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{}
,NamedTuple{,Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1
}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:102
[21] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win6
4\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
[22] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
69 [inlined]
[23] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [
inlined]
[24] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
67 [inlined]
[25] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [
inlined]
[26] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}}, ::typeof(Pkg.AP
I.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API
.jl:66
[27] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\A
PI.jl:66
[28] top-level scope at REPL[20]:1
caused by [exception 2]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
[1] uv_error at .\libuv.jl:97 [inlined]
[2] symlink(::String, ::String) at .\file.jl:851
[3] probe_symlink_creation(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\PlatformEngines.jl:131
[4] #unpack#95(::Bool, ::typeof(Pkg.PlatformEngines.unpack), ::String, ::String) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:727
[5] #unpack at .\logging.jl:0 [inlined]
[6] #download_verify_unpack#100(::Nothing, ::Bool, ::Bool, ::Bool, ::typeof(Pkg.PlatformEngines.do
wnload_verify_unpack), ::String, ::String, ::String) at D:\buildbot\worker\package_win64\build\usr\
share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:894
[7] #download_verify_unpack at .\none:0 [inlined]
[8] #download_artifact#38(::Bool, ::typeof(Pkg.Artifacts.download_artifact), ::Base.SHA1, ::String
, ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts
.jl:744
[9] #download_artifact at .\none:0 [inlined]
[10] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.
ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at D:\buildbot\worker\package_w
in64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:869
[11] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tupl
e{Pkg.BinaryPlatforms.Windows,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String,
::Dict{String,Any}, ::String) at .\none:0
[12] #ensure_all_artifacts_installed#43(::Pkg.BinaryPlatforms.Platform, ::Nothing, ::Bool, ::Bool,
::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at D:\buildbot\worker\package_wi
n64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:919
[13] #ensure_all_artifacts_installed at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\Operations.jl:0 [inlined]
[14] #download_artifacts#78(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{String,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v
1.3\Pkg\src\Operations.jl:580
[15] #download_artifacts at .\none:0 [inlined]
[16] #download_artifacts#73(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share
\julia\stdlib\v1.3\Pkg\src\Operations.jl:570
[17] (::Pkg.Operations.var"#kw##download_artifacts")(::NamedTuple{(:platform,),Tuple{Pkg.BinaryPla
tforms.Windows}}, ::typeof(Pkg.Operations.download_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at
.\none:0
[18] #add#112(::Bool, ::Pkg.BinaryPlatforms.Windows, ::typeof(Pkg.Operations.add), ::Pkg.Types.Con
text, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at D:\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1017
[19] #add at .\none:0 [inlined]
[20] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{}
,NamedTuple{,Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1
}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:102
[21] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win6
4\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
[22] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
69 [inlined]
[23] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [
inlined]
[24] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
67 [inlined]
[25] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [
inlined]
[26] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}}, ::typeof(Pkg.AP
I.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API
.jl:66
[27] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\A
PI.jl:66
[28] top-level scope at REPL[20]:1
caused by [exception 1]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
[1] uv_error at .\libuv.jl:97 [inlined]
[2] symlink(::String, ::String) at .\file.jl:851
[3] probe_symlink_creation(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\PlatformEngines.jl:131
[4] #unpack#95(::Bool, ::typeof(Pkg.PlatformEngines.unpack), ::String, ::String) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:727
[5] #unpack at .\logging.jl:0 [inlined]
[6] #download_verify_unpack#100(::Nothing, ::Bool, ::Bool, ::Bool, ::typeof(Pkg.PlatformEngines.do
wnload_verify_unpack), ::String, ::String, ::String) at D:\buildbot\worker\package_win64\build\usr\
share\julia\stdlib\v1.3\Pkg\src\PlatformEngines.jl:894
[7] #download_verify_unpack at .\none:0 [inlined]
[8] #download_artifact#38(::Bool, ::typeof(Pkg.Artifacts.download_artifact), ::Base.SHA1, ::String
, ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts
.jl:744
[9] #download_artifact at .\none:0 [inlined]
[10] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Platform, ::Bool, ::typeof(Pkg.Artifacts.
ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at D:\buildbot\worker\package_w
in64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:869
[11] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tupl
e{Pkg.BinaryPlatforms.Windows,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String,
::Dict{String,Any}, ::String) at .\none:0
[12] #ensure_all_artifacts_installed#43(::Pkg.BinaryPlatforms.Platform, ::Nothing, ::Bool, ::Bool,
::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at D:\buildbot\worker\package_wi
n64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Artifacts.jl:919
[13] #ensure_all_artifacts_installed at D:\buildbot\worker\package_win64\build\usr\share\julia\std
lib\v1.3\Pkg\src\Operations.jl:0 [inlined]
[14] #download_artifacts#78(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{String,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v
1.3\Pkg\src\Operations.jl:580
[15] #download_artifacts at .\none:0 [inlined]
[16] #download_artifacts#73(::Pkg.BinaryPlatforms.Windows, ::Bool, ::typeof(Pkg.Operations.downloa
d_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share
\julia\stdlib\v1.3\Pkg\src\Operations.jl:570
[17] (::Pkg.Operations.var"#kw##download_artifacts")(::NamedTuple{(:platform,),Tuple{Pkg.BinaryPla
tforms.Windows}}, ::typeof(Pkg.Operations.download_artifacts), ::Array{Pkg.Types.PackageSpec,1}) at
.\none:0
[18] #add#112(::Bool, ::Pkg.BinaryPlatforms.Windows, ::typeof(Pkg.Operations.add), ::Pkg.Types.Con
text, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at D:\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1017
[19] #add at .\none:0 [inlined]
[20] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{}
,NamedTuple{,Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1
}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:102
[21] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win6
4\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
[22] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
69 [inlined]
[23] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [
inlined]
[24] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:
67 [inlined]
[25] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [
inlined]
[26] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}}, ::typeof(Pkg.AP
I.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API
.jl:66
[27] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\A
PI.jl:66
[28] top-level scope at REPL[20]:1

最佳答案

使用 DataFrames 之前,您已在工作区中分配了一个名为 names 的变量(类型为 Vector{String})(Julia 会阻止你之后这样做)。错误消息只是告诉您,您正在尝试使用 names 作为函数,但它不在您的工作区中。

关于dataframe - 在 Julia 中获取数据框的名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60497601/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com