how to get the sum of distances from the diagonal line in a scatter plot in python?

后端 未结 0 1675
故里飘歌
故里飘歌 2021-01-21 17:14

I have a pandas dataframe

import pandas as pd
foo = pd.DataFrame({\'col_a\': [1,2,3,4,5], \'col_b\': [1,3,2,5,4], \'group\': [\'a\',\'a\',\'a\', \'b\',\'b\']})


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题