apply1 pandas 판다스 기초 19 groupby, relabeling, aggregation, transform, apply, stack # Pandas GroupBy Operations ## Understanding GroupBy objects import pandas as pd titanic = pd.read_csv('titanic.csv') titanic.head() ''' survivedpclasssexagesibspparchfareembarkeddeck 003male22.0107.2500SNaN 111female38.01071.2833CC 213female26.0007.9250SNaN 311female35.01053.1000SC 403male35.0008.0500SNaN ''' titanic.info() ''' RangeIndex: 891 entries, 0 to 890 Data columns (total 9 columns): #.. 2022. 8. 12. 이전 1 다음