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 24, 2020 in Apache Spark by ritu
• 980 points
215 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,870 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,140 points
89 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,140 points
160 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 25, 2020 in Apache Spark by MD
• 95,140 points
381 views
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer