You are viewing a single comment's thread from:

RE: Payment for Coding done

in #codingfund10 months ago

Predict the price for a specific date

date_to_predict = pd.to_datetime("2023-09-04")
day_to_predict = date_to_predict.day
month_to_predict = date_to_predict.month

predicted_price = model.predict([[day_to_predict, month_to_predict]])
print(f'Predicted price for {date_to_predict}: ${predicted_price[0]:.2f}')

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 65927.86
ETH 3481.42
USDT 1.00
SBD 2.66