Hi!
I am quite new at python overall and i've got a new assignment at my job to export data to a excel-sheet as a report.

There is already a pdf-report that looks like this..
I want to extract the same data to excel, however google just confuses me since it tells me only to download other modules for assistance..

Anyone that can give me a few pointers to start or mby some sort of form/guide to accomplish this issue of mine?

rgrds,
Chris

PDF-REPORT - i deleted the design code since I dont think its necessary.

Code:
def PrintReportToPDF(p, marginSEKDictSorted, dealDict, fxRatesDict):
    
    p.spacer_mm(3)
    print dt.now().string('[%H:%M:%S]'), "Number of reported deals:", len(dealDict)
    t = pdfEngine.table(len(dealDict)+1,14)
    
  
    row_nr = 1

    for key, value in marginSEKDictSorted:
        
        row = dealDict[key]

        for subrow in row:
            row[subrow] = unicode(row[subrow])
            row[subrow] = row[subrow].replace('','A')
            row[subrow] = row[subrow].replace('','A')
            row[subrow] = row[subrow].replace('','O')
            row[subrow] = row[subrow].replace('','a')
            row[subrow] = row[subrow].replace('','a')
            row[subrow] = row[subrow].replace('','o')

##        print row['TRADE_DATE'],row['MARGIN_BRANCH_ID'],row['MARGIN_BOOK'],row['DLR_ID'],row['DEAL_NO'],row['DEAL_TYPE'],row['CPTY_ID']
##        print row['COUNTER_AMT'],row['DEAL_MARGIN'],row['COUNTER_CCY'],row['DEAL_MARGIN'],row['INTERNAL_MSG']
        t.addData((row_nr,0),str(row['TRADE_DATE']))
        t.addData((row_nr,1),str(row['MARGIN_BRANCH_ID']))
        t.addData((row_nr,2),unicode(row['MARGIN_BOOK']))
        t.addData((row_nr,3),row['DLR_ID'])
        t.addData((row_nr,4),str(row['DEAL_NO']))
        t.addData((row_nr,5),str(row['DEAL_TYPE']))
        t.addData((row_nr,6),str(row['CPTY_ID']))
        t.addData((row_nr,7),format1000Sep(float(row['COUNTER_AMT']),0)) ## ctr amt
        t.addData((row_nr,8),format1000Sep(float(row['DEAL_MARGIN']),0)) ## Margin
        t.addData((row_nr,9),str(row['COUNTER_CCY']))
        t.addData((row_nr,10),format1000Sep(float(row['DEAL_MARGIN'])*float(fxRatesDict[row['COUNTER_CCY']]),0))
        t.addData((row_nr,11),round(abs(float(row['DEAL_MARGIN']) / float(row['COUNTER_AMT']) * 10000),0)) ## Should count BPS for existing rows / Christopher
        t.addData((row_nr,12),str(row['INTERNAL_MSG']))

row_nr += 1