我有一个系列数据对象,其中dtype为对象.它包含str格式的int以及许多字符串.我想只将int转换为int类型和del rest.
例:
'1','3','sd34','4','r5'
结果:
[1, 3, 4]
python
python ×1