0

Any pyspark person there

If I try below way df=spark.read.csv("path") It will load whole CSV file which has 20 columns but I want to read just 5 out of it. Is there a way??

18th Nov 2019, 4:14 PM
Anil Patil
Anil Patil - avatar
6 Answers
0
Hey do you know about Tkinter?
18th Nov 2019, 4:26 PM
Tihsrah
Tihsrah - avatar
0
No..
18th Nov 2019, 4:27 PM
Anil Patil
Anil Patil - avatar
0
You know anyone who knows about Tkinter..
18th Nov 2019, 4:29 PM
Tihsrah
Tihsrah - avatar
0
You can better search that in Discord application server where so many python experts will be there
18th Nov 2019, 4:31 PM
Anil Patil
Anil Patil - avatar
0
Oh thanx
18th Nov 2019, 4:32 PM
Tihsrah
Tihsrah - avatar
0
I am not familiar with PySpark, but here is a solution in pandas. You should be able to convert the pandas dataframe to whatever format you need. https://code.sololearn.com/cumdl0qu20kx/?ref=app
19th Nov 2019, 12:43 PM
Rora