- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
When i try to run the RatingsBreakdown.py code, i found this error please rectify this error
- Labels:
-
Apache Hadoop
Created on 11-11-2017 10:16 AM - edited 08-17-2019 11:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When i try to run RatingsBreakdown.py i found this error, please rectify the error formed
Created 11-12-2017 06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check this line in your code
RatingsBreakdown.py line 12, in mapper_get_ratings
(userID, movieID, rating, timestamp ) = line.split('\t')
The line should have exactly 4 values else you may get the issue 'ValueError: need more than 2 values to unpack' . Check the input or add a validation
if len(line.split('\t')) == 4: (userID, movieID, rating, timestamp ) = line.split('\t')
Created 11-12-2017 05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please reply community, i need your help
Created 11-12-2017 06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check this line in your code
RatingsBreakdown.py line 12, in mapper_get_ratings
(userID, movieID, rating, timestamp ) = line.split('\t')
The line should have exactly 4 values else you may get the issue 'ValueError: need more than 2 values to unpack' . Check the input or add a validation
if len(line.split('\t')) == 4: (userID, movieID, rating, timestamp ) = line.split('\t')
