I have a dataframe1(1273 rows x 40 columns), and i have another dataframe2 (1273 rows x columns 1).
I want to do subtraction between the 2 dataframes in order to have a new dataframe called AMP(1273 rows x 40 columns).
The subtraction must be like this ( for each row of dataframe1 - row of dataframe2)
I tried this function : dataframe1.sub(dataframe2, axis= 0 )
However, it does only subtraction on the first row and Nans on the others row.
Any suggestions about how this can be done?