You are viewing a single comment's thread from:

RE: Payment for Coding done

in #codingfund11 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.16
TRX 0.12
JST 0.026
BTC 60239.77
ETH 2896.71
USDT 1.00
SBD 2.45