【发布时间】:2019-11-30 12:00:08
【问题描述】:
csv 文件包含许多属性。我必须删除高于原价的 offer_price。 价格列按行包含以下内容。以下是五行。如何在python中做到这一点
{'offer_price': {'currency': 'GBP', 'value': 25.0}, 'regular_price': {'currency': 'GBP', 'value': 25.0}}
{'offer_price': {'currency': 'GBP', 'value': 20.0}, 'regular_price': {'currency': 'GBP', 'value': 20.0}}
{'offer_price': {'currency': 'GBP', 'value': 18.0}, 'regular_price': {'currency': 'GBP', 'value': 18.0}}
{'offer_price': {'currency': 'GBP', 'value': 30.0}, 'regular_price': {'currency': 'GBP', 'value': 30.0}}
{'offer_price': {'currency': 'GBP', 'value': 35.0}, 'regular_price': {'currency': 'GBP', 'value': 35.0}}
名称:价格,数据类型:int64
【问题讨论】:
标签: python-3.x pandas data-science