[파이썬으로 데이터 주무르기] 3강 - 내가 몰랐던 코드 모음 (4) - tqdm 모듈과 지도 시각화


[파이썬으로 데이터 주무르기] 3강 - 내가 몰랐던 코드 모음 (4) - tqdm 모듈과 지도 시각화

1. tqdm 모듈 설치 (1) anaconda prompt에서 설치 conda install -c cond-forge tqdm (2) 적용 from tqdm import tqdm_notebook price = [] address = [] for n in tqdm_notebook(df.index): req = Request(df['URL'][n], headers = headers) html = urlopen(req) soup_tmp = BeautifulSoup(html, 'lxml') gettings = soup_tmp.find('p', 'addy').get_text() price.append(gettings.split()[0][:-1]) address.append(' '.join(gettings.split()[1:-2])) <상태 표시바> <상태 완료바> 2. 기존 데이터프레ㅣ임에 price랑 address 정보 저장 df['Price'] = price df['Address'] =...


#folium #tqdm #넘파이 #데이터분석 #파데쥬 #파이썬으로데이터주무르기 #판다스

원문링크 : [파이썬으로 데이터 주무르기] 3강 - 내가 몰랐던 코드 모음 (4) - tqdm 모듈과 지도 시각화