transbigdata.id_reindex_disgap

transbigdata.id_reindex_disgap(data, col=['uid', 'lon', 'lat'], disgap=1000, suffix='_new')

Renumber the ID columns of the data,If two adjacent records exceed the distance, the number is the new ID

Parameters:
  • data (DataFrame) – Data

  • col (str) – Name of the ID column to be re-indexed

  • disgap (number) – If two adjacent records exceed this distance, the number is the new ID

  • suffix (str) – The suffix of the new column. When set to False, the former column will be replaced

Returns:

data1 – Renumbered data

Return type:

DataFrame