AttributeError: 'numpy.ndarray' object has no attribute values : when using X_binarised_train.values

When I am executing ‘X_binarised_train=X_binarised_train.values’ in jupyter notebook on my system, I got an Attribute error as ‘numpy.ndarray object has no attribute values’
Please guide me in solving this error

Most likely you have already executed this line once and trying to execute it again is resulting in error.

In video lectures, X_binarised_train is originally a pandas dataframe, but once you execute this code, it will become ndarray (because of assignment to itself).
Pandas dataframe has attribute values, but ndarray doesn’t.

You can go back up in the code where X_binarised_train was first created, execute it once and then come back to execute this line causing error again.