QuestionQ86Verified/Developing Apache Spark™ DataFrame/DataSet API ApplicationsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following operations can be used to return every row in a DataFrame?ADataFrame.count()BDataFrame.head()CDataFrame.collect()DDataFrame.show()EDataFrame.take()Show AnswerAnswerExplanationDataFrame.collect() returns all records in the DataFrame as a list of Row objects.Learn morepyspark.sql.DataFrame.collect — PySpark documentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion