Как записать кадр данных pandas в именованный диапазон в Excel?

import pandas.util.testing as tm
from openpyxl import Workbook

# Create named range called 'TestRange'
wb = Workbook()
new_range = openpyxl.workbook.defined_name.DefinedName('TestRange', attr_text='Sheet!$A$1:$C$2')
wb.defined_names.append(new_range)

# Create dummy 2x3 dataframe
tm.N, tm.K = 2, 3
df = tm.makeDataFrame()

# Write dateframe to 'TestRange'
ws = wb.active
# I need something along those lines
ws['TestRange'].value = df.values
0
Andi