Skip to content

Instantly share code, notes, and snippets.

@Joshuaek
Created March 4, 2020 21:45
Show Gist options
  • Save Joshuaek/528f5552fefec3bdaaa0d77329564733 to your computer and use it in GitHub Desktop.
Save Joshuaek/528f5552fefec3bdaaa0d77329564733 to your computer and use it in GitHub Desktop.
class forecast:
def __init__(self, start_date, number_of_months):
self.start_date = start_date
self.number_of_months = number_of_months
self.months = pd.date_range('2020-01', periods=60, freq='M')
self.contracts = []
self.df = pd.DataFrame(index=self.months)
self.df['forecast_licences'] = np.zeros(number_of_months)
self.df['live_contracts'] = np.zeros(number_of_months)
self.df['total_sales'] = np.zeros(number_of_months)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment