def iodp_sample_names(df):
    """
    Convert expedition, hole, section, type, interval to sample name in format:
    exp-hole-type-sect-interval

    Parameters
    ___________
    df : Pandas DataFrame
         dataframe read in from .csv file downloaded from LIMS online database

    Returns
    --------------

    holes : list
           IODP Holes name in format U999A

    specimens : pandas Series
            series with sample names, e.g. 999-U999A-1H-1-W-1


    """
    if 'Top offset (cm)' in df.columns:
        offset_key = 'Top offset (cm)'
    elif 'Offset (cm)' in df.columns:
        offset_key = 'Offset (cm)'
    else:
        print('No offset key found')
        return False, []
    interval = df[offset_key].astype('float').astype('str')
    holes = df['Site'].astype('str') + df['Hole']
    specimens = df['Exp'].astype('str') + '-' + holes + '-' + df['Core'
        ].astype('str') + df['Type'].astype('str') + '-' + df['Sect'].astype(
        'str') + '-' + df['A/W'] + '-' + interval
    return holes, specimens
