Topic Practice · Data Science
Pandas: DataFrames problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Rows and Columns
4 test casesEasy✓2. Average CGPA
4 test casesEasy✓3. One Column
4 test casesEasy✓4. Filter Rows
4 test casesEasy✓5. Students per Department
4 test casesEasy✓6. Top Student
4 test casesEasy✓7. Series Arithmetic
4 test casesEasy✓8. Build a DataFrame
4 test casesEasy✓9. First and Last Rows
4 test casesEasy✓10. Fewest and Most Credits
4 test casesEasy✓11. How Many Departments?
4 test casesEasy✓12. CGPA in a Range
4 test casesEasy✓13. How Many Students?
4 test casesEasy✓14. The Last Row
4 test casesEasy✓15. The First Row
4 test casesEasy✓16. Credits in CSE
4 test casesEasy✓17. Names in Alphabetical Order
4 test casesEasy✓18. How Many Above 3.5?
4 test casesEasy✓19. Lowest CGPA
4 test casesEasy✓20. Two Columns
4 test casesEasy✓21. Credits Left
4 test casesEasy✓22. The Highest Credits
4 test casesEasy✓23. Sort the Table
4 test casesMedium✓24. Calculated Column
4 test casesMedium✓25. Two Conditions
4 test casesMedium✓26. Either Condition
4 test casesMedium✓27. loc and iloc
4 test casesMedium✓28. Summary Numbers
4 test casesMedium✓29. isin()
4 test casesMedium✓30. String Columns
4 test casesMedium✓31. apply() a Function
4 test casesMedium✓32. Filter With query()
4 test casesMedium✓33. Full Department Names
4 test casesMedium✓34. Share of All Credits
4 test casesMedium✓35. Counting With True/False
4 test casesMedium✓36. Average CGPA per Department
4 test casesMedium✓37. Top Two by Credits
4 test casesMedium✓38. Sort by Department, Then CGPA
4 test casesMedium✓39. Best Student in Each Department
4 test casesMedium✓40. Status Column With loc
4 test casesMedium✓41. Read a CSV
4 test casesHard✓42. Drop and Rename
4 test casesHard✓43. Rank Students
4 test casesHard✓44. Add New Students
4 test casesHard✓45. Look Up by Name
4 test casesHard✓46. Rank Within Each Department
5 test casesHard✓47. Join a Department Table
4 test casesHard✓48. Grades by Department
5 test casesHard✓49. Running Credits per Department
5 test casesHard✓50. Compare Each Student With Their Department
5 test casesHard
4 test casesEasy✓2. Average CGPA
4 test casesEasy✓3. One Column
4 test casesEasy✓4. Filter Rows
4 test casesEasy✓5. Students per Department
4 test casesEasy✓6. Top Student
4 test casesEasy✓7. Series Arithmetic
4 test casesEasy✓8. Build a DataFrame
4 test casesEasy✓9. First and Last Rows
4 test casesEasy✓10. Fewest and Most Credits
4 test casesEasy✓11. How Many Departments?
4 test casesEasy✓12. CGPA in a Range
4 test casesEasy✓13. How Many Students?
4 test casesEasy✓14. The Last Row
4 test casesEasy✓15. The First Row
4 test casesEasy✓16. Credits in CSE
4 test casesEasy✓17. Names in Alphabetical Order
4 test casesEasy✓18. How Many Above 3.5?
4 test casesEasy✓19. Lowest CGPA
4 test casesEasy✓20. Two Columns
4 test casesEasy✓21. Credits Left
4 test casesEasy✓22. The Highest Credits
4 test casesEasy✓23. Sort the Table
4 test casesMedium✓24. Calculated Column
4 test casesMedium✓25. Two Conditions
4 test casesMedium✓26. Either Condition
4 test casesMedium✓27. loc and iloc
4 test casesMedium✓28. Summary Numbers
4 test casesMedium✓29. isin()
4 test casesMedium✓30. String Columns
4 test casesMedium✓31. apply() a Function
4 test casesMedium✓32. Filter With query()
4 test casesMedium✓33. Full Department Names
4 test casesMedium✓34. Share of All Credits
4 test casesMedium✓35. Counting With True/False
4 test casesMedium✓36. Average CGPA per Department
4 test casesMedium✓37. Top Two by Credits
4 test casesMedium✓38. Sort by Department, Then CGPA
4 test casesMedium✓39. Best Student in Each Department
4 test casesMedium✓40. Status Column With loc
4 test casesMedium✓41. Read a CSV
4 test casesHard✓42. Drop and Rename
4 test casesHard✓43. Rank Students
4 test casesHard✓44. Add New Students
4 test casesHard✓45. Look Up by Name
4 test casesHard✓46. Rank Within Each Department
5 test casesHard✓47. Join a Department Table
4 test casesHard✓48. Grades by Department
5 test casesHard✓49. Running Credits per Department
5 test casesHard✓50. Compare Each Student With Their Department
5 test casesHard