QuestionQ190Verified/Developing Apache Spark™ DataFrame/DataSet API ApplicationsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following operations may be used to sort a DataFrame’s rows?Asort() and orderBy()BorderBy()Csort()Dsort() and orderby()Eorderby()Show AnswerAnswerExplanationPySpark DataFrame supports sort() to order rows, and orderBy() is an alias for the same operation. The lowercase orderby() is not the valid API method name.Learn morePySpark DataFrame source documentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion