小编eat*_*chi的帖子

从第一行累加减法

我有一个系列和一个DataFrame,都是整数.

s = [10,
     10,
     10]

m = [[0,0,0,0,3,4,5],
     [0,0,0,0,1,1,1],
     [10,0,0,0,0,5,5]]
Run Code Online (Sandbox Code Playgroud)

我想返回一个包含累积差异的矩阵来代替现有的数字.

输出:

n = [[10,10,10,10,7,3,-2],
     [10,10,10,10,9,8,7],
     [0,0,0,0,0,-5,-10]]
Run Code Online (Sandbox Code Playgroud)

python algorithm math matrix pandas

0
推荐指数
1
解决办法
101
查看次数

标签 统计

algorithm ×1

math ×1

matrix ×1

pandas ×1

python ×1