import difflib


def closest_title(title, series):
    """
    Return closest movie name in a given dataframe.

    -------
    Parameters:
    title (string): Movie name
    series: (pandas Series): Series to search for closest title
    """
    matches = difflib.get_close_matches(title, series)
    if matches:
        return matches[0]
    else:
        return ''