Click on the Transform icon, choose Custom transform.
In the Transform – Custom code node, specify the following information:
Node properties tab, Name - Remove Records with NULL
Add the following in the Code block:
def MyTransform (glueContext, dfc) -> DynamicFrameCollection:
df = dfc.select(list(dfc.keys())[0]).toDF().na.drop()
results = DynamicFrame.fromDF(df, glueContext, "results")
return DynamicFrameCollection({"results": results}, glueContext)
Click on the Transform icon, choose SelectFromCollection.
Specify the following information:
SelectFromCollection
0
Remember to Save your work.