When comparing two dataframes and putting the result back into a dataframe:
dfA = pd.DataFrame({'Column':[1,2,3,4]})
or in human readable form:
Column
0 1
1 2
2 3
3 4
dfB = pd.DataFrame({'Column':[1,2,4,3]})
or in human readable form:
Column
0 1
1 2
2 4
3 3
pd.DataFrame(dfA > dfB)
pandas outputs a dataframe with true or false values.
Column
0 False
1 False
2 False
3 True
Is it possible to change the name from 'true' or 'false' to 'lower' or 'higher'? I want to know if the outcome is higher, lower or equal, that is why I ask. If the output is not higher or lower, (true or false) then it must be equal.