강의

멘토링

커뮤니티

Inflearn Community Q&A

dl2182182773's profile image
dl2182182773

asked

Getting started with Python data analysis using public data

[2/10] Load data, subset only the necessary data, and save as a csv file

질문

Written on

·

231

1

시도명에서 서울특별시만 데이터를 보고 싶으면 어떻게하나요??
다른데이터난 가져오지말고 오로지 시도명에서 서울특별시만의 데이터요
numpypandaspython

Answer 1

1

todaycode님의 프로필 이미지
todaycode
Instructor

안녕하세요.

데이터프레임이 df 라는 변수에 들어있다고 가정하면

df[df["시도명"] == "서울특별시"]  이렇게 가져오게 되면 "시도명"컬럼에서 "서울특별시"라는 값을 갖는 데이터만 가져옵니다. 

dl2182182773's profile image
dl2182182773

asked

Ask a question