Quantcast
Channel: How to convert column values from string to decimal? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Sesha for How to convert column values from string to decimal?

$
0
0

This is after you have data in data frame with column that needs to be converted is readyTry:dframe.select($"column_name".cast("decimal(9,2)"))


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>