How to count record changes for a particular value of a column in a scala Dataframe
问题 In a dataframe the columns have the input shown below: | id| priority| status| datetime|data_as_of_Date|Amount|open_close| | 1|Unassigned| Fixed| 10/8/2019 0:00| 2/12/2020 0:00| 40| Closed| | 1|Unassigned| New|2/12/2019 11:00| 2/12/2020 0:00| 20| Open| | 1|Unassigned|Fix in progress|9/12/2019 11:00| 2/12/2020 0:00| 90| Open| | 3| Critical| Removed|5/17/2019 12:00| 2/12/2020 0:00| 33| Closed| | 3|Unassigned|Fix in progress|5/26/2019 10:00| 2/12/2020 0:00| 30| Open| | 3| Critical| New| 5/8/2019