I have derived a pandas datetime type Series with many NA (called a). Here I use the apply method to extract the date to string. Since the NA is a float type, I use pd.isna() to determine the NULL value, However, the result is quite weird.
Code:
a.apply(lambda x: x.strftime('%Y%m%d') if pd.notna(x) else x)