Pandas sum of column k where character columns i > j?

前端 未结 0 892
臣服心动
臣服心动 2020-12-04 18:14

I have a DataFrame:

df = pd.DataFrame({\'node_a\': [\'X\', \'X\', \'X\', \'Y\', \'Y\', \'Y\', \'Z\', \'Z\', \'Z\'],
                   \'node_b\': [\'X\', \'Y         


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