import pandas as pd
import geopandas as gpd
from shapely.geometry import Point
#df = pd.read_csv(‘./4g_table.csv’,delimiter=‘|’)
df = pd.read_csv(‘./all.csv’)
buildings = gpd.read_file(‘buildings.shp’)
df[‘is_inside’] = [buildings.geometry.contains(Point(lon, lat))[0] for lon, lat in zip(df[‘flong_u’], df[‘flat_u’])]
#print(df)
df=df[df[‘is_inside’]==True]
df.to_csv(‘./output_true.csv’,index=False)