DateFrame df that I got from web-scraping :
- Date d'échéance : due date# date 12-10-2018
- Transaction : Transaction#float64 104.11
- Taux moyen pondéré : weighted average rate#2.3%
- Date de la valeur : value date#date 11-09-2018
- maturite : maturity (calculated)# 27 days
I should add column to my dataframe df called " Taux act" :
- If Maturity 'maturite' > 1 YEAR : Taux act = weighted average rate 'Taux moyen pondéré'
- If Maturity < 1 YEAR : Taux act = ((1 + weighted average rate maturity)/360)**(365/maturity)-1
Aucun commentaire:
Enregistrer un commentaire