For number 8 (see below) I can’t figure out how to keep the transactions together, my code simply takes every data entry and puts them all together in the same string, thus losing the individual transactions
Any help appreciated
It looks like each data item has inconsistent whitespace around it. First, define an empty list
Now, Iterate through
daily_transactions_split and for each transaction iterate through the different data points and strip off any whitespace.
Add each of these cleaned up transactions to the new list