day 8 capgemini interview question pyspark scenario based interview questions and answers
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=0n7aGNVCtRc
pyspark scenario based interview questions and answers • capgemini interview question and answers • Create DataFrame : • ================ • lift_data = [ • (1,300), • (2,350) • ] • lift_schema = id int , capacity_kg int • lift_df = spark.createDataFrame(data = lift_data , schema = lift_schema) • • lift_passengers_data = [ • ('Rahul',85,1), • ('Adarsh',73,1), • ('Riti',95,1), • ('Viraj',80,1), • ('Vimal',83,2), • ('Neha',77,2), • ('Priti',73,2), • ('Himanshi',85,2) • ] • lift_passengers_schema = passenger_name string , weight_kg int, lift_id int • lift_passengers_df = spark.createDataFrame(data = lift_passengers_data , schema = lift_passengers_schema) • lift_df.display() • lift_passengers_df.display() • • Need help ? Connect with me 1:1 - https://topmate.io/dewithdhairy • Let's connect on LinkedIn : / dhirajgupta141 • • pyspark 30 days challenge : • pyspark 30 days challenge • DSA In Python Interview Series : • dsa for data engineer | dsa for data ... • PySpark Interview Series : • pyspark interview questions and answers • Pandas Interview Series : • pandas interview questions and answers • SQL Interview Series : • sql interview questions and answers • PySpark Installation and Setup : • Spark Installation | PySpark Installa... • #pyspark #capgemini #capgeminioffcampus
#############################