TopicIn this assignment, you should work withbooks.csvDownload books.csvfile. This file contains the detailed information about books scraped via the Goodreads . The dataset is...

1 answer below »






Topic





In this assignment, you should work with





books.csv








Download books.csv








file. This file contains the detailed information about books scraped via the Goodreads . The dataset is downloaded from Kaggle website.




Each row in the file includes ten columns. Detailed description for each column is provided in the following:










  1. bookID: A unique Identification number for each book.






  2. title: The name under which the book was published.






  3. authors: Names of the authors of the book. Multiple authors are delimited with -.






  4. average_rating: The average rating of the book received in total.






  5. isbn: Another unique number to identify the book, the International Standard Book Number.






  6. isbn13: A 13-digit ISBN to identify the book, instead of the standard 11-digit ISBN.






  7. language_code: Helps understand what is the primary language of the book.






  8. num_pages: Number of pages the book contains.






  9. ratings_count: Total number of ratings the book received.






  10. text_reviews_count: Total number of written text reviews the book received.









Task








  1. Write the following codes:



    1. Use pandas to read the file as a dataframe (named as books).bookIDcolumn should be the index of the dataframe.



    2. Use books.head() to see the first 5 rows of the dataframe.



    3. Use book.shape to find the number of rows and columns in the dataframe.



    4. Use books.describe() to summarize the data.



    5. Use books['authors'].describe() to find about number of unique authors in the dataset and also most frequent author.



    6. Use OLS regression to test if average rating of a book is dependent to number of pages, number of ratings, and total number of written text reviews the book received.









  2. Summarize your findings in part 1 (all 6 sections) in a Word file (you should include your code, and provide a summary that contains a summary of results such as number of rows in the dataset,


    interpretation of regression results


    , etc.).



Answered Same DayFeb 21, 2023

Answer To: TopicIn this assignment, you should work withbooks.csvDownload books.csvfile....

Vedant answered on Feb 21 2023
45 Votes
Summary
Section 1
Reading the file from the path where it is stored.
import pandas as pd
books =
 pd.read_csv("File Path")
Setting the bookID as the index column in the dataframe books
books = books.set_index('bookID')
Section 2
Printing the first 5 rows of the books dataframe
books.head(5)
Output
Section 3
rw, col = books.shape
print("Number of rows: ",rw)
print("Number of Columns: ",col)
pandas shape function returns two things i.e the number of rows followed by the number of column in the dataframe.
Output
Section 4
books.describe()
Output
Section...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here