Question: Python Convert txt file into list to be able to do mapreduce. Incoming file is a txt (see picture attached for reference), values in each

Python

Convert txt file into list to be able to do mapreduce.

Incoming file is a txt (see picture attached for reference), values in each row are stored into a single column as string values, when imported it gets saved as pyspark.sql.dataframe.

Python Convert txt file into list to be able to do mapreduce.

I need them to be split and saved in the following format df = [(4,5),(5,8),(8,2),(8,8),(9,4),(9,1),(7,2),(5,9),(5,5)]

458899755582841295

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!