I'm iterating through the column A. Inside this column I'm using two functions to unicode values.
# -*- coding: utf-8 -*-
from django.template import defaultfilters
from unidecode import unidecode
import openpyxl
wb = openpyxl.load_workbook('sheet.xlsx', use_iterators=True)
sheet = wb.get_sheet_by_name('Sheet1')
translated = []
for row in sheet.iter_rows('A2:A74'):
for cell in row:
if cell.value is not None:
defaultfilters.slugify(unidecode(cell.value))
translated.append(defaultfilters.slugify(unidecode(cell.value)))
It all works so far, but now I'd like to paste these "converted" values to column B with the same range B2-B74. Has anyone would help me with this code to solve my problem ? I was "googling" but I didn't find solution so far...