Created
March 4, 2020 21:45
-
-
Save Joshuaek/528f5552fefec3bdaaa0d77329564733 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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