Math is math Pandas.Series

In the console enter the following statement and see what happens

from pandas import Series
frame = Series([195, 73], index=[">825.625", "<=825.625"])
frame / 268
frame + 100
frame * 2
frame - 73

Here Insert Picture Description

to sum up:

1. arithmetic operations are performed on the value calculation instead of index
2. Note the parameters passed to the correct position

Published 131 original articles · won praise 81 · views 60000 +

Guess you like

Origin blog.csdn.net/weixin_43469047/article/details/104033061