Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a function Percentages _ CSA using a LAMBDA that inputs a column of names ( e . g . , season names ) and
write a function PercentagesCSA using a LAMBDA
that inputs a column of names eg season names and produces a row of percentages for the
alphabetically sorted unique names. The percentages specify the fraction of total rows containing
a unique name eg Winter Test your function with the Season data in the Festivals worksheet.
Notice that the length of the row of percentages depends on the data and needs to be computed
dynamically. Use two implementations to write your function PercentagesCSA, the first using
FILTER and the second using the function PercentagesfromtableCSA given below. We
give you almost a complete FILTER solution because FILTER will be covered in detail in the next
topic. Call the function with the FILTER implementation PercentagesFILTERCSA. Call the
function with the table as an intermediate result PercentagestableCSA.
LAMBDANamesLET
SortedUnique,SORTUNIQUEUNKNOWN
CountOne,LAMBDAsROWSFILTERNamesNamess
CountsFILTER,MAPSortedUnique UNKNOWN
Percentages,CountsFILTERSUMUNKNOWN
Show,IFERRORHSTACKSortedUniqueCountsFILTER,Percentages
Result,TRANSPOSECHOOSECOLSShow
ResultWinter;"Summer";"Winter";"Spring";"Fall";"Winter";"Summer"
You complete this LAMBDA by changing UNKNOWN UNKNOWN UNKNOWN to the
correct names. For example, UNKNOWN needs to be the formal argument Names.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started