you don't work like this in pandas
your code can be replaced with
your code can be replaced with
df_raw_data[5] = df_raw_data[3] * 8950 + df_raw_data[4]sample with dummy df:
import pandas as pd df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print(df) df[3] = df[1]*5 + df[2] print(df)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs