which one of the following commands is used to see the structure of the Dataframe

0 votes
which one of the following commands is used to see the structure of the Dataframe?

a)scala> dfs.Schema()

b)scala> printSchema()

c)scala> dfs.printSchema()

d)Run time error
Nov 25, 2020 in Apache Spark by ritu
• 960 points
2,406 views

1 answer to this question.

0 votes

Hi @Ritu

If you want to see the Structure (Schema) of the DataFrame, then use the following command.

scala> dfs.printSchema()
answered Nov 25, 2020 by Gitika
• 65,770 points

Related Questions In Apache Spark

0 votes
1 answer

Which one of the following commands is used to start python-spark?

Hi@ritu, To start your python spark shell, you ...READ MORE

answered Nov 26, 2020 in Apache Spark by MD
• 95,460 points
1,409 views
0 votes
1 answer

4)Spark streaming converts streaming data into DStreams. which one of the given statements about DStreams is True?

Hi@ritu, Spark DStream (Discretized Stream) is the basic ...READ MORE

answered Nov 23, 2020 in Apache Spark by MD
• 95,460 points
2,768 views
0 votes
1 answer

The number of stages in a job is equal to the number of RDDs in DAG. however, under one of the cgiven conditions, the scheduler can truncate the lineage. identify it.

Hi@Edureka, Spark's internal scheduler may truncate the lineage of the RDD graph ...READ MORE

answered Nov 26, 2020 in Apache Spark by MD
• 95,460 points
4,010 views
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP