Skip to content

Instantly share code, notes, and snippets.

@sanjurm16 sanjurm16/any_nulls
Created Jan 20, 2019

Embed
What would you like to do?
from pyspark.sql.functions import isnan, when, count, col
train_df.select([count(when(isnan(c), c)).alias(c) for c in train_df.columns]).show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.