Hi , when i m using u.item to make dataframe it shows a error ?as shown below

dff = pd.read_csv(“ml-100k/u.item”,sep =’|’)

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xe9 in position 2892: invalid continuation byte

Hello @coding123c,
It is because it by default uses the decoding method that can’t be used for .item file. Try using following approach:

enc

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.