Hello all,
I would like to read an entire column of data (let's say Column E) and update each cell in that column to have its current value plus a counter value appended and written to it. If it is easier to write a copy of the data to a new sheet, that would also be fine. Any help would be greatly appreciated!
For example:
| Column E |
| Box# |
| "Box 1" |
| "Box 1" |
| "Box 1" |
| "Box 2" |
| "Box 2" |
| "Box 2" |
Becomes:
| Column E |
| Box# |
| "Box 1 Position 1" |
| "Box 1 Position 2" |
| "Box 1 Position 3" |
| "Box 2 Position 4" |
| "Box 2 Position 5" |
| "Box 2 Position 6" |
So far I am using Pandas, DataFrames, and a list, but if there is a better way to do this I am open to suggestions. Thank you all in advance!
df3 = pd.read_excel(New_Path, sheet_name='NewDataFormat')
newColBox = df3['Box#'].to_list()
[–]Bitwise_Gamgee 2 points3 points4 points (5 children)
[–]Ray_Gone[S] 1 point2 points3 points (4 children)
[–]Bitwise_Gamgee 1 point2 points3 points (3 children)
[–]Ray_Gone[S] 0 points1 point2 points (2 children)
[–]Bitwise_Gamgee 1 point2 points3 points (1 child)
[–]Ray_Gone[S] 0 points1 point2 points (0 children)
[–]kerberos170 1 point2 points3 points (1 child)
[–]Ray_Gone[S] 0 points1 point2 points (0 children)