Computer Science, asked by nicks841, 7 months ago

Suppose you want to access that part of dataframe(df) for which the Age value is equal to 25. How can it be done? * df[df['Age']==25] df['Age]==25 df['Age']=25 df[df['Age']=25]

Answers

Answered by StaceeLichtenstein
1

df['Age']=25 is the correct  answer to the given question .

Explanation:

  • As we have to access the value of the age that are equal to 25 so it means we have to access the value of the age index that are equal to the 25.
  • Since age is an index we have always passing the index in the single quotes value in python or php that's why we consider the option df['Age']=25 df is the object dataframe so correct syntax is objectname['key value'].
  • All the other option are not follow the syntax rule that's why they are incorrect option .

Learn More :

  • brainly.in/question/9032022
Answered by Anonymous
0

he correct syntax for getting 6 records and 4 column rate, for an object iris, is. O iris. iloc[3:0,2:0] O iris.

Answered by Anonymous
0

he correct syntax for getting 6 records and 4 column rate, for an object iris, is. O iris. iloc[3:0,2:0] O iris.

Similar questions