Summary
Keywords
Full Transcript
If you are interested in joining the paid Databricks Gen AI Project-Based Training, join this whatsapp group:https://chat.whatsapp.com/FPg397ZhTNPFDwlNFPBxH8 💡 Course Enrolment Link: https://www.geekcoders.co.in/courses/Practice-50-PySpark-Interview-Questions-65f317e33210a77d47c6afaf Script: data = [ (1, "My payment failed and I was charged twice"), (2, "The app crashes every time I open it on iOS"), (3, "I want to cancel my subscription and get a refund"), (4, "How do I reset my password?"), (5, "The dashboard is loading very slowly"), ] df = spark.createDataFrame(data, ["ticket_id", "ticket_text"]) df.createOrReplaceTempView("tickets") classified_sql = ''' SELECT ticket_id, ticket_text, ai_classify(ticket_text, ARRAY( "Billing", "Engineering", "Customer Success", "Security", "Performance" )) AS department FROM tickets ''' classified = spark.sql(classified_sql) Databricks Live Training Project-Based Course link: https://www.geekcoders.co.in/courses/Databricks-End-End-Gen-AI-Project-Based-Training-691b2c29e562bd5879a5cff0 #interview #kantara #dataengineering
