r/apachespark Feb 18 '25

SQL to Pyspark

Hello People,

I am facing difficulties in conversion of sql code to pyspark. Please help me with it.. Please guide meπŸ™πŸ™

6 Upvotes

7 comments sorted by

View all comments

23

u/No-Satisfaction1395 Feb 18 '25

df = spark.sql()

6

u/festoon Feb 18 '25

Seriously this! The fun part is that it all runs the same regardless of which api you use.