Import the required library

Read ETH price table from "coinmarketcap.com"

Parse Date column as Datetime object

read_html method return list of table on page

Loading output library...
Loading output library...
Loading output library...

Take only the Date && Close column, reverse all row and reset the index(drop=True to drop original index)

Loading output library...
Loading output library...
Loading output library...

We can see there is a huge price raise from 2017

Loading output library...

Change the column to 'ds', 'y' to comply with prophet api, reset_index(drop=True) to get new index

Loading output library...

Initialize the Prophet model and train the model

Specify the timeframe we want to predict, 1 year here

Make prediction

Loading output library...

yhat for mean predicted price, yhat_lower/yhat_upper for the range

Loading output library...

We can see Ethreum gonna have a bright future🎉

Loading output library...

Plot other components of prediction