Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions