`convert` does not seem to work with symbols. I get an error (same for
String and UTF8String as well).
Test commands:
testdf = DataFrame(A = [1,2,3], B=[2,3,4])
string(names(testdf)[1]) # works
convert(String, names(testdf)[1]) # throws error
convert(ASCIIString, names(testdf)[1]) # throws error
I'm really sorry. Seems like I should have checked that it actually worked.
I think the missing method could be considered a bug, does anyone know an
issue for that on Github?
tirsdag 24. mars 2015 14.29.38 UTC+1 skrev verylu...@gmail.com følgende:
`convert` does not seem to work with
And more generally, for all types that makes sense to convert between, you
can use the convert function
convert(String, :blah)
(or maybe better, to avoid type instability issues)
convert(ASCIIString, :blah)
convert(UTF8String, :blah)
In 0.4 the default constructor for all types will fallback
Le dimanche 01 février 2015 à 07:18 -0800, Arshak Navruzyan a écrit :
Hello,
A really basic question how do I turn a symbol into a string ?
:blah - blah
julia string(:blah)
blah
Easy, isn't it?
Regards
Hello,
A really basic question how do I turn a symbol into a string ?
:blah - blah
Thanks