from pathlib import Path


def get_filename_from_path(path_in):
    """Returns filename with extension

    :param path_in: String path to file
    :return: Filename with extension
    """
    return Path(path_in).name