서울시 구별 cctv 현황 분석을 활용해서 Pandas의 기본 기능과 사용법 학습하기. csv 파일로 변경하고 저장하기 인코딩 csv 다시 저장 후 데이터 확인 # cctv 설치 연도 데이터df_years = df[df['구분'] != '계'].set_index('구분').drop(columns=['총 계'])# 각 지역구별 최댓값 찾기max_year = df_years.idxmax(axis=1) #최댓값 연도max_count = df_years.max(axis=1) # 최댓값 설치 개수df_max = pd.DataFrame({ '최다 설치 연도': max_year, '최다 설치 개수': max_count})print(df_max)>>