filmov
tv
'How to create DataFrame in PySpark' | PySpark_1 | #pyspark

Показать описание
data = [
(1, "P001","Laptop",2,600),
(2, "P002","Phone", 3, 300),
(3, "P001", "Laptop", 1, 600),
(4, "P003","tablet",5, 150),
(5, "P002","Phone",1, 300)
]
schema = ["transaction_id","product_id","product_name","quantity","price_of_product"]
#pysparktutorial #dataengineering #interview #keepsupporting #welcome #welcometomychannel #sql
(1, "P001","Laptop",2,600),
(2, "P002","Phone", 3, 300),
(3, "P001", "Laptop", 1, 600),
(4, "P003","tablet",5, 150),
(5, "P002","Phone",1, 300)
]
schema = ["transaction_id","product_id","product_name","quantity","price_of_product"]
#pysparktutorial #dataengineering #interview #keepsupporting #welcome #welcometomychannel #sql