Now I have a huge data ndarray as below, which contains 200 million rows.
[['5040' '5' 'load_video' '2015-03-30 12:31:27.727452'
['5040' '44' 'load_video' '2015-03-30 12:33:26.764407']
['5040' '34' 'load_video' '2015-03-30 12:31:26.102226']
...,
['3076' '1' 'play_video' '2015-05-31 05:52:33.395859']
['3076' '1' 'seek_video' '2015-05-31 05:52:36.941808']
['1512' '8' 'load_video' '2015-05-31 07:19:56.715000']]]
What I want to do is to delete all rows that contain 'load_video" string. Is there any solution to do this?
PS: What I want to do next is to sort the rows according to the first column, but since it's string type and I found it impossible to use astype to only change the first row into int, what can I do?
These might be some very simple questions, but since I am new to python, your answers would help me a lot. Thanks!