0

I'm not too expert with pandas and hence there's one thing I cannot do.

I have a dataframe with several columns: he first is a int, the others are floats.

I want to apply a function to all columns using the first one as a parameter for the function. Example:

  A    B    C
  4   0.3  0.5
  7   0.2  0.6

I have a function which I want to apply to columns B and C, whose result depends on the value of A for that row.

The only way I can think of is a sort of zip between first column and the others, but it doesn't look right.

spider
  • 1,164
  • 9
  • 16

0 Answers0