Pandas-mnist dataset

at last of the video there is usage of random_state=5

why it is used?

Hey @Sreshth123,

Random_state, as the name suggests is used for initializing the internal random number generator, which will decide the splitting of data into train and test indices in your case.

In simpler words, let’s say If you choose random_state = 42 then the data received after the split is X then if you again choose random_state = 42 you will get the same data X.