0 votes
1 view
in Big Data Hadoop & Spark by (11.5k points)
I have a Spark DataFrame query that is guaranteed to return single column with single Int value. What is the best way to extract this value as Int from the resulting DataFrame?

1 Answer

0 votes
by (32.5k points)

I will suggest you to use head()


You can also use first()


Welcome to Intellipaat Community. Get your technical queries answered by top developers !