hash

 
card_hash = hash("62251534987753643")
table_flag = card_hash%100
table_flag="%02d"%table_flag
table_flag
'27'

参考
    Pandas处理字符串方法汇总