Sep-17-2020, 11:49 PM
If you want to drop first 985 rows, just do:
Finally, it is not pep8-compliant to use capitalized letters for variable names.
FILE = FILE[985:, ...]If you want to drop first 985 rows and convert the array to integer type do:
FILE = FILE[985:, ...].astype(int) # maybe astype(np.int64), astype(np.int16) choose appropriate one.If you still want to use delete, you can do the same as follows:
FILE = np.delete(FILE, range(985), axis=0)Note, that the second argument is an array of row numbers to delete.
Finally, it is not pep8-compliant to use capitalized letters for variable names.