0
ratings_test = test_data.map(lambda l: l.split()).map(lambda a : 
    Row(userId=int(a[0]),movieId=int(a[1]),index=i)).cache()

I want the index row to be increasing

Sterling Archer
  • 21,348
  • 17
  • 79
  • 113

0 Answers0