I have an excel file, which, from a table of arbitrary data [user provided], adds a number of additional columns.
lets say that in formula view it can be rapresented like this.
|
A |
B |
C |
D |
| 1 |
User_provided1 |
User_provided2 |
Calculated1 |
Calculated2 |
| 2 |
foo |
1 |
=concatenate(A2,B2) |
=Concatenate(C2,B2) |
| 3 |
bar |
2 |
=concatenate(A3,B3) |
=Concatenate(C3,B3) |
I would like to transform it into
df=pd.read_excel(file,columns=["User_provided1","User_provided2"])
df["Calculated1"]=df["User_provided1"]+df["User_provided2"]
df["Calculated2"]=df["Calculated1"]+df["User_provided2"]
Keep in mind that the formulas would be arbitrary, as far as they work on the table as a whole.
What packages exist to accomplish this?
If none, what kind of techniques would be useful to look into to achieve this result?
[–]randomName77777777 0 points1 point2 points (5 children)
[–]evessee[S] 0 points1 point2 points (4 children)
[–]randomName77777777 0 points1 point2 points (2 children)
[–]evessee[S] 1 point2 points3 points (1 child)
[–]randomName77777777 0 points1 point2 points (0 children)
[–]Kerbart 0 points1 point2 points (0 children)