Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyspark percentage missing values

amount_missing_df = df.select([(count(when(isnan(c) | col(c).isNull(), c))/count(lit(1))).alias(c) for c in df.columns])
amount_missing_df.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyspark #percentage #missing #values
ADD COMMENT
Topic
Name
5+5 =