Jan-16-2018, 08:35 AM
(This post was last modified: Jan-16-2018, 08:35 AM by digitalmatic7.)
I can't be much help since my python isn't great, but I can offer a few snippets of code that may be useful..
df.insert(12, 'Column Name:', "") # insert new blank column df.insert(13, 'Column Name:', "") # insert new blank column df.iloc[1, 12] = 'Data here' # write to cellNot sure if it would work, but I'd try something like:
counter = 2 list_total = len(get total of items in column) df.iloc[1, 12] = '98383' while counter <= list_total: increment = counter df.iloc[counter, 12] = '98383' + increment counter = counter + 1