<s> from . pandas_vb_common import * <EOL> class frame_constructor_ndarray ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . arr = np . random . randn ( <NUM_LIT:100> , <NUM_LIT:100> ) <EOL> def time_frame_constructor_ndarray ( self ) : <EOL> DataFrame ( self . arr ) <EOL> class ctor_index_array_string ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . data = np . array ( [ '<STR_LIT:foo>' , '<STR_LIT:bar>' , '<STR_LIT>' ] , dtype = object ) <EOL> def time_ctor_index_array_string ( self ) : <EOL> Index ( self . data ) <EOL> class series_constructor_ndarray ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . data = np . random . randn ( <NUM_LIT:100> ) <EOL> self . index = Index ( np . arange ( <NUM_LIT:100> ) ) <EOL> def time_series_constructor_ndarray ( self ) : <EOL> Series ( self . data , index = self . index ) <EOL> class dtindex_from_series_ctor ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s = Series ( ( [ Timestamp ( '<STR_LIT>' ) , Timestamp ( '<STR_LIT>' ) , Timestamp ( '<STR_LIT>' ) ] * <NUM_LIT:1000> ) ) <EOL> def time_dtindex_from_series_ctor ( self ) : <EOL> DatetimeIndex ( self . s ) <EOL> class index_from_series_ctor ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s = Series ( ( [ Timestamp ( '<STR_LIT>' ) , Timestamp ( '<STR_LIT>' ) , Timestamp ( '<STR_LIT>' ) ] * <NUM_LIT:1000> ) ) <EOL> def time_index_from_series_ctor ( self ) : <EOL> Index ( self . s ) </s>
