If you get an error message you don't understand, google it - it's quite likely that you aren't the first to get it.
In this case, you definitely aren't:
Attributeerror: 'dataframe' object has no attribute 'rows' - Google Search[
^] all of the links on the first page explain why you get the problem, and what to do about it ... and would have done the same thing 8 hours ago!
Google is your friend: Be nice and visit him often. He can answer some simple questions a lot more quickly than posting them here... In future, please try to do at least basic research yourself, and not waste your time or ours.