pandas check is field is null or empty 1

pandas check is field is null or empty

DF_raw['columnname']==''

Here is what the above code is Doing:
1. We’re creating a new column called ‘columnname’ in the dataframe.
2. We’re setting the value of the new column to be the value of the ‘columnname’ column in the dataframe.
3. We’re setting the value of the new column to be the value of the ‘columnname’ column in the dataframe, but only if the value of the ‘columnname’ column is not equal to ” (i.e. not empty).

Similar Posts