도심 중심점에서 folium 위치 생성하기
Urban Residents 이웃 지역의 folium 지도를 만들려면, folium에 맞게 형식화된 좌표 쌍 위치를 먼저 만들어야 해요.
이 연습은 강의의 일부입니다
Python으로 지리공간 데이터 시각화하기
연습 안내
urban_polygon의 head를 출력하세요.center의 첫 번째 값을urban_center로 저장하고urban_center를 출력하세요. 이 단계는 이미 완료되어 있어요.- 경도와 위도의 순서를 뒤집어
urban_center에서 배열을 만드세요. 이름은urban_location으로 하세요. urban_location을 출력하세요. 이 단계는 이미 완료되어 있어요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Print the head of the urban_polygon
print(urban_polygon.____())
# Create urban_center from the urban_polygon center
urban_center = ____.____[0]
# Print urban_center
print(urban_center)
# Create array for folium called urban_location
urban_location = [urban_center.____, urban_center.____]
# Print urban_location
print(urban_location)