Re: Converting DataFrame's int column to Double

2016-08-25 Thread Marco Mistroni
many tx Jestin! On Thu, Aug 25, 2016 at 10:13 PM, Jestin Ma wrote: > How about this: > > df.withColumn("doubles", col("ints").cast("double")).drop("ints") > > On Thu, Aug 25, 2016 at 2:09 PM, Marco Mistroni > wrote: > >> hi all >> i might be

Re: Converting DataFrame's int column to Double

2016-08-25 Thread Jestin Ma
How about this: df.withColumn("doubles", col("ints").cast("double")).drop("ints") On Thu, Aug 25, 2016 at 2:09 PM, Marco Mistroni wrote: > hi all > i might be stuck in old code, but this is what i am doing to convert a > DF int column to Double > > val