OK guys,
The values I got for some columns are just too huge other are in day/month format (see excel picture) and I was wondering why.
Here is my code and the file is here
here you can see the excel
and the pandas
outputs
The values I got for some columns are just too huge other are in day/month format (see excel picture) and I was wondering why.
Here is my code and the file is here
here you can see the excel
![[Image: IKJr6go.png]](https://pasteboard.co/IKJr6go.png)
![[Image: IKJrnpK.png]](https://pasteboard.co/IKJrnpK.png)
import pandas as pd # Read the file data = pd.read_csv('/your_location/for_test.csv', sep = ';') # Set the index data = data.set_index('Date_Time') # Drop the duplicated rows data = data.drop_duplicates(keep = "first") # Create new columns using Addition and Multiplication data['a1'] = data['x1'] * data['y1'] data['a2'] = data['x2'] * data['y2'] data['a3'] = data['x3'] * data['y3'] data['b1'] = data['x1'] * data['z1'] data['b2'] = data['x2'] * data['z2'] data['b3'] = data['x3'] * data['z3'] data['A'] = (data['a1'] + data['a2'] + data['a3']) * 0.01 data['B'] = (data['b1'] + data['b2'] + data['b3']) * 0.01 data['A+B'] = data['A'] + data['B'] # Final dataframe data = data[['A+B', 'A']] save_data = data.to_csv('/your_location/output.csv', sep = ';') data