Posts by AlexandroGonSan • 3 points
5 posts
-
0
votes1
answer65
viewsA: Error in assigning Try and Exception
See if this is it: def acionamento(self, estado, nome_gerador): # acionar geradores self._nome = nome_gerador if nome_gerador is 'G1': print('já esta ligado') print('o gerador não é gerenciado…
-
0
votes1
answer95
viewsA: Split by columns in CSV conversion
import pandas as pd alunos_json = json.dumps(alunos, indent=True) df = pd.DataFrame(alunos_json) df.to_csv(r'alunos.csv') Install the pandas or use the https://colab.research.google.com You can…
-
0
votes1
answer2212
viewsA: Unicodedecodeerror: 'utf-8' codec can’t Decode byte 0xd0 in position 0
If you’re trying to read file try something like: open('file', encoding='utf-8') open('file', encoding='latin1') open('file', encoding='utf8') open('file', encoding='iso-8859-1') And see the…
-
0
votes1
answer18
viewsA: How do I keep the word iris-setosa as text in python: df=pd.read_sql('SELECT class = 'iris-setosa' FROM tbl_iris',cnxn)
See if this solves: df=pd.read_sql("SELECT class = 'iris-setosa' FROM tbl_iris",cnxn) Notice that I put double quotes externally.
-
0
votes2
answers74
viewsQ: How I see the code of an already interpreted html page
When I make a request in an HTML page with Python I get the source code , but if I access the page and go to see the code of the page by the options of developers I have there a totally different…