Create a simulation to test 1 month of data in 30 mins
This commit is contained in:
@@ -78,10 +78,11 @@ def MakeFeatures(df):
|
||||
df.drop(col, axis=1, inplace=True)
|
||||
|
||||
# Drop rows with null values
|
||||
df.dropna(inplace=True)
|
||||
feature_columns = [col for col in df.columns if col != 'Target_Close'] # Dont drop any Target_Close as we need this data for predictions
|
||||
df.dropna(subset=feature_columns, inplace=True)
|
||||
|
||||
# Replace Infinity with 0 -> This fixes the AI mental breakdown
|
||||
df = df.replace([np.inf, -np.inf], 0)
|
||||
df.replace([np.inf, -np.inf], 0, inplace=True)
|
||||
|
||||
# Replace Infinity with 0 -> This fixes the AI mental breakdown
|
||||
df['Volume_Chg'] = df['Volume_Chg'].replace([np.inf, -np.inf], 0)
|
||||
|
||||
Reference in New Issue
Block a user