The map function creates an array of arrays and the split function defines the delimiter in the dataset. Refer to the below screenshot![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA2Mjg2Njg4MSwiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.-WiF-tG16qzezSoO-AjP4IXjiUK9kacHqOiKPGUhwcY)
Since the dataset was delimited by space, we wrote the split function as - split(" "). If our dataset was delimited by tab, then we would have to specify "\t" in the split function.