I have a PySpark data frame which only contains one element. How can I extract the number from the data frame?
For the example, how can I get the number 5.0 from the PySpark data frame?
+-----------------+
| count |
+-----------------+
| 5.0 |
+-----------------+