I am new to Pyhthon, and have been stuck with some work. I have a .csv file, with 7 columns. The first column contains path to certain files, eg:
Name
a/b/c.xyz
m/n/o/p.sad
p/q/r/s/t/u.asas
I need to separate the directories(path) to the files, and owners being 'a', 'm', 'p' for their respective rows. I have imported the .csv file using pandas. I have read that os.path could be of some help. Any suggestions would be much appreciated.Also, the data I'm working on is pretty big, so need to take care about the overhead in executing the script.
Thanks.