python - 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)
解决方案
推荐阅读
- python - 熊猫 concat 不匹配
- php - PHP && 给出错误答案
- python - 将多个文本块组合并制成表格
- spring-boot - Spring Boot 安全性允许发布请求,但仅在获得许可的情况下
- filebeat - Filebeat 不记录到文件,总是只记录到 syslog
- android - 如何在运行时在 DropDownMenuItems 列表中添加新项目?
- wordpress - 我需要将微信公众号文章导入Wordpress帖子或博客
- r - 通过将数据帧与不同的 nrow 数据帧进行比较,有条件地对数据帧进行子集化
- reactjs - React.Children.count 还是 children.length?
- c# - 如果它有一个值,我应该如何使用可空类型