def split_dir_file(path):
    """
    This function separates file path and file name
    
    Parameters:
    -----------
    path: string
        path of a file with file name
    
    Returns:
    --------
    tuple
        Returns a tuple of directory path and file name
    
    Examples:
    ---------
    >>> split_dir_file('data/clean/banking.csv')
    ('data/clean','banking.csv')
    """
    path_list = path.split('/')
    file_name = path_list[-1]
            
    dir_path = path_list[0]
    for i in path_list[1:-1]:
        dir_path = dir_path+"/"+i
            
    return (dir_path,file_name)