Pattern
1class Pattern: 2 """ 3 Pattern class used to represent all data related to the found patterns 4 """ 5 6 def __init__(self, pattern_type, dataframe_segment, company_name, starting_date, ending_date, tendency): 7 self.pattern_type = pattern_type 8 """str: Type of the given pattern""" 9 self.dataframe_segment = dataframe_segment 10 """str: Name of the company where the pattern was found""" 11 self.company_name = company_name 12 """dataframe: Sataframe where the pattern was found""" 13 self.starting_date = starting_date 14 """str: Starting date of the pattern found""" 15 self.ending_date = ending_date 16 """str: Ending date of the pattern found""" 17 self.tendency = tendency 18 """Boolean: tendency of the pattern found (achieved or not)""" 19 20 def __str__(self): 21 """Transforms the object to string""" 22 return f'[{self.pattern_type}, {self.starting_date}, {self.ending_date}]'
class
Pattern:
2class Pattern: 3 """ 4 Pattern class used to represent all data related to the found patterns 5 """ 6 7 def __init__(self, pattern_type, dataframe_segment, company_name, starting_date, ending_date, tendency): 8 self.pattern_type = pattern_type 9 """str: Type of the given pattern""" 10 self.dataframe_segment = dataframe_segment 11 """str: Name of the company where the pattern was found""" 12 self.company_name = company_name 13 """dataframe: Sataframe where the pattern was found""" 14 self.starting_date = starting_date 15 """str: Starting date of the pattern found""" 16 self.ending_date = ending_date 17 """str: Ending date of the pattern found""" 18 self.tendency = tendency 19 """Boolean: tendency of the pattern found (achieved or not)""" 20 21 def __str__(self): 22 """Transforms the object to string""" 23 return f'[{self.pattern_type}, {self.starting_date}, {self.ending_date}]'
Pattern class used to represent all data related to the found patterns
Pattern( pattern_type, dataframe_segment, company_name, starting_date, ending_date, tendency)
7 def __init__(self, pattern_type, dataframe_segment, company_name, starting_date, ending_date, tendency): 8 self.pattern_type = pattern_type 9 """str: Type of the given pattern""" 10 self.dataframe_segment = dataframe_segment 11 """str: Name of the company where the pattern was found""" 12 self.company_name = company_name 13 """dataframe: Sataframe where the pattern was found""" 14 self.starting_date = starting_date 15 """str: Starting date of the pattern found""" 16 self.ending_date = ending_date 17 """str: Ending date of the pattern found""" 18 self.tendency = tendency 19 """Boolean: tendency of the pattern found (achieved or not)"""