擅长:python、mysql、java
<pre class="lang-py prettyprint-override"><code>for idx, row in df1.iterrows():
if not row["Nullable"]:
# Get all the rows in df2 which has that column as null
nulls = df2[df2[row["ColumnName"]].isnull()]
# No of rows that has the column null
print(len(nulls))
</code></pre>