text_plain_output_1.png
import numpy as np

def get_unique_value():
    book_data = np.array(list(set(datasets.book_id)))
    return book_data

book_data = get_unique_value()

def setting_user(user_id):
    user = np.array([user_id for i in range(len(book_data))])
    return user

user = setting_user(1)

user