filmov
tv
How To Convert Any Text File To A DataFrame Using Spark | zipWithIndex | getItem | map

Показать описание
This video show the steps required to convert a delimited text file content to a Spark dataframe. The solution require specifying a delimiter, using getItem method, zipWithIndex method, map method, and toDf method. The getItem is used to get the individual item in the array of each row as a column by passing the array index as an argument.