The separate_blocks function looks at a specified column and creates new worksheets containing a block at an almost constant value of this column if subsequent elements of the column have a relative difference exceeding a given threshold. This may be used for instance to separate continuous measurements taken at different temperatures but recorded in one file.