Question: Question 1 . Set job _ titles to a table with two columns. The first column should be called Organization Group and have the name
Question Set jobtitles to a table with two columns. The first column should be called Organization Group and have the name of every "Organization Group" each listed only once in this column, and the second column should be called Jobs with each row in that second column containing an array of the names of all the job titles within that "Organization Group". Don't 'worry if there are multiple of the same job titles. Points
Hint : Think about how group works: it collects values into an array and then applies a function to that array. We have defined two functions below for you, and you will need to use one of them in your call to group.
Hint : You might need to rename one of the columns.
: # Pick one of the two functions defined below in your call to group. def firstitemarray:
'Returns the first item'
return array.item
def fullarrayarray:
'Returns the array that is passed through'
return array
# Make a call to group using one of the functions above when you define jobtitles
jobtitles sfselectOrganization Group", "Job"
jobtitles
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
