In Pandas the Panel.sub()
function is used to get the subtraction of a series and a data frame / Panel.
Syntax : Panel.sub (other, axis = 0)
Parameters:
other: DataFrame or Panel
axis: Axis to broadcast overReturns: Panel
Code # 1:
|
Output:
Code # 2:
|
Output:
Code # 3:
|
Output: