current_population = coalesce(cumulative_rate * base_population, col(
    'population')).alias('current_population')
How to calculate a column in a Row using two columns of the previous Row in Spark Data Frame?