Instructions You need to run some code in the blank jupyter notebook attached. I create the new notebook, imported the numpy, pandas, and matplot libraries so you can use it to answer following...

1 answer below »
This is 15-20 mins worth of work to solve 2 Python-based multiple-choice questions. No code delivery is required. Just mark the correct answers in word doc.I have attached a Jupyter notebook for reference.


Instructions You need to run some code in the blank jupyter notebook attached. I create the new notebook, imported the numpy, pandas, and matplot libraries so you can use it to answer following questions Question 1# For a pandas dataframe df, state which of the following statements is correct and which is not?    1- df.isnull() will find and replace  with 0 all Nan values in the dataframe   2- df[:].isnull().any()  shows which  of df columns has null in them   3- m=df['col1'].describe().iloc[1] will assign the mean of column ‘col1’ to m   4- df[:].isnull().any(axis=1).sum() will count how many rows contain  null values   5- df.dropna(axis='rows', thresh=2 ) will remove rows with two or more missing values   6- df = df[ df.isnull().any(axis=1) ] will remove the rows with missing values and keep the clean ones Question #2 Given the following code to generate  X, and Y data and plot the plot in figure 1. The code then selects some data points to be highlighted in the figure as shown in figure 2. Complete the code below by selecting the appropriate parameters in the 2nd plt.scatter( ) function in order to produce the plot in figure 2. X = np.arange(100) Y = np.random.rand(100)*100 plt.scatter(X, Y, alpha=0.3, s=30)  # plot the dots  #select some points Xs = X[X%5==0] Ys = Y[indices] plt.scatter(    , ,facecolor =  , edgecolors =  , s =   )       # highlight  selected points plt.show()
Answered Same DayApr 21, 2021

Answer To: Instructions You need to run some code in the blank jupyter notebook attached. I create the new...

Aniket answered on Apr 21 2021
149 Votes
Instructions You need to run some code in the blank jupyter notebook attached.
I create the new not
ebook, imported the numpy, pandas, and matplot libraries so you can use it to answer following questions
Question 1#
For a pandas dataframe df, state which of the following statements is correct and which is not? 
  1- df.isnull() will find and replace  with 0 all Nan values in the dataframe
  2- df[:].isnull().any()  shows...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here