def convert_plastics(labels):
    """
    Convert 'Identification' column of a DataFrame with an 'isPlastic' column
    corresponding to whether the sample is plastic (1) or not (0).

    Parameters
    ----------
    labels: DataFrame
        DataFrame containing an 'Identification' column with known
        identifications as strings.

    Returns
    -------
    DataFrame
        The updated DataFrame contains a column 'isPlastic' which
        contains 1 if the sample is platic and 0 if it is not.
    """
    PLASTICS = [
        'polystyrene',
        'polyethylene',
        'polypropylene',
        'Nylon',
        'ink + plastic',
        'PET',
        'carbon fiber',
        'polyamide resin',
        'PVC',
        'plastic']
    identification = labels['Identification']

    for i in range(0, len(identification)):
        if identification[i] in PLASTICS:
            identification[i] = True
        else:
            identification[i] = False

    labels['Identification'] = identification
    labels.rename(columns={'Identification': 'isPlastic'}, inplace=True)
    labels['isPlastic'] = labels["isPlastic"].astype(int)
    return labels