docs: def compare_csv_decimal_files(file1, file2, header=True, timeseries=False):
      """
      This function compares two csv files
      """
      # CHECK NUM LINES
      with open_csv(file1) as fh1, \
              open_csv(file2) as fh2:
          assert sum(1 for _ in fh1) == sum(1 for _ in fh2)
  
      with open_csv(file1) as fh1, \
              open_csv(file2) as fh2:
          csv1 = csv.reader(fh1)
          csv2 = csv.reader(fh2)
  
          if header:
              assert next(csv1) == next(csv2)  # header
  
          while True:
              try:
                  row1 = next(csv1)
                  row2 = next(csv2)
                  compare_start_index = 0
                  if timeseries:
                      assert row1[0] == row2[0]  # check dates
                      compare_start_index = 1
  
                  assert_almost_equal(
                      np_array(row1[compare_start_index:], dtype=np_float32),
                      np_array(row2[compare_start_index:], dtype=np_float32),
                      decimal=2)
              except StopIteration:
                  break
      return True