# Setting row/col size

import openpyxl as xl
wb = xl.Workbook()
sheet = wb.active

sheet['A1'] = 'Tall row'
sheet['B2'] = 'Wide column'

# Specify row/col as list 
sheet.row_dimensions[1].height  = 70
sheet.column_dimensions['B'].width = 20

wb.save('dimensions.xlsx')
3edb68ee6d662636bfbf38d2484c4222c9fcbccf
<mask token>

<mask token>
wb.save('dimensions.xlsx')

<mask token>
wb = xl.Workbook()
sheet = wb.active
sheet['A1'] = 'Tall row'
sheet['B2'] = 'Wide column'
sheet.row_dimensions[1].height = 70
sheet.column_dimensions['B'].width = 20
wb.save('dimensions.xlsx')

import openpyxl as xl
wb = xl.Workbook()
sheet = wb.active
sheet['A1'] = 'Tall row'
sheet['B2'] = 'Wide column'
sheet.row_dimensions[1].height = 70
sheet.column_dimensions['B'].width = 20
wb.save('dimensions.xlsx')

# Setting row/col size

import openpyxl as xl
wb = xl.Workbook()
sheet = wb.active

sheet['A1'] = 'Tall row'
sheet['B2'] = 'Wide column'

# Specify row/col as list 
sheet.row_dimensions[1].height  = 70
sheet.column_dimensions['B'].width = 20

wb.save('dimensions.xlsx')