- Published on
- · Data Independent
Pandas Fill NA | pd.DataFrame.fillna()
This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.
About this video
Your data may have NAs (Not Available) values within your DataFrame. Think of these as blank, null, or not present values. Many pandas functions will give you a hard time if you use them with NAs.
That is where Pandas Fill NA .fillna()comes into play.
Pandas Fill NA will fill in your DataFrame 'NA' values with another value of your choice. You can also "backfill" or "forwardfill" your cells with other values from the DataFrame.
pd.DataFrame.fillna(value="Value To Fill")
Loading transcript…