I have thousands of files I need to do this for so I am trying to avoid doing this manually for each file. The only identifying characteristics in these files is the file name so I need to create a column based on the file name so they can be identified when I combine the files later. The file name contains a placeholder then the boat name then the net number separated by an underscore. My data looks like this:
file name = 3_Whip_1.1.csv (Boat = Whip, Net = 1.1)
Time Pred 11:00 10.2 12:00 8.4 13:00 9.6 I would am trying to get the data to look like this:
Boat Net Time Pred Whip 1.1 11:00 10.2 Whip 1.1 12:00 8.4 Whip 1.1 13:00 9.6 Any help would be greatly appreciated.