<s> from . pandas_vb_common import * <EOL> class series_constructor_no_data_datetime_index ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . dr = pd . date_range ( <EOL> start = datetime ( <NUM_LIT> , <NUM_LIT:10> , <NUM_LIT> ) , <EOL> end = datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) , <EOL> freq = '<STR_LIT>' <EOL> ) <EOL> def time_series_constructor_no_data_datetime_index ( self ) : <EOL> Series ( data = None , index = self . dr ) <EOL> class series_isin_int64 ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s3 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) . astype ( '<STR_LIT>' ) <EOL> self . s4 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:100> , <NUM_LIT> ) ) . astype ( '<STR_LIT>' ) <EOL> self . values = [ <NUM_LIT:1> , <NUM_LIT:2> ] <EOL> def time_series_isin_int64 ( self ) : <EOL> self . s3 . isin ( self . values ) <EOL> def time_series_isin_int64_large ( self ) : <EOL> self . s4 . isin ( self . values ) <EOL> class series_isin_object ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s3 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) . astype ( '<STR_LIT>' ) <EOL> self . values = [ <NUM_LIT:1> , <NUM_LIT:2> ] <EOL> self . s4 = self . s3 . astype ( '<STR_LIT:object>' ) <EOL> def time_series_isin_object ( self ) : <EOL> self . s4 . isin ( self . values ) <EOL> class series_nlargest1 ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s1 = Series ( np . random . randn ( <NUM_LIT> ) ) <EOL> self . s2 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) <EOL> self . s3 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) . astype ( '<STR_LIT>' ) <EOL> self . values = [ <NUM_LIT:1> , <NUM_LIT:2> ] <EOL> self . s4 = self . s3 . astype ( '<STR_LIT:object>' ) <EOL> def time_series_nlargest1 ( self ) : <EOL> self . s1 . nlargest ( <NUM_LIT:3> , take_last = True ) <EOL> self . s1 . nlargest ( <NUM_LIT:3> , take_last = False ) <EOL> class series_nlargest2 ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s1 = Series ( np . random . randn ( <NUM_LIT> ) ) <EOL> self . s2 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) <EOL> self . s3 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) . astype ( '<STR_LIT>' ) <EOL> self . values = [ <NUM_LIT:1> , <NUM_LIT:2> ] <EOL> self . s4 = self . s3 . astype ( '<STR_LIT:object>' ) <EOL> def time_series_nlargest2 ( self ) : <EOL> self . s2 . nlargest ( <NUM_LIT:3> , take_last = True ) <EOL> self . s2 . nlargest ( <NUM_LIT:3> , take_last = False ) <EOL> class series_nsmallest2 ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s1 = Series ( np . random . randn ( <NUM_LIT> ) ) <EOL> self . s2 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) <EOL> self . s3 = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) . astype ( '<STR_LIT>' ) <EOL> self . values = [ <NUM_LIT:1> , <NUM_LIT:2> ] <EOL> self . s4 = self . s3 . astype ( '<STR_LIT:object>' ) <EOL> def time_series_nsmallest2 ( self ) : <EOL> self . s2 . nsmallest ( <NUM_LIT:3> , take_last = True ) <EOL> self . s2 . nsmallest ( <NUM_LIT:3> , take_last = False ) <EOL> class series_dropna_int64 ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s = Series ( np . random . randint ( <NUM_LIT:1> , <NUM_LIT:10> , <NUM_LIT> ) ) <EOL> def time_series_dropna_int64 ( self ) : <EOL> self . s . dropna ( ) <EOL> class series_dropna_datetime ( object ) : <EOL> goal_time = <NUM_LIT> <EOL> def setup ( self ) : <EOL> self . s = Series ( pd . date_range ( '<STR_LIT>' , freq = '<STR_LIT:S>' , periods = <NUM_LIT> ) ) <EOL> self . s [ np . random . randint ( <NUM_LIT:1> , <NUM_LIT> , <NUM_LIT:100> ) ] = pd . NaT <EOL> def time_series_dropna_datetime ( self ) : <EOL> self . s . dropna ( ) </s>
