📜  从 Pandas 中的字符串中提取整数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:23.537000             🧑  作者: Mango

代码示例1
df['B'].str.extract('(\d+)').astype(int)