andrei-zgirvaci / Twitch-Farmer

A bot that helps you to get more followers on Twitch
135 stars 38 forks source link

AttributeError: 'DataFrame' object has no attribute 'username' #10

Closed razzac closed 6 years ago

razzac commented 6 years ago

Traceback (most recent call last): File "twitch_farmer.py", line 254, in main() File "twitch_farmer.py", line 126, in main username_rows = accounts_csv.username File "C:\Python3\lib\site-packages\pandas\core\generic.py", line 4376, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'username'

andrei-zgirvaci commented 6 years ago

@razzac It seems like pandas can't find the column username in accounts.csv file.

Can you open the accounts.csv file in a text editor, copy the first row(header) and paste it here?

I guess you opened the accounts.csv in Excel and it changed the delimiter from "," to ";" or maybe you have changed the username column yourself by mistake