When I print out my lists at the bottom of the code, one letters, numbers, and $ are printed out instead of what is supposed to be expected?
Consider what is happening in the function below. Use
print()'s to observe if necessary. One tip for debugging would be to use a much smaller data set. Try temporarily assigning only the first transaction or two, to
daily_sales, so you can more easily see what is not going according to plan.
for small_list in daily_transactions_split: for item in small_list: transactions_clean.append(item.strip())
If I were debugging this (I have already done exactly the following):
print(daily_transactions_split) for small_list in daily_transactions_split: print(small_list) for item in small_list: print(item) transactions_clean.append(item.strip()) print(transactions_clean)
Adding all of these
print() function calls along with using only the first transaction should shed some light on the issue.
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.