After using pivot, you can use the fillna() method on the resulting DataFrame to fill in missing values.