# if you want to delete rows containing NA values
df.dropna(inplace=True)
df=df.dropna(subset=['columnname])
df1 = df.apply(lambda x: pd.Series(x.dropna().values)).fillna('')
print (df1)
0 1 2 3
0 -1.74977 0.514219 1.15304 -0.252436
1 0.981321 0.816847 -0.458027 -1.070043
2 -0.583595 1.02973 0.672721 0.435163
3 -0.53128 -0.438136 -0.104411
4 -1.118318
df = df[df['col'].notna()]
df[~np.isnan(df)]