在LightTable Julia0.3中使用Datavector没有方法错误

在LightTable Julia0.3中使用Datavector没有方法错误,julia,lighttable,Julia,Lighttable,表0.6.7 朱莉娅0.3 0.6.4 6月0.2日 MacOSX10.9 您好,我在使用DataFrame包的Datavector时遇到问题 using DataFrames df = DataFrame() df["Name"] = DataVector["JohnSmith", "JaneDoe"] df["Height"] = DataVector[73.0,68.0] df["Weight"] = DataVector[NA,130] df["Gender"] = DataVector

表0.6.7 朱莉娅0.3 0.6.4 6月0.2日 MacOSX10.9

您好,我在使用DataFrame包的Datavector时遇到问题

using DataFrames
df = DataFrame()
df["Name"] = DataVector["JohnSmith", "JaneDoe"]
df["Height"] = DataVector[73.0,68.0]
df["Weight"] = DataVector[NA,130]
df["Gender"] = DataVector["Male","Female"]
在那之后,朱莉娅说

no method convert(Type{DataArray{T,1}}, ASCIIString)
in getindex at array.jl:121
我可以在julia 0.2上完成同样的脚本 LightTable的插件(如Jewel,June)是否不接受此DataFrames功能

我尝试了dataeye()和其他函数,但这不起作用

Brw,我在谷歌集团找到了一篇类似的帖子。


感谢阅读。

看起来您正在阅读有关数据阵列和数据帧的非常旧的文档。您可能希望查看更近期的文档:

以下是你是如何做你想做的事情的:

using DataFrames
df = DataFrame()
df[:Name] = @data(["JohnSmith", "JaneDoe"])
df[:Height] = @data([73.0,68.0])
df[:Weight] = @data([NA,130])
df[:Gender] = @data(["Male","Female"])

谢谢约翰,我看了你的视频。我不知道这是非常古老的。我试过你的建议,现在一切都很顺利。谢谢。这个答案中的链接已失效。现在可以找到文档。