def update(option: int) -> None: resp = 'Y' while resp.upper() == 'Y': regcard: Card = validcard(option) if int(regcard.codeCard) > 0: regcard.nameCard = inform_name('Card') Card.updatedb(regcard) resp = ' ' while resp.upper() not in 'YN': resp = input('Do you want continue [Y/N}? ')
def update(option: int, dfcard: DataFrame) -> None: resp = 'Y' while resp.upper() == 'Y': regcard: Card = validcard(option, dfcard) if int(regcard.codeCard) > 0: regcard.nameCard = inform_name('Card') nameAnt = dfcard.Name dfcard['Name'].replace(to_replace=[nameAnt], value=regcard.nameCard, inplace=True) Card.updatedb(regcard) resp = ' ' while resp.upper() not in 'YN': resp = input('Do you want continue [Y/N}? ')