import pandas_profiling import numpy as np # replace blank cells with NaN books_metadata_selected.replace('', np.nan, inplace=True) # not taking book_id into the profiler report profile = \ pandas_profiling.ProfileReport(books_metadata_selected[['average_rating', 'is_ebook', 'num_pages', 'publication_year', 'ratings_count']]) profile.to_file('./results/profiler_books_metadata_1.html')