def get_feature(self, daily_sale, menu_item_index, weather_item, with_days=False): if with_days: return [ menu_item_index, weather_item[Constants.JSON_TEMP], Constants.get_weather_type(weather_item) ] else: return [ self.get_day_of_week(daily_sale), menu_item_index, weather_item[Constants.JSON_TEMP], Constants.get_weather_type(weather_item) ]