Well, it's just a matter of looking at this. https://note.nkmk.me/python-pandas-read-excel/
Note that you need to install xlrd as well as pandas.
sample.py
import sys
import pandas as pd
#XLS file to read
excel_file = sys.argv[1]
print('File name ⇒', sys.argv[1])
if __name__== '__main__':
file = pd.ExcelFile(excel_file)
# "parent"Read the sheet
sheet_df = file.parse("parent")
for j,series in sheet_df.iterrows():
#Row-by-line processing
parent_xxx(series)
Recommended Posts