sklearn fit, MinMax scaler etc run into memory error when I am running the jupyter notebook on ec2-instance of m5a.xlarge (16gb ram). Whereas when I run the same code on my local machine (Macbook air, 8gb RAM), the code runs fine although slowly.
I have checked that my python version is 64bit.
Am I missing something?
from sklearn import preprocessing
scaler = preprocessing.MinMaxScaler(copy=True)
df2_scaled = scaler.fit_transform(df2)
this gives following eror:
MemoryError Traceback (most recent call last)
This has been marked possible duplicate of another question here. Although I get the memory issue even if I run normal .py file. In both cases looking at outcome of 'top' command I can see more than 5gb of free memory