Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 01:18 AM
try to return a column with content = null instead of plain null.
So:
if (col in column):
return df
else:
df.withColumn("col", lit(null))