次のタグが付いている話題の回答:

1

index 2 is out of bounds for axis 1 with size 2の対処方法

Pythonのインデックスは(matlabと違って)0始まりなので、 users_r[:,1],users_r[:,2] を users_r[:,0],users_r[:,1] に直して見てください。
dkato's user avatar
  • 310

Only top scored, non community-wiki answers of a minimum length are eligible