Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- geopandas
- 완결 웹툰
- 웹툰
- 네이버 완결 웹툰
- python
- 완결
- 제주도
- 제임스 클리어
- 사랑
- 커피
- 진심
- 빅데이터 분석기사
- 서귀포
- pandas
- 만화 영화
- 네이버
- 액션
- 습관
- QGIS
- 애니메이션
- 빅데이터 분석기사 필기
- 산책
- 로맨스
- 넷플릭스
- 가족
- 이범선
- 네이버 웹툰
- 영화
- 아주 작은 습관의 힘
- 이기적 출판사
Archives
- Today
- Total
목록geopandas (2)
JuJuKwakKwak
Geopandas) shp 파일 불러오고 100개씩 자르기
version 1 import os import geopandas as gpd for f_name in os.listdir('./'): if f_name.endswith('.shp'): shp_file = gpd.read_file(f_name, encoding='euc-kr') bin_list = [] for i in range(0, len(shp_file), 100): bin_list.append(shp_file.iloc[i:i+100, :]) for j in range(len(bin_list)): bin_list[j].to_file(f'저장할 파일 이름_{j+1}.shp', encoding='euc-kr') version 2 import os import geopandas as gpd for f_na..
Data Science/코드 관련 모음
2022. 11. 29. 11:31
GeoPandas) shp 파일 불러오고 새로운 열 생성하고 저장하기
import os import geopandas as gpd for f_name in os.listdir('./'): if f_name.endswith('.shp'): shp_file = gpd.read_file(f_name, encoding='utf-8') shp_file['열'].fillna(0.0, inplace=True) shp_file['새로운 열'] = shp_file['열'] / 100.0 shp_file.to_file('새로운 파일 이름.shp')
Data Science/코드 관련 모음
2022. 9. 15. 16:25