transbigdata.sample_duration

transbigdata.sample_duration(data, col=['Vehicleid', 'Time'])

Calculate the data sampling interval.

参数:
  • data (DataFrame) – Data

  • col (List) – The column name, in the order of [‘Vehicleid’, ‘Time’]

返回:

sample_duration – A Series with the column name duration, the content is the sampling interval of the data, in seconds

返回类型:

DataFrame