The irradiance.perez function drops nighttime data instead of returning 0s. You can see this in cell 37 of
https://github.com/pvlib/pvlib-python/blob/master/docs/tutorials/irradiance.ipynb
Note that the plot only goes from sunrise to sunset, instead of spanning the full day.
I have a fix for this in the works.