transbigdata.sample_duration
- transbigdata.sample_duration(data, col=['Vehicleid', 'Time'])
Calculate the data sampling interval.
- Parameters:
data (DataFrame) – Data
col (List) – The column name, in the order of [‘Vehicleid’, ‘Time’]
- Returns:
sample_duration – A Series with the column name duration, the content is the sampling interval of the data, in seconds
- Return type:
DataFrame