'list' object has no attribute 'strip'

transactions_clean = []

for transactions in daily_transactions_split:

  temp_list = []

  for data_point in transactions:

    temp_list.append(data_point.strip(" "))



Even though I followed the guy in the Get Unstuck video, I keep getting this error message. Could anyone help me understand what I am doing wrong?


It’s saying that data-point is a list object. Go over your data construction and see where it becomes str so that it has that attribute.