Skip to content
Advertisement

How do I operate (subtract) a Series with a DataFrame for every column?

How do I operate on a DataFrame with a Series for every column?

And for the reverse operation (Series – DataFrame)?

JavaScript

I want s0-df.

JavaScript

My first inelegants solutions: -df.sub(s0, axis=0) ou (-df).add(s0, axis=0) !

An another idea?

Advertisement

Answer

A new idea :

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement