Posts by hidantachi • 83 points
7 posts
-
1
votes0
answers38
viewsQ: Group by column-specific values in a Dataframe
I have the following dataset: Brand Condition Fuel 0 Toyota Used Diesel 1 Suzuki Used Petrol 2 Suzuki Used CNG 3 Suzuki Used Petrol 4 Toyota Used Petrol It’s over 10,000 records and has over 15…
-
1
votes0
answers37
viewsQ: Error creating Virtualenv on Windows
I am trying to create a virtualenv in windows but am getting the following error: line = line.decode(fs_encoding) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 283: invalid…
-
1
votes1
answer300
viewsQ: Urllib.request or Request?
I am studying web scraping and in many guides I have seen examples where they are used urllib.request and request.get. From what I’ve tested and understood the two do the same thing. So what’s the…
-
1
votes1
answer465
viewsQ: Python script error for copying . txt files
I made the following script to study. The goal is to copy all files with the extension '.txt' from the 'teste1' folder to the 'teste2' folder'. import shutil import os #Para garantir que o path é o…
-
1
votes0
answers49
viewsQ: Implementation of an DFA for reading multiple strings
I have to determine if the strings in the file belong to AFD. I was able to do just one string. The goal now is to read more than one string, but I could not do the implementation, always ends up…
-
2
votes2
answers103
viewsQ: Problems in Reading File
Last week I had a question on how to read a string "giant". Thanks to the help of the staff here I managed to implement the function. Now I have reached a new problem. Reading the file is not…
-
0
votes2
answers1092
viewsQ: Separating small strings from a giant string
Hello. I have to do a function to read a huge string and then divide it into small strings for each field. Each field would be separated by ; example: BRUNNY;PR;MG;T;Câmara dos Deputados, Edifício…