I have pretty large data that my computer cannot stand to read all the data. So I have no choice but to select limited rows of the data. (I cannot read all the data and choose later. From the beginning I have to choose and read specific rows at the same time.) Also I don't know total rows in the data, cause it is too huge to open in my laptop. However I wanna select random rows, but I have no idea how to do that. I searched but all the solution is that read first, and choose later. Is there anyone who can help me?
import numpy as np
temp = []
temp = np.random.randint(low = 0, high=100000, size=5000)
temp will be selected rows that I will read.