# Limit the books metadata to selected fields interactions_selected = interactions[['user_id', 'book_id', 'is_read', 'rating']] # mapping boolean to string booleanDictionary = {True: 'true', False: 'false'} interactions_selected['is_read'] = interactions_selected['is_read'].replace(booleanDictionary) profile = pandas_profiling.ProfileReport(interactions_selected[['is_read', 'rating']]) profile.to_file('./results/profiler_interactions.html')