Mathematical operation with CSV files

Asked

Viewed 42 times

-1

Hello!

imported a. csv file with some columns and I would like to do calculations with this data, but I don’t know how to do this.

Example as it would be in excel: exemplo no excel

1 answer

1

It is complicated to suggest a solution when only an image of an excel is available and not a real sample of the data. But if what you’re looking for is multiplication between columns and saving it in another, you can do so:

df['resultado'] = df['nome de uma das colunas'] * df['nome de outra coluna']

Browser other questions tagged

You are not signed in. Login or sign up in order to post.