Trying again. Here's the code that generated an error:

vars = names(df)

for (x, v) in enumerate(vars)
   println("$x, $v", lowercase(v))
end

The error comes from the lowercase() function, saying that it does not know 
how to handle Symbol type.

On Thursday, December 18, 2014 1:15:49 PM UTC-5, Stefan Karpinski wrote:
>
> The variable seems to be named x not v?
>
> On Thu, Dec 18, 2014 at 12:55 PM, Min-Woong Sohn <[email protected] 
> <javascript:>> wrote:
>
>> vars = names(df) where df is a DataFrame object and vars is an array of 
>> Symbols. How do I change the elements in vars to lower case? When I did
>>
>> for x in vars
>> println("$v")
>> end
>>
>> it gives me an error.
>>
>>
>> Thanks a bunch.
>>
>
>

Reply via email to