def get_books_liked_by_user(user_id, user_book_rating, min_rating):
    """Get books which the user liked.

    :param user_id: User for which the closest neighbor will be find
    :type: int
    :param user_book_rating: Ratings of each user for each book read
    :type: pandas dataframe with cols ["user_id", "book_id", "rating"]
    :param min_rating: Minimal rating that defines if a user liked a book
    :type: int
    :return: Books which got at least the minimal rating by the user
    :rtype: List of ints
    """
    user2_book_rating = user_book_rating[user_book_rating["user_id"]==user_id]
    books_liked = user2_book_rating[user2_book_rating["rating"] >= min_rating]["book_id"].to_list()
    return books_liked