transbigdata.traj_clean_redundant
- transbigdata.traj_clean_redundant(data, col=['VehicleNum', 'Time', 'Lng', 'Lat'])
Delete the data with the same information as the data before and after to reduce the amount of data. For example, if several consecutive data of an individual have the same information except for the time, only the first and last two data can be kept
- Parameters:
data (DataFrame) – Data
col (List) – The column name, in the order of [‘Vehicleid, Time’]. It will sort by time, and then determine the information of other columns besides the time
- Returns:
data1 – Cleaned data
- Return type:
DataFrame