I have an excel file, which contains only one sheet, called 'Sheet1'. What I want to do is read all the rows from each column to send that data to a request in an API. I'm only able to send the last data of the worksheet, using this code:
my_table = pd.read_excel("Myexcel.xlsx")
for i, name in enumerate(my_table["Name"]):
categ = str(int(my_table.loc[i, "CategoryId"]))
brd = my_table.loc[i, "BrandName"]
des = my_table.loc[i, "Description"]
titl = my_table.loc[i, "Title"]
payloads = {"Name": name, "CategoryId": categ, "BrandName": brd, "Description": des, "Title": titl}
response = requests.post(url, headers=headers, json=payloads)
response = response.json()
What I want to do is send all the values. I couldn't specify how many lines there are, because the amount of data in the file can be changed, either more or less. I would like to do this in python