Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task-2 (5 pts): Get the information (i.e, the number of rows and the data types present in each column) and the basic statistical measures about

image text in transcribed
Task-2 (5 pts): Get the information (i.e, the number of rows and the data types present in each column) and the basic statistical measures about the dataframe ecommerce using the appropriate functions. In | 1: #GIVE YOUR ANSWER FOR TASK-2 IN THIS CELL import ecommerce as em details = { "Person' : [0, 1,2,3,4], "Email' : ['mstephenson@fernandez.com', 'hduke@hotmail.com', "pallen@yahoo.com', 'riverarebecca@gmail.com "Address': ['835 Frank Tunnel nWrightmouth, MI 82180-9605, '4547 Archer Common\ Diazchester, CA 06566-85 "Avatar' : ['Violet', 'DarkGreen', 'Bisque', 'SaddleBrown', 'MediumAquaMarine' ], "Avg. Session Length': ['34.5), '31.9', '33.0', '34.3', '33.3' ] "Time on App': ['12.7', '11.1', '11.3', '13.7', '12.8'] "Time on Website': ['39.6', '37.3', '37.1' , '36.7', ' 37.5'] "Length of Membership': [ '4.1' , '2.7', '4.1', '3.1', '4.4'] "Yearly Amount Spent' : ['588' , '392', '488', '582 , '599'] df = pd. DataFrame( details, columns = ['Person', ' Email', 'Address', 'Avatar', "Avg. Session Length', 'Time on App index = ['a', 'b' 'c' "'d']) rows = len(df . axes [0]) cols = len(df . axes [1] ) print( "Number of Rows: " + str(rows) ) print( "Number of Columns: " + str(cols))

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_2

Step: 3

blur-text-image_3

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

Negative Binomial Regression

Authors: Joseph M Hilbe

2nd Edition

1139005960, 9781139005968

More Books

Students also viewed these Mathematics questions