jumping from R to python since org. wants very work to be done in python :(. struggling what seems to be a very basic task. i have a dataframe 25*25 with rows as observation