Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7a. Write a command to create a data frame (name the data frame as employee) with contain 3 variables and 6 observations: employees name, gender

image text in transcribed

7a. Write a command to create a data frame (name the data frame as employee) with contain 3 variables and 6 observations: employees name, gender and age and the details of each variable, then print the data frame (please make up the data). 7b. Can you calculate the mean of all the employees' age? 7c. Select First N rows with head function. 7d. Display just the 1st column of this framework in the console. 7e. Adding a new column to the employee frame called salary (please make up the numbers), then print this data frame. 7f. Can you calculate the median of the salary variable? 7g. Display the item of data in row 3 , column 3 of the new framework

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

Students also viewed these Databases questions

Question

What magazine and ads did you choose to examine?

Answered: 1 week ago