from telecomModels.Connections import officecon
import pandas as pd
from telecomgis.LonLatGis import ModifyLonlat
cell=pd.read_sql(‘ORACL网元工参’,con=officecon().engineSourcesPerformance)
print(cell[[‘longitude’,‘latitude’]])
cell[‘lonlat’]=cell[[‘longitude’,‘latitude’]].apply(lambda x:ModifyLonlat().bd09_to_gcj02(x[‘longitude’],x[‘latitude’]), axis=1)
print(cell[‘lonlat’])
pandas 多列综合使用lambda
于 2020-12-25 15:25:51 首次发布