Skip to content

AttributeError: '_csv.reader' object has no attribute 'next()'Β #2

@venkat01

Description

@venkat01

I am at lesson 3.3 and rdd_csv_corrrect = rdd_no_header.map(lambda line: csv.reader([line]).next()) is giving an error in .next(). i am using python 3 here.

The error is AttributeError: '_csv.reader' object has no attribute 'next()'

I think this is more of an python2 v/s python3 issue, but need clarification as to how to resolve as this is becoming a show stopper :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions