def _idx_from_dates(d1, d2, freq):
    from pandas import DatetimeIndex
    return len(DatetimeIndex(start=d1, end=d2,
                             freq = _freq_to_pandas[freq])) - 1
A lower read timeout than the total is honored
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/base/datetools.py/_idx_from_dates--crossover with--dataset/ETHPy150Open shazow/urllib3/test/test_retry.py/RetryTest.test_retry_higher_total_loses_vs_read