# How do I calculate from discountfactor to zerorate in Python using Quantlib [closed]

I knew rate to discountfactor

InterestRate.discountFactor(yearFraction)


I want to calculation discountfactor to zerorate

## closed as off-topic by skoestlmeier, amdopt, byouness, Helin, AdBApr 30 at 8:35

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Basic financial questions are off-topic as they are assumed to be common knowledge for those studying or working in the field of quantitative finance." – skoestlmeier, amdopt, byouness, Helin, AdB
If this question can be reworded to fit the rules in the help center, please edit the question.