code: def transform(x):
          
          # nanoseconds
          try:
              x = np.array([_x.value for _x in x])
          except TypeError:
              x = x.value
          return x
docs: Transform from Timeddelta to numerical format