Question: Q 1 8 : Note: Before you begin working on this question, please note that CodeGrade has a 1 GB RAM limit . If you
Q:
Note: Before you begin working on this question, please note that CodeGrade has a GB RAM limit If you see an Exit code when submitting your assignment, it is probably due to this RAM limit and previous students had an issue with this question causing too much memory usage. The biggest thing to think about is to only use the tables that you need to answer for this question. For instance, you do not need any of the minifigs data since this is not needed for the output and the merging of this data could cause the number of rows to "explode" in terms of the total count. I understand that this can be annoying that we have to work around CodeGrade's limitations but it is good practice in memory management.
You should only need to merge the following datasets for this answer so as to not go above the RAM limit: themes, sets, inventories, inventoryparts, parts, and colors
Create a function called setparts that takes as input the set number as a string and version number as an integer and outputs a DataFrame with each part in the set.
The DataFrame should have the following columnscolumn names: setnum, version, namesets, year, namethemes, partnum, namepart, namecolor,quantity,isspare.
The Data should be sorted by partnum and then namecolor.
The index should go from to n
The datarames are in the image.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
