#Covnvert the dataframe into the prophet expected format. apple.rename(columns={\'close\': \'y\', \'date\': \'ds\'},inplace=True) apple[\'ds\'] = pd.to_datetime(apple[\'