Question: Part 1 : Loading the Dataset; Preliminary Analysis In this section, we will load the data into a DataFrame, and will explore the structure of

Part 1: Loading the Dataset; Preliminary Analysis
In this section, we will load the data into a DataFrame, and will explore the structure of the data set.
Create a markdown cell that displays a level 2 header that reads: "Part 1: Loading the Dataset; Preliminary Analysis". Also
add some text briefly describing the purpose of your code in this part.
The data is stored in the tab-delimited text file diamonds.txt. Download this file into the directory that contains your
notebook, and then load the data into a DataFrame named diamonds. Use the head() method to display the first 10 rows
of this DataFrame.
Add a markdown cell explaining that we will determine the size of the dataset.
2
Print the shape of the diamonds DataFrame.
We will now inspect the distribution of the columns in diamonds. Add a markdown cell to briefly explain this.
Call the DataFrame method describe() on diamonds to display a DataFrame containing descriptive statistics for each
of the columns.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!