나는 내가 더 이상하게 정의한 값의 범위 사이에서 경도와 위도를 갖는 모든 점을 추출하려고했습니다. 이러한 값은 데이터 프레임에 저장됩니다.
Latitude = 10
Longitude = 10
Lat_min = Latitude - 0.5
Lat_max = Latitude + 0.5
Lon_min = Longitude - 0.5
Lon_max = Longitude + 0.5
Df_lat_lon = Df[(Df['Latitutedx100'] >= Lat_min) & (Df['Latitutedx100'] <= Lat_max)]
& Df[(Df['Longitudex100'] >= Lon_min) & (Df['Longitudex100'] <= Lon_max)]
아직 해결책이없는 것처럼 보이는 드문 오류를 반환했습니다 (따라서 이름).
NotImplementedError: couldn't find matching opcode for 'and_bdd'
누구든지 "opcode"와 'and_bdd'에 대해 조금 더 알고 있는지 알고 싶습니다.
무슨 의미입니까?
참고 : 작업을 수행하는 올바른 방법은 다음과 같습니다.
Df_lat_lon = Df[(Df['Latitutedx100'] >= Lat_min) & (Df['Latitutedx100'] <= Lat_max)
& (Df['Longitudex100'] >= Lon_min) & (Df['Longitudex100'] <= Lon_max)]
대신 이것을 시도 할 수 있습니다.
Df_lat_lon = Df[(Df.Latitutedx100.between(Lat_min, Lat_max)) & (Df.Longitudex100.between(Lon_min, Lon_max))]
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다