I have two pandas dataframes, each of them is (15, 1) shape.
When subtracting one from the other, the result is a (15, 15) shape dataframe. The first column gives the correct subtraction values, but the other fourteen columns are filled with NaN values. (I get the same result using both traditional subtraction notation and .sub() )
Why is it introducing 14 additional columns? Shouldn't the result be a (15, 1) dataframe?
The dataframes are a concatenation of sections of another dataframe, hence the column/row labelling.