Phạm Thanh Nam
New member
How do I count the number of rows in Excel using Python?
Answer
How to find the total number of rows and columns of an Excel spreadsheet in Python
Answer
How to find the total number of rows and columns of an Excel spreadsheet in Python
- pd_xl_file = pd. ExcelFile(“sample1.xls”)
- df = pd_xl_file. parse(“Sheet1”)
- print(df)
- dimensions = df. shape.
- print(dimensions)