I’m trying to get different groups from a grouped dataframe in pandas, but I’m getting an error.
Here’s the code:
import pandas as pd
table = pd.read_csv("April24_HD_T2_MMStack_Default_edges.csv")
table.drop(table.index[0:3], inplace = True)
table.groupby('TRACK_ID', sort = False)
zero = table.get_group('0')
The console outputs the following error:
‘DataFrame’ object has no attribute ‘get_group’
Any ideas about what I’m doing wrong?