groupby() method. This follows the split-apply-combine idea. First the data is split into groups, then a function such as sum or mean is applied to each group, and last the results are combined. Among the four options, the one that stands for the grouping function is GROUP BY(). split() is a string method. It breaks a string into a list at a separator. It does not group DataFrame rows. So option 1 is wrong. groupby(). Of all the options, only this one is meant to group data by some criteria. So option 2 is correct. first() returns the first entry in each group once a grouping already exists. It does not split the data. So option 3 is wrong. reset_index() turns the index back into normal numbering or a column. It is often used after grouping, but it does not group. 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 ?