Код: Выделить всё
data = pd.read_csv('09.csv',sep=',', header='infer')
test = data[data["Title"].str.contains('xMS::001|iMS::000_Restart_ILASC_Implementation', na=False)]
test.loc[:, 'Due Date'] = pd.to_datetime(test['Due Date'], errors='coerce')
test2=test.sort_values(by=['Due Date'], ascending=False)
#print(tasks)
with pd.ExcelWriter('v34.xlsx', engine='openpyxl', mode='a',if_sheet_exists='overlay') as writer:
test2.to_excel(writer, index=False, startrow= 15, startcol=1)
Подробнее здесь: https://stackoverflow.com/questions/790 ... ction-work