<s> from . pandas_vb_common import * <EOL> from pandas import to_timedelta <EOL> class timedelta_convert_int ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . arr = np . random . randint ( <NUM_LIT:0> , <NUM_LIT:1000> , size = <NUM_LIT> ) <EOL> def time_timedelta_convert_int ( self ) : <EOL> to_timedelta ( self . arr , unit = '<STR_LIT:s>' ) <EOL> class timedelta_convert_string ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . arr = np . random . randint ( <NUM_LIT:0> , <NUM_LIT:1000> , size = <NUM_LIT> ) <EOL> self . arr = [ '<STR_LIT>' . format ( i ) for i in self . arr ] <EOL> def time_timedelta_convert_string ( self ) : <EOL> to_timedelta ( self . arr ) <EOL> class timedelta_convert_string_seconds ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . arr = np . random . randint ( <NUM_LIT:0> , <NUM_LIT> , size = <NUM_LIT> ) <EOL> self . arr = [ '<STR_LIT>' . format ( i ) for i in self . arr ] <EOL> def time_timedelta_convert_string_seconds ( self ) : <EOL> to_timedelta ( self . arr ) </s>
