Python - Thread Shed

Any help is greatly appreciated! My issue is that my data is NOT in brackets between names. ex. [‘Edith Mcbride’, ‘$1.21’, ‘white’, ‘09/15/17’, Without i can’t call using index-ing.

Thanks in advance! =)


Start coding below!

for sales1 in daily_transactions:

transactions_clean =

for sales2 in daily_transactions_split:
for data in sales2:



#for sales_final in transactions_clean:


Okayy so… fix the part that should have created that list?

Sounds like you’re not too sure what your code is doing. The programmer (you) needs to be fully aware of everything going on.

My suggestion is to start over (possibly keeping a copy of your current code), and for each change you make, write out what the data looks like - did the change have the desired effect?
Since the data is big, you may want to use a much smaller amount of data while writing code, maybe two entries or so, that way you’re able to easily look at it.

(Also, a list doesn’t have brackets, that’s just something shown when printing a list so that you can see what type it is - a list isn’t text)


Understood. Thanks :blush:

Did you ever figure out what was causing your problem? I’m having the same issue. My list of lists turns into a list of string when I remove the whitespace for some reason.