I am still new to python and have been asked to reformat a large spreadsheet. Trying to follow this system: https://i.stack.imgur.com/24Trp.png
I want to remove all the spaces in each cell from columns L & M. Then, I need commas to separate the values. I'm unsure how to do the latter since I need to keep the colons (TL:Accepted,AL:Accepted) as one value and then separate them from the next value with a colon. I have some experience with pandas, which could work in conjunction with openpyxl.
Here is my code so far:
# imports
import openpyxl as py
from openpyxl import Workbook, load_workbook
# create a workbook and active worksheet
wb = load_workbook(r'MERGEDSHEETS.xlsx')
print(wb.sheetnames)
ws = wb.active
for sheet[L2:, M2:]:
py.strip()
wb.save(r'MERGEDSHEETSv2.xlsx')