我有以下数据框:
df
0 0.0
1 0.5
2 1.0
3 1.5
4 2.0
5 2.5
6 3.0
7 3.5
8 4.0
9 4.5
10 5.0
11 5.5
12 6.0
13 6.5
14 7.0
15 7.5
16 8.0
17 8.5
18 9.0
19 9.5
20 10.0
我要计算功率
s01 = 500
s02 = 400
cal_power = pow(s01/s02,0)*df
但显示以下错误:
TypeError: unsupported operand type(s) for /: 'int' and 'list'