How to make a table in python with adding data from one column to make one row : [I have a csv file that I need to make into a table][1]




[How can I make a table with the first column being each year 2019 2018 etc and the second the total debited each year and the next column the total credited like this][2]


  [1]: https://i.stack.imgur.com/Kv6Lk.png
  [2]: https://i.stack.imgur.com/gclPw.png