Last answered:

17 Nov 2022

Posted on:

04 Nov 2022

0

temporary fill - why do we addd 1?

when we were setting up the temporary fill varaible why did we add 1 to it?

1 answers ( 0 marked as helpful)
Posted on:

17 Nov 2022

4

We are filling all NANs with a unique number that should not be present in the dataset and we should be able to identify that number whenever we want. But we cannot use any random number as a temporary replacement for the NANs because we cannot say that the random we’ve chosen is not present in the dataset. So, we choose the maximum number of all the numbers in the dataset and add one to it so that it will be unique and we can be sure that the number is not present in the dataset.

Submit an answer