Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

decimal to integer sql

df2 = df.withColumn("col4", func.round(df["col3"]).cast('integer'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decimal #integer #sql
ADD COMMENT
Topic
Name
3+7 =