Back
I will suggest you to use head()
df.head().getInt(0)
You can also use first()
df.first().getInt(0)
31k questions
32.8k answers
501 comments
693 users