首页 > 解决方案 > How to convert strings with "Jt" or "million" abbreviation into integers in a list

问题描述

i have house price data, but i have problem to convert it..

price=['675M','1.2M','500M']

I want to use a syntax that can convert those string items to integers like the following :('675M'=675,000,000, '1.2M' = 1,200,000,000)

标签: pythondataframedata-science

解决方案


推荐阅读