We would like to use some of the existing meaningful generators within a python script depending on the value in another column.
I can't seem to find any existing documentation on how to do this.
For example:
Code: Select all
if type_cd (column) is 'ISIN' then use the InternationalSecuritiesIdentificationNumber(ISIN,ISO6166) generator
else if type_cd = 'CUSIP' then use the USCommitteeonUniformSecurityIdentificationProceduresCode(CUSIP) generator
else if type_cd = 'X' then generate using a custom Regex
else...