>>> import numpy as np(B) >>> array1 = np.array([1,2,3,4])(C) >>> import pandas as pd(D) >>> series3 = pd.Series(array1)(E) >>> print(series3)Choose the correct answer from the options given below:
import numpy as np needs nothing. It creates the name np. array1 = np.array([1,2,3,4]) needs np, so it must come after (A). import pandas as pd needs nothing. It creates the name pd. series3 = pd.Series(array1) needs both pd from (C) and array1 from (B). print(series3) needs series3 from (D), so it is last. pd and array1 do not exist yet. This gives a NameError. So option 1 is wrong. array1 is made, then the Series, then it is printed. Every line finds what it needs. So option 2 is correct. np before it is imported, which gives a NameError. So option 3 is wrong. np before (A) imports numpy, which gives a NameError. So option 4 is wrong. Given the following DataFrame df:
| PNO | NAME |
|---|---|
| 111 | ROHAN |
| 222 | MEETA |
| 333 | SEEMA |
| 444 | SHALU |
| 555 | POONAM |
Select the correct commands from the following to display the last five rows:
Given the following series ser1:
| Index | Value |
|---|---|
| 0 | 69 |
| 1 | 80 |
| 2 | 20 |
| 3 | 50 |
| 4 | 100 |
| 5 | 70 |
State the output of the following command:
print(ser1 >= 70)
Which of the following are the correct commands to delete a column from the DataFrame df1?
Select the statements that are CORRECT regarding patterns of biodiversity.
Which of the following hormone is not produced by placenta ?
List - I | List - II | ||
| A | Streptokinase | I | Blood-Cholestrol lowering agents |
| B | Cyclosporin | II | Clot Buster |
| C | Statins | III | Propionibacterium sharmanii |
| D | Swiss Cheese | IV | Immuno suppressive agent |
Which of the following option determines percolation and water holding capacity of soils ?