我想将Julia中的列数据类型从字符串更改为int,但目前为止还没有运气。 convert()
和parse()
都不起作用。有没有办法做到这一点?在Julia的DataFrame中将列类型从String转换为Int
我尝试了这些,但没有工作
df[:serial] = int.(collect(df[:strSerial])) df[:serial] = map(x->parse(Int,x),df[:strSerial]) df[:serial] = Int64(df[:strSerial])
是什么这之间的区别[我怎样才能改变列数据类型从浮动到字符串在Julia?](http://stackoverflow.com/questions/43605432/how-can-i-change-column-data-type-from-float-to-string-in-julia?) –
@ Atomic_alarm的区别是相同风格的语法不起作用 – bensw