I have a CSV file which has 78000 columns. I am trying to select the columns 2-100, 102-200, and the last 300 columns. The rest of the columns need to be skipped.
I have used numpy.loadtxt to select range of columns:
numpy.loadtxt(input_file_name, delimiter=",", skiprows = 1, usecols=range(1,99))
How can we select blocks of columns doing something similar, like:
numpy.loadtxt(input_file_name, delimiter=",", skiprows = 1, usecols=(range(1,99),range(101,199),range(74999,77999)))