I have a code for create groups with CSV data and create new files with that groups too!
I read my csv file and then work with that. The problem is when my funtion w
You must specify a groupby clause, so pandas knows what to group by. This should work:
groupby
for i, g in df.groupby('Inventory'): g.to_csv('{}.csv'.format(i.split('/')[0]), index=False)