I am now trying to deal with a large csv (2 million rows) in matlab r2016b mac version. One of the small part of csv is attached as below.
user_id,video_id,session,new_speed,old_speed,new_time,old_time,event_type,event_time
a74fe6d4812fa93a1afa1a6a334ebdda,af7f974d395a4adddc8ab17a83996073,892d85cfeea8298fb7ca8755ac090e90,,,,,play_video,2015-04-06 22:20:58.928268
a74fe6d4812fa93a1afa1a6a334ebdda,af7f974d395a4adddc8ab17a83996073,892d85cfeea8298fb7ca8755ac090e90,,,161.0,72.581,seek_video,2015-04-06 22:20:58.879149
a74fe6d4812fa93a1afa1a6a334ebdda,7fb29805973a8a396c6de3faa8290ac1,892d85cfeea8298fb7ca8755ac090e90,,,,,play_video,2015-04-06 22:24:14.988693
a74fe6d4812fa93a1afa1a6a334ebdda,9ace07b312f206ef7af2f48188360b16,892d85cfeea8298fb7ca8755ac090e90,,,,,load_video,
What I want to do is to is
- read the csv file into matlab;
- map the user id and video id into simple number id;
- delete the session id.
I have tried so many methods but could not get the result I want. csvread is unable to deal with this csv file since there are some non-numerical items inside, while I am not familiar with fopen and always get some strange errors like all data come into a single cell. Is there any solution to this issue?