Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Q17: Create a function called sets_from_minifig that takes as input a minifig number (as a string) and returns a list of sets a...Asked by Ccolloh
**Q17:**
- Create a function called `sets_from_minifig` that takes as input a minifig number (as a string) and returns a list of sets a minifig has appeared in.
- Return a DataFrame (sorted by `set_num` and then by `version`) with the following columns: `set_num`, `version`,`name_sets`, `fig_num`, `fig_name`.
- The index should go from 0 to n-1.
**Code Check:** Call your `sets_from_minifig()` function on one of the Lego Friends minifigs, Andrea, who has figure number: `fig-001039`. Your function should return a DataFrame that contains the following sets:
- Andrea on the Beach
- Birthday Party
- City Park Cafe
- Create a function called `sets_from_minifig` that takes as input a minifig number (as a string) and returns a list of sets a minifig has appeared in.
- Return a DataFrame (sorted by `set_num` and then by `version`) with the following columns: `set_num`, `version`,`name_sets`, `fig_num`, `fig_name`.
- The index should go from 0 to n-1.
**Code Check:** Call your `sets_from_minifig()` function on one of the Lego Friends minifigs, Andrea, who has figure number: `fig-001039`. Your function should return a DataFrame that contains the following sets:
- Andrea on the Beach
- Birthday Party
- City Park Cafe
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.