How to use Pyspark equivalent for reset_index() in python

Viewed 2344

I'd like to know equivalence in PySpark to the use of reset_index() command used in pandas. When using the default command (reset_index), as follows:

data.reset_index()

I get an error:

"DataFrame' object has no attribute 'reset_index' error"

0 Answers
Related