Pandas Extract Number from String
Give it a regex capture group:
df.A.str.extract('(\d+)')
Gives you:
0 1
1 NaN
2 10
3 100
4 0
Name: A, dtype: object
To answer @Steven G 's question in the comment above, this should work:
df.A.str.extract('(^\d*)')