Exercise: Data Extraction
Explore how to extract specific sub-arrays from a two-dimensional JavaScript array. This lesson helps you understand array slicing and index validation to safely manipulate data, preparing you for tasks like inputting data subsets into models.
We'll cover the following...
We'll cover the following...
Task
A data scientist wants to create a model where the input is a subset of data from a large data set. Because she is busy manipulating other variables for the model, she asked you to do a small task related to data extraction.
Your task is to extract a subset of the array from a two-dimensional array containing the stored data. ...