def _index_of_day(self, day):
        year, isoweekday, weekday = day.isocalendar()
        return (isoweekday - 1) * 5 + weekday - 1
Determing index by day from a dataset.
dataset/ETHPy150Open yinhm/datafeed/datafeed/datastore.py/Day._index_of_day