MinMaxScaler error

14 views
Skip to first unread message

Denis Dal Soler

unread,
Jan 28, 2025, 5:48:14 AMJan 28
to Keras-users
Hi
I have the  code below .
When I run it gave me this error

ValueError: Found array with 0 feature(s) (shape=(1323, 0)) while a minimum of 1 is required by MinMaxScaler.

Can someone help me please?
Thanks
Denis
data = yf.download("EURUSD=X", start='2020-01-01', end=datetime.now()) 
print(data.Close) 
data = data.filter(['Close']) 
print(data.values) 
dataset = data.values  
scaler = MinMaxScaler(feature_range=(0, 1)) 
scaled_data = scaler.fit_transform(dataset) 
Reply all
Reply to author
Forward
0 new messages