Answered step by step
Verified Expert Solution
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:
price price in US dollars $ $
carat weight of the diamond
cut quality of the cut Fair Good, Very Good, Premium, Ideal
color diamond colour, from J worst to D best
clarity a measurement of how clear the diamond is Iworst SI SI VS VS VVS VVS IF best
x length in mm
y width in mm
z depth in mm
depth total depth percentage z meanx y z x y
table width of top of diamond relative to widest point
Task
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 and bottom 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 iiivi
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started