Question: The explanation for each column is as given below: 1 ) price - price in US dollars ( $ 3 2 6 $ 1 8

The explanation for each column is as given below:
1) price - price in US dollars ($326 $18,823)
2) carat - weight of the diamond (0.25.01)
3) cut - quality of the cut (Fair, Good, Very Good, Premium, Ideal)
4) color - diamond colour, from J (worst) to D (best)
5) clarity - a measurement of how clear the diamond is (I1(worst), SI2, SI1, VS2, VS1, VVS2, VVS1, IF (best))
6) x - length in mm (010.74)
7) y - width in mm (058.9)
8) z - depth in mm (031.8)
9) depth - total depth percentage = z / mean(x, y)=2* z /(x + y)(4379)
10) table - width of top of diamond relative to widest point (4395)
Task 1
i) Load the "diamonds" dataset from the Seaborn package to an object.
ii) Find the datatype of the object into which you have loaded the "diamonds" dataset.
iii) View the top 5 and bottom 5 rows of the data.
iv) Get the dimensions of the data. Find the number of rows and columns in the data.
v) Display the structure of the data all column names along with their data types.
vi) Display the summary statistics of all the columns in your data.
Hint: Explore the functions available in pandas dataframe to perform tasks iii-vi.

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 Databases Questions!