transbigdata.clean_outofbounds

transbigdata.clean_outofbounds(data, bounds, col=['Lng', 'Lat'])

The input is the latitude and longitude coordinates of the lower left and upper right of the study area and exclude data that are outside the study area

Parameters:
  • data (DataFrame) – Data

  • bounds (List) – Latitude and longitude of the lower left and upper right of the study area, in the order of [lon1, lat1, lon2, lat2]

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

Returns:

data1 – Data within the scope of the study

Return type:

DataFrame