Reshaping big dataset with MinMaxScaler giving error
I assume you checked for NaN and Inf values manually.

According to the solutions posted here: https://stackoverflow.com/a/44869902/6204860 and
https://datascience.stackexchange.com/a/11933/52089

if dataset1 is a Pandas DataFrame try converting it to a matrix by running this:

dataset1 = dataset1.as_matrix().astype(np.float)
np.nan_to_num(dataset1)


and then run dataset1 = scaler.fit_transform(dataset1).

Let me know if this works :)