Challenge: Modify Data Frames
Tâche
Swipe to start coding
You are given a data frame of class records. Modify this data frame as follows:
- Add a new column named
attendancewith the values 90, 95, and 88 for the existing students. - Remove the
agecolumn from the data frame. - Add a new row for a student named "Diana" with a grade of 87 and attendance of 98.
Assign the final, modified data frame to the variable updated_students.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Génial!
Completion taux amélioré à 5.56
Challenge: Modify Data Frames
Glissez pour afficher le menu
Tâche
Swipe to start coding
You are given a data frame of class records. Modify this data frame as follows:
- Add a new column named
attendancewith the values 90, 95, and 88 for the existing students. - Remove the
agecolumn from the data frame. - Add a new row for a student named "Diana" with a grade of 87 and attendance of 98.
Assign the final, modified data frame to the variable updated_students.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single