I have a Spark dataframe with decimal column. I want to convert this column to a binary string. Are there any function for this can anybody help?
Thank you!
I have a Spark dataframe with decimal column. I want to convert this column to a binary string. Are there any function for this can anybody help?
Thank you!
There is a bin inbuilt function which states
So if you have a dataframe as
You can use
bin
function aswhich should give you