import pandas as pd
import numpy as np
from fbprophet import Prophet
import matplotlib.pyplot as plt

df = pd.read_csv('prices2pages.csv')
df['y'] = np.log(df['y'])

df.head(n=3000)
print(df.head(n=3000))

m = Prophet()
m.fit(df)


future = m.make_future_dataframe(periods=60)
future.tail()

forecast = m.predict(future)
forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()

m.plot(forecast);
m.plot_components(forecast);
plt.show()

6b14aab7bb7ad950f4c8e26d656afee8c4efb5eb
<mask token>

<mask token>
df.head(n=3000)
print(df.head(n=3000))
<mask token>
m.fit(df)
<mask token>
future.tail()
<mask token>
forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()
m.plot(forecast)
m.plot_components(forecast)
plt.show()

<mask token>
df = pd.read_csv('prices2pages.csv')
df['y'] = np.log(df['y'])
df.head(n=3000)
print(df.head(n=3000))
m = Prophet()
m.fit(df)
future = m.make_future_dataframe(periods=60)
future.tail()
forecast = m.predict(future)
forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()
m.plot(forecast)
m.plot_components(forecast)
plt.show()

import pandas as pd
import numpy as np
from fbprophet import Prophet
import matplotlib.pyplot as plt
df = pd.read_csv('prices2pages.csv')
df['y'] = np.log(df['y'])
df.head(n=3000)
print(df.head(n=3000))
m = Prophet()
m.fit(df)
future = m.make_future_dataframe(periods=60)
future.tail()
forecast = m.predict(future)
forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()
m.plot(forecast)
m.plot_components(forecast)
plt.show()

import pandas as pd
import numpy as np
from fbprophet import Prophet
import matplotlib.pyplot as plt

df = pd.read_csv('prices2pages.csv')
df['y'] = np.log(df['y'])

df.head(n=3000)
print(df.head(n=3000))

m = Prophet()
m.fit(df)


future = m.make_future_dataframe(periods=60)
future.tail()

forecast = m.predict(future)
forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()

m.plot(forecast);
m.plot_components(forecast);
plt.show()
