AttributeError: 'DataFrame' object has no attribute 'rows ...
thefuturescoop.com › attributeerror-dataframeFor example, import pandas as pd df = pd.read_excel (r"C:\Users\Documents\sample.xlsx") for rows in df.rows: print (rows) This will give AttributeError: ‘DataFrame’ object has no attribute ‘rows’. Traceback (most recent call last): File "c:\Users\Documents\sample.py", line 3, in <module> for rows in df.rows: File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\generic.py", line 5465, in __getattr__ return object.__getattribute__ (self, name ...