Practice Test Geeks home

Data Science with Python Pandas DataFrame Operations Questions and Answers

Given a Pandas DataFrame named `sales`, which of the following code snippets correctly calculates the total sales for each 'Region' by summing the 'Sales' column?

Select your answer