<s> from vbench . benchmark import Benchmark <EOL> from datetime import datetime <EOL> common_setup = """<STR_LIT>""" <EOL> setup = common_setup + """<STR_LIT>""" <EOL> statement = "<STR_LIT>" <EOL> frame_reindex_columns = Benchmark ( statement , setup ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> statement = "<STR_LIT>" <EOL> dataframe_reindex = Benchmark ( statement , setup ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> statement = "<STR_LIT>" <EOL> reindex_multi = Benchmark ( statement , setup , <EOL> name = '<STR_LIT>' , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:1> ) ) <EOL> def pad ( source_series , target_index ) : <EOL> try : <EOL> source_series . reindex ( target_index , method = '<STR_LIT>' ) <EOL> except : <EOL> source_series . reindex ( target_index , fillMethod = '<STR_LIT>' ) <EOL> def backfill ( source_series , target_index ) : <EOL> try : <EOL> source_series . reindex ( target_index , method = '<STR_LIT>' ) <EOL> except : <EOL> source_series . reindex ( target_index , fillMethod = '<STR_LIT>' ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> statement = "<STR_LIT>" <EOL> reindex_daterange_pad = Benchmark ( statement , setup , <EOL> name = "<STR_LIT>" ) <EOL> statement = "<STR_LIT>" <EOL> reindex_daterange_backfill = Benchmark ( statement , setup , <EOL> name = "<STR_LIT>" ) <EOL> reindex_fillna_pad = Benchmark ( "<STR_LIT>" , setup , <EOL> name = "<STR_LIT>" , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:3> , <NUM_LIT:1> ) ) <EOL> reindex_fillna_pad_float32 = Benchmark ( "<STR_LIT>" , setup , <EOL> name = "<STR_LIT>" , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) ) <EOL> reindex_fillna_backfill = Benchmark ( "<STR_LIT>" , setup , <EOL> name = "<STR_LIT>" , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:3> , <NUM_LIT:1> ) ) <EOL> reindex_fillna_backfill_float32 = Benchmark ( "<STR_LIT>" , setup , <EOL> name = "<STR_LIT>" , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> reindex_frame_level_align = Benchmark ( "<STR_LIT>" , setup , <EOL> name = '<STR_LIT>' , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> ) ) <EOL> reindex_frame_level_reindex = Benchmark ( "<STR_LIT>" , setup , <EOL> name = '<STR_LIT>' , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> ) ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> statement = "<STR_LIT>" <EOL> frame_sort_index_by_columns = Benchmark ( statement , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT:1> ) ) <EOL> statement = "<STR_LIT>" <EOL> frame_drop_duplicates = Benchmark ( statement , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT:15> ) ) <EOL> statement = "<STR_LIT>" <EOL> frame_drop_dup_inplace = Benchmark ( statement , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:5> , <NUM_LIT:16> ) ) <EOL> lib_fast_zip = Benchmark ( '<STR_LIT>' , setup , <EOL> name = '<STR_LIT>' , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) ) <EOL> setup = setup + """<STR_LIT>""" <EOL> statement2 = "<STR_LIT>" <EOL> frame_drop_duplicates_na = Benchmark ( statement2 , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:5> , <NUM_LIT:15> ) ) <EOL> lib_fast_zip_fillna = Benchmark ( '<STR_LIT>' , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:5> , <NUM_LIT:15> ) ) <EOL> statement2 = "<STR_LIT>" <EOL> frame_drop_dup_na_inplace = Benchmark ( statement2 , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:5> , <NUM_LIT:16> ) ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> series_drop_duplicates_int = Benchmark ( '<STR_LIT>' , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT> ) ) <EOL> series_drop_duplicates_string = Benchmark ( '<STR_LIT>' , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:11> , <NUM_LIT> ) ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> frame_fillna_many_columns_pad = Benchmark ( "<STR_LIT>" , <EOL> setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:3> , <NUM_LIT:1> ) ) <EOL> setup = common_setup + """<STR_LIT>""" <EOL> series_align_irregular_string = Benchmark ( "<STR_LIT>" , setup , <EOL> start_date = datetime ( <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT:1> ) ) </s>
