【发布时间】:2017-12-27 13:04:36
【问题描述】:
我有一个包含城镇、县和国家/地区列表的 CSV 文件。
Town County Country Ampthill Bedfordshire England Arlesey Bedfordshire England
我希望能够检查一个城镇是否在列表中,如果一个城镇在列表中,那么我想知道这个国家是什么。 目前使用熊猫。
关于如何检查 pandas 中是否存在变量值的任何想法。
【问题讨论】:
标签: python pandas csv data-science