【发布时间】:2021-06-05 09:34:30
【问题描述】:
使用这个打印我得到这个输出
print(price_data['sellingPrice'])
#0 500
#1 300
#Name: sellingPrice, dtype: int64
print(price_data['orders'])
#0 1000
#1 12
#Name: orders, dtype: int64
sale_value= (((price_data['sellingPrice']) * (price_data['orders'])))
#0 500000
#1 3600
#dtype: int64 sale_value
有什么办法可以得到这样的输出
对于 csv 的第一行
price_data['sellingPrice']=500
price_data['orders']=100
sale_value=500000
【问题讨论】:
标签: python python-3.x pandas dataframe csv