.copy() in train, validation and test input and targets

why is .copy() needed in creating train, validation and test input and targets

Because if we don’t do that…then all the changes done in any of datasets would reflect on the original dataset and we don’t want that to happen