parse dataset based on pandas