Posts

Showing posts with the label Machine Learning

Predict Brent Oil Price by LSTM

Image
#1.importing data from yahoo for 2001 to 2021 df = web.DataReader( 'BZ=F' , data_source= 'yahoo' , start= '2001-01-01' , end= '2021-06-30' ) df = df.reset_index() #2. format date data to appropriate format df[ 'Date' ]=pd.to_datetime(df[ 'Date' ], format= "%b %d, %Y" )  df Date High Low Open Close Volume Adj Close 0 2007-07-30 76.529999 75.440002 75.849998 75.739998 2575.0 75.739998 1 2007-07-31 77.169998 75.669998 75.699997 77.050003 3513.0 77.050003 2 2007-08-01 77.059998 74.860001 77.000000 75.349998 3930.0 75.349998 3 2007-08-02 76.209999 74.269997 75.220001 75.760002 6180.0 75.760002 4 2007-08-03 76.000000 74.529999 75.389999 74.750000 4387.0 74.750000 ... ... ... ... ... ... ... ... 3412 2021-06-24 75.769997 74.519997 75.370003 75.559998 26664.0 75.559998 3413 2021-06-25 76.209999 74.949997 75.610001 76.180000 31417.0 76.180000 3414 2021-06-28 76.589996 74.519997 76.1...

Popular posts from this blog

Hybrid System of ESP and Gas Lift Application from Conceptual Design, Pilot Test to System Analysis

Determination of source and breakthrough mechanism of water production in a naturally fractured basement reservoir by analyzing water production data

A Comparison of Permeability Prediction Methods Using Core Analysis Data