Aug-05-2021, 10:45 AM
Hello,
I've not used Pandas too much but I believe the error is where you are referencing the index. Index, in case you didn't already know is how the code refers to items on a list or table, for example
0. Apple, 1. Pear, 2. Peach
So item 0 is always the first item on the list. Try changing "Date" to the index value of that column.
I don't know if that is the solution, however nobody else replied so I thought I would give it a go.
Kind regards,
James
I've not used Pandas too much but I believe the error is where you are referencing the index. Index, in case you didn't already know is how the code refers to items on a list or table, for example
0. Apple, 1. Pear, 2. Peach
So item 0 is always the first item on the list. Try changing "Date" to the index value of that column.
I don't know if that is the solution, however nobody else replied so I thought I would give it a go.
Kind regards,
James
while dad_has_cigs == True: happiness = True if dad_has_cigs == False: print("Dad come home!") happiness = not happiness break