[Python]pandas.cut - 데이터 범주화하기 / if문 쓰지않고 데이터 나누기
In [1]: import pandas as pd In [2]: #Tistory 관련 모듈이라 상관 없음. from IPython.core.display import display, HTML display(HTML("")) In [16]: #데이터 가져오기 https://www.kaggle.com/rojour/boston-results marathon_2017 = pd.read_csv("C://Users//82106//Desktop//boston-results//marathon_results_2017.csv") In [5]: marathon_2017.head() Out[5]: Unnamed: 0 Bib Name Age M/F City State Country Citizen Unnamed: 9 ... 25..