X, y = sklearn.datasets.fetch_openml(data_id=179, return_X_y=True)
// y needs to be encoded, as fetch openml doesn"t download a float
y = preprocessing.LabelEncoder().fit_transform(y)
X_train, X_test, y_train, y_test = \
sklearn.model_selection.train_test_split(X, y, random_state=1)
After Change
// Load Australian dataset from https://www.openml.org/d/40981
bunch = data = sklearn.datasets.fetch_openml(data_id=40981, as_frame=True)
y = bunch["target"].to_numpy()
X = bunch["data"].to_numpy(np.float)
X_train, X_test, y_train, y_test = \
sklearn.model_selection.train_test_split(X, y, random_state=1)