formControlName不会保存select中的所有值

时间:2018-10-16 06:04:51

标签: angular angular-reactive-forms angular-forms

formControlName仅在我的数据库中设置姓。我该如何保存姓氏和姓氏?

import pandas as pd

def custZfill(val):
    val = val.split("-")
    #alternative split by last -
    #val = val.rsplit("-",1)
    val[-1] = val[-1].zfill(4)
    return "-".join(val)

df = pd.DataFrame({"EmployeeID": ["2016-CT-1028", "2016-CT-1028", 
                                  "2017-CT-1063", "2017-CT-1063", 
                                  "2015-CT-948", "2015-CT-948"]})
print(df["EmployeeID"].apply(custZfill))

0 个答案:

没有答案