Python with Data Science

Assignment 3

Due date: 2019-09-23, 23:59 IST.
Your last recorded submission was on 2019-09-17, 17:21 IST
Get description about the data files by clicking on the following links :

mtcars_DataDescription

Diamond_DataDescription

Churn_DataDescription
1 point
The command used for reading a text file in python is: -
 
 
 
 
1 point
The command used for line plot from the package Matplotlib?
 
 
 
 
1 point
From the given dataset ‘mtcars.csv, plot a histogram to check the frequency distribution of the variable ‘mpg’ (Miles per gallon). The interval having the
   highest frequency is: -
 
 
 
 
1 point
Which of the following can be inferred from scatter plot of ‘mpg’ (Miles per gallon) vs ‘wt’ (Weight of car) from the dataset mtcars.csv?
 
 
 
 
1 point
The command from seaborn library that is used to plot the relationship between two numerical variables 
 
 
 
 
1 point
The function from seaborn library that combines regplot() and FacetGrid is
 
 
 
 
1 point
The visual representation of the statistical five number summary of variable (s) is given by
 
 
 
 
1 point
Plot a boxplot for “price” vs “cut” from the dataset diamond.csv. Which of the categories under “cut” have the highest median price?
 
 
 
 
1 point
Create a frequency table (one-way table) for the variable “cut” from the dataset diamond.csv. What is the frequency for the cut type “Ideal”?
 
 
 
 
1 point
The probability of two different events occurring at the same time is known as
 
 
 
 
1 point
The command to detect NaN (null) values in pandas dataframes is
 
 
 
 
1 point
The command to identify the data type of a column in the dataframe is
 
 
 
 


Read the given data churn.csv and save it as a dataframe called churn, and answer the questions from 13 to 18

1 point
The no. of duplicate records in the churn dataframe based on the cutomerID column are
 
 
 
 
1 point
In the churn dataframe, what are the total no. of missing values for the variable TotalCharges?
 
 
 
 
1 point
From the churn dataframe, what is the average monthly charge paid by a customer for the services he/she has signed up for?
 
 
 
 
1 point
In the churn dataframe, under the variable Dependents how many records have “1@#" ?
 
 
 
 
1 point
The data type of the variable tenure from the churn dataframe is
 
 
 
 
1 point
The command to replace ‘Four’ by 4 and ‘One’ by 1 under the variable “tenure” of the churn dataframe: -
 
 
 
 
1 point
The Pearson correlation coefficient value ranges from
 
 
 
 
1 point
In control structures, to mark the beginning of sequence of operations, ----- is used
 
 
 
 
You may submit any number of times before the due date. The final submission will be considered for grading.

1 comment

File Uploading in PHP

  File Uploading in PHP PHP allow you to upload any type of a file i.e. image, binary or text files.etc..,PHP has one in built global variab...