1

I can not write data from an array in excel.

What parameters you need to specify functions in DataFrame()?

import pandas as pd

table = pd.read_excel("file1.xlsx", sheetname="file1")
lastval = table['lastval'].values.tolist()
newval = table['newval'].values.tolist()
rm = table['rm'].values.tolist()
itog = [0, 0, 0]

for i in range(3):
    itog[i] = (newval[i]-lastval[i]) * rm[i]
    pd.DataFrame(?????)

1 Answer 1

1

The function you are looking for is to_excel. Take a look at the docs here.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.