transbigdata.clean_outofshape

transbigdata.clean_outofshape(data, shape, col=['Lng', 'Lat'], accuracy=500)

Input the GeoDataFrame of the study area and exclude the data beyond the study area

Parameters:
  • data (DataFrame) – Data

  • shape (GeoDataFrame) – The GeoDataFrame of the study area

  • col (List) – Column name of longitude and latitude

  • accuracy (number) – The size of grid. The principle is to do the data gridding first and then do the data cleaning. The smaller the size is, the higher accuracy it has

Returns:

data1 – Data within the scope of the study

Return type:

DataFrame