https://sparkbyexamples.com/pyspark/pyspark-cast-column-type/
lør. 2. apr. 2022 kl. 04:10 skrev ayan guha :
> Please use cast. Also I would strongly recommend to go through spark doco,
> its pretty good.
>
> On Sat, 2 Apr 2022 at 12:43 pm, wrote:
>
>> Hi
>>
>> I got a dataframe object from
Please use cast. Also I would strongly recommend to go through spark doco,
its pretty good.
On Sat, 2 Apr 2022 at 12:43 pm, wrote:
> Hi
>
> I got a dataframe object from other application, it means this obj is
> not generated by me.
> How can I change the data types for some columns in this
Hi
I got a dataframe object from other application, it means this obj is
not generated by me.
How can I change the data types for some columns in this dataframe?
For example, change the column type from Int to Float.
Thanks.