I have a dataset in which all the columns are numbers and there are some nans I want to fill. The rows must be seen as a temporal serie, so I want to fill those nans with the average of next and previous values. Is there any way to do it in Pyspark?
Thanks!!