contoh : Mengelompokan data berdasarkan City
#import library pandas import pandas as pd #load data df = pd.read_csv('http://bit.ly/uforeports') #print data df.head()
#mengelompokan data berdasarkan city data = df.groupby('City').count()
#mengelompokan data berdasarkan city data = df.groupby(['City', 'State']).count()
0 Response to "Python Pandas | Data Manipulasi dengan .groupby()"
Posting Komentar