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
  • 22,070
  • 18
  • 81
  • 118

0 Answers0