python pandas: filter out records with null or empty string for a given field
You can negativize a condition while filtering using ~
.
So in your case you should do:
my_df = my_df[~my_df.editions.isnull()]
You can filter out empty strings in your dataframe like this:
df = df[df['str_field'].str.len() > 0]