You can reformat the values by passing the reformat function to the apply method as follows:
from StringIO import StringIO import pandas as pd data = """ obs abcd 1 1-23-12 1 2 3 2 12-23-13 4 5 5 3 21-23-14 4 5 5"""
This will give you the desired result:
obs abcd 0 1 1 1 2 3 1 2 12 4 5 5 2 3 21 4 5 5
joemar.ct
source share