def drop_column_suffix(frame, suffix):
    """Drop this suffix from each column that contains it."""
    frame.columns = [col if not col.endswith(
        suffix) else col[:-len(suffix)] for col in frame.columns]
    return frame