On this page
article
Pandas Exercise #11
Practice pandas — exercise 11 of 30.
Topic: Pandas
Difficulty: Intermediate
Problem
Write a solution for Pandas Exercise #11:
Implement a function solve_pandas_11(data) that processes the input according to pandas concepts from the curriculum.
Example input: data = [pandas_example_11]
Expected: A transformed result demonstrating pandas skills.
Constraints
- Use idiomatic Python 3.10+
- Handle empty input gracefully
- Do not mutate input unless specified
Hint
Hint
Review Pandas exercises and the related chapter in the Learning Path. Consider edge cases: empty collections, None, zero, negative numbers.
Test Yourself
# Write tests before implementing
assert solve_pandas_11([]) is not None # define expected behavior
Next exercise: Pandas Exercise #12