删除芝加哥地图边界外的数据点

时间:2018-10-16 22:25:28

标签: dataset data-cleaning mining

我对数据挖掘和尝试使用Chicago Taxi数据集非常陌生。现在,我正在处理100万条记录,而我发现的数据点很少。 e。经度和纬度值超出了芝加哥地图的范围。现在,我要删除lon / lat值在地图之外的所有行。我试图使用Basemap库绘制地图,但没有找到任何方法来清除所有离群点。

以下是前25个经纬度值:

[41.965812, -87.655879]
[41.884987, -87.620993]
[41.944227, -87.655998]
[41.899602, -87.633308]
[41.980264, -87.913625]
[41.909496, -87.630964]
[41.901207, -87.676356]
[41.885281, -87.657233]
[41.884987, -87.620993]
[42.009623, -87.670167]
[41.880994, -87.632746]
[41.907492, -87.635760]
[41.944227, -87.655998]
[41.859350, -87.617358]
[41.906026, -87.675312]
[41.880994, -87.632746]
[41.880994, -87.632746]
[41.880994, -87.632746]
[41.899156, -87.626211]
[41.907520, -87.626659]
[41.946295, -87.654298]
[41.905858, -87.630865]
[41.901207, -87.676356]
[41.874005, -87.663518]
[41.922686, -87.649489]

有什么可能的解决方案?

0 个答案:

没有答案