To check if a dataframe like below contains any NaN's, I use the following code:
df.isnull().any().any()
mukey hzdept_r hzdepb_r sandtotal_r silttotal_r
425897 0 61
425897 61 152 5.3 44.7
425911 0 30 30.1 54.9
425911 30 74 17.7 49.8
425911 74 84
Is there a more elegant way to do the same?