Posts by Caaarlos • 151 points
2 posts
-
0
votes2
answers120
viewsA: Create a variable inside an xpath
You can use to format the string. For this purpose the python strings have a method called format. Follow an example: format_xpath = '//*[@id="j_id184:dados:{numero}:j_id306"]' for i in range(10): #…
-
2
votes1
answer44
viewsA: How to create a new column 'ANO_NASCIMENTO' and insert data into it in sequence, considering each row of the column NAME
You have two options, insert directly into the column or create a list and then add the values at once. Follow the details. Base code: import pandas as pd dados = [ {"NOME": "João Pedro",…