text_plain_output_1.png
import pandas as pd

def import_data():
    dataset = pd.read_csv('../input/ratings.csv')
    books = pd.read_csv('../input/books.csv')
    return (dataset, books)

def extract_book_and_user(dataset):
    n_user = len(dataset.user_id.unique())
    n_books = len(dataset.book_id.unique())
    return (n_user, n_books)

print(n_user)
print(n_books)