Posts by Willian Vieira • 209 points
5 posts
-
3
votes1
answer3303
viewsA: Convert monetary value (string) to Python/Pandas float
a way that I find simple is to use apply import pandas as pd df = pd.DataFrame({'col1':pd.date_range('2015-01-02 15:00:07', periods=3), 'col2':pd.date_range('2015-05-02 15:00:07', periods=3),…
-
-1
votes1
answer118
viewsA: Python GIF API
Try this: ... pprint(api_response.data.image_url) ...
-
1
votes1
answer619
viewsA: Assign text in TXT file to a variable
create a file called.txt words containing the words: (3)produto /PRODUTOS ATENDIMENTOPRODUTOS PRODUTO produto! Produto produto. Read it and save the values in a list with open('palavras.txt','r') as…
-
1
votes2
answers1143
viewsA: Extract and print specific xml values using Python
Missing print indentation for iterated values to print for level in levels: name = level.find('NomeParlamentar').text code = level.find('CodigoParlamentar').text print(name, code) OUTPUT: Airton…
-
0
votes1
answer2400
viewsA: Python: Tkinter. Run button
Create a file called program.py and import it into the.py file as follows import programa in the section of the button command call the already imported method bt1 = Button(janela, width=10,…