title: Fitting a random curve in Python
body: <p>Recently I have started to model pandemics as a part of personal project work. I am trying to do this in Python</p>
  
  <p>One of the requirements that I have come across is how to perform curve fitting in Python. I have come across some articles which explain how to perform curve fitting for exponential or linear functions using scipy library. But in pandemic the growth curve could be either exponential, or linear</p>
  
  <p>How do I perform a curve fit for any random data in Python without knowing if it will be linear or exponential ?</p>