Code given on itveristy topic is giving array index out of exception

apache-spark
scala

#1

Hello Team
This is regarding the code given on the link :- http://www.itversity.com/topic/exercise-scala-collections/ where in we are trying to find the number of “None of the above (NOTA)” for each state from the election data set . When i am trying to execute the code given on the portal it is giving array index out of bound exception . Can anyone please suggest on this .


#2

@pragtyag

please share the screenshot of the code u have tried