def resample_reindex(tseries, new_index, freq='d', how='mean', fill_value=None
    ):
    """
    Performs a pandas :func:`resample` and :func:`reindex` at the same time. 

    This function is syntactic sugar for a very common resampling techinque 
    where it's  necessary to force the index to conform to a specific date 
    range (e.g. a date range for a particular month) right after resampling.

    It is functionally equivalent to::

        tseries.resample(freq, how).reindex(new_index)
    """
    tseries = tseries.resample(freq, how=how).reindex(new_index)
    if fill_value is not None:
        tseries = tseries.fillna(fill_value)
    return tseries
