(col_names, col_types)
remove pandas index if found in columns
remove pandas index if found in columns
remove pandas index if found in columns
def _rm_pd_index(col_names, col_types):
    """remove pandas index if found in columns
    """
    try:
        pd_index_loc = col_names.index('__index_level_0__')
        del col_names[pd_index_loc]
        del col_types[pd_index_loc]
    except ValueError:
        pass
def _rm_pd_index ( col_names , col_types ) : try : pd_index_loc = col_names . index ( '__index_level_0__' ) del col_names [ pd_index_loc ] del col_types [ pd_index_loc ] except ValueError : pass