folder = "C:\Users\Martin\Downloads\WL tags"
df = pd.read_csv("Tags para Mandar WL.csv", header=0, sep = ",")
for i, g in df.groupby('Inventory Name'):
g.to_csv(folder, '{}.csv'.format(i.split('/')[0]), index=False)
I want to save my created files in the following folder and I can not do it since I get this error:
IOError: [Errno 13] Permission denied: 'C:\Users\Martin\Downloads\WL tags'