Topfolio
Career TracksMicro Free CoursesTask CoursesPracticeInterview PracticeWork ExperienceProjects
Career TrackBlog
Support
Dashboard
Career TracksMicro Free CoursesTask Courses
SQL & Python
Interview Prep
Work ExperienceProjectsResume Feedback
CertificatesMy OrdersRefer & Earn
Join Community

Navigation

Dashboard
Learn
Career TracksMicro Free CoursesTask Courses
Practice
SQL & PythonInterview Prep
Career
Work ExperienceProjectsResume Feedback
My Stuff
CertificatesMy OrdersRefer & Earn
Join Community
Topfolio

Learn data analytics online. Real skills, real projects, real community.

courses

  • Career Tracks
  • Work Experience
  • Best Data Analyst Course in India
  • SQL Fundamentals
  • SQL Advanced
  • Python for Data
  • Micro Free Courses

practice

  • SQL Fundamentals Interview Test
  • SQL Advanced Coding Test
  • All Practice Tests

resources

  • How to Become a Data Analyst
  • SQL Interview Questions
  • Data Analyst Salary Guide
  • Free Datasets for Practice
  • SQL vs NoSQL Guide
  • Data Analyst vs Data Engineer vs Data Scientist

employers

  • Enterprise Screening
  • AI Proctoring Demo
  • Volume Pricing
  • Employer Portal

company

  • About
  • Terms
© 2026 Topfolio. All rights reserved.Made with ❤️ for aspiring analysts
  1. Home
  2. /
  3. Practice
  4. /
  5. pandas DataFrame

pandas DataFrame Practice Questions

A pandas DataFrame is a labelled, two-dimensional table in Python, and most analysis with it comes down to four moves: select the rows and columns you need, group and aggregate them, merge in another table, and derive new columns without looping. Doing that vectorised, with whole-column operations instead of a Python for loop, is what keeps the code both short and fast. These questions run real pandas in the browser against seeded DataFrames, so the output you check is the actual frame.

What you will practice

  • •Select and filter with loc, iloc and boolean masks instead of chained indexing
  • •Aggregate with groupby().agg() and reshape the result with reset_index and pivot_table
  • •Join frames using merge with the right how= and on= arguments, and check the row count afterwards
  • •Replace row-by-row loops and apply() with vectorised column arithmetic and np.where
  • •Handle missing data with isna, fillna and dropna before the numbers reach a report

15 of 52 questions in this topic

  • Select a Single Columnbeginner
  • Select Multiple Columnsbeginner
  • Filter Rows by Conditionbeginner
  • Filter with Multiple Conditionsbeginner
  • Sort DataFrame by Columnbeginner
  • Get Top N Rowsbeginner
  • Count Rows and Columnsbeginner
  • Find Unique Valuesbeginner
  • Add a New Columnbeginner
  • Count Values per Categorybeginner
  • Calculate Basic Statisticsbeginner
  • Rename Columnsbeginner
  • Set a Column as Indexbeginner
  • Filter with isin()beginner
  • Create a DataFrame from Scratchbeginner