@staticmethod<EOL><INDENT>def transform(x):<DEDENT>
<EOL>try:<EOL><INDENT>x = np.array([_x.total_seconds()*<NUM_LIT:10>**<NUM_LIT:6> for _x in x])<EOL><DEDENT>except TypeError:<EOL><INDENT>x = x.total_seconds()*<NUM_LIT:10>**<NUM_LIT:6><EOL><DEDENT>return x<EOL>
Transform from Timeddelta to numerical format