Loading tutorials
np.nan, and that you have seen the missing markers pandas uses: NaN, None, NaT 5 min readnp.nan and isna from the earlier chapters. It covers placeholder values, which are real-looking entries that stand in for "no data". You will learn to convert them to proper missing values.5 min readnp.nan is NumPy's "not a number" value. It also assumes you have met isna for finding missing values. Here you learn what happens when missing values enter arithmetic, comparisons and aggregations. These rule5 min readDataFrame.dropna and the checks to run before you use it.6 min readfillna with a fixed value or a summary statistic. It assumes you can build and index a Series and DataFrame, and that you can detect missing values with isna. Forward fill, interpolation and group-wise filling come in later chapters.5 min readisna and fillna with constants and statistics, as covered earlier in this tutorial. It also assumes you can build a Series or DataFrame with a sorted or datetime index.5 min readSeries.interpolate() and DataFrame.interpolate(). It assumes you know how to detect missing values with isna, how fillna, ffill and bfill work, and what a DatetimeIndex is. Examples use pandas 2.x.5 min readfillna, isna, and groupby with a single aggregation such as mean. It also assumes you know how ffill and interpolate work on one Series. The goal is to apply those tools separately inside each group, so a value from one group never fills a gap in 5 min readisna, fillna and dropna from the earlier chapters. You should also know that np.nan is the usual missing marker. The examples target pandas 2.x.6 min readisna and notna, count them per column, and use groupby. Earlier chapters showed how to drop and fill missing values. This chapter covers the question that comes before that choice: why are these values missing? The answer decides which 6 min readisna, and that you know dropna, fillna, interpolate, and groupby with transform. It also assumes you know the missing-data markers NaN, None, and pd.NA. Here you learn how to decide among those tools. No single method is corre5 min readisna, use dropna and fillna, and have seen nullable dtypes such as Int64. It collects the mistakes that leave code running without errors but producing wrong results. Each section gives the symptom, the cause, and the fix.5 min read