Questions tagged as 'python'

0
answers

Raise XLRDError - Indicating name of Python Sheet_name

Good morning. I'm starting with Python and I have a problem. I have N files in Excel and I need to read the sheet_name of each one stating their name, the code I have so far is this: os.chdir("work path") fileLista = glob.glob('*.xls') arqFine...
asked by 21.05.2018 / 16:57
0
answers

Pass parameter in URL

Personal I am using the code below to query on google latitude and longitude based address, I would like to know how do I pass to the URL address in parameter form? The code below works perfectly because I'm passing the fixed parameters: impor...
asked by 22.05.2018 / 14:40
0
answers

TypeError: importPoisson () takes 1 positional argument but 2 were given

I'm trying to import some data from an external file to be able to generate a graphic and such, but every time of that error, follows my code: You can also talk about errors that you found in my code that can be improved, I'm starting in pyth...
asked by 26.05.2018 / 16:16
1
answer

Can I set the other to do two things?

I want to do a function in case the name entered is invalid, the program shows that the name is invalid and in addition, close the program or return to the starting point, is it possible in Python? carro = str(input('Qual carro você alugou? '...
asked by 26.05.2018 / 17:07
1
answer

Convert a txt file to integers. Python

Good morning. I am a beginner in Python language, I use in Windows 8.1, id Pycharm, version 3.6.4. At first opening the file has not been the problem before, it converts it to integer. Only then can I establish the desired filters. I started to...
asked by 17.05.2018 / 05:19
1
answer

How do I translate my results into a txt, excel or word file?

I have a code in Python that does the following: Extract multiple table data into distinct excels and perform a linear regression between them. So far so good but how do I make my results clean in a TXT, excel or word file? Thanks Here's my s...
asked by 17.05.2018 / 06:53
1
answer

Python Guess Game

I was doing a job and I ran into some problems. This code has a limitation: Whenever the player selects any number that has already been selected before, the code does not invalidate and is considered as an attempt. I would like a help to refin...
asked by 15.05.2018 / 19:44
0
answers

PANDAS WHILE COM STRING

Hello, I'm trying to loop through a column of my DataFrame and return the row amount of it giving a limit to go through to 'Prov' I'm using for for looping through the column and using while to return line values, but this one giving error for be...
asked by 15.05.2018 / 20:43
1
answer

How to change form fields depending on the user

I'm using Flask Admin and Flask security to log in to it. I can get no problem to define depending on the role of a user whether or not he can create an object, but I would also like to be able to add or remove fields from the creation / editing...
asked by 15.05.2018 / 23:07
0
answers

How can I convert image data to float? Or is there something wrong with the code?

I'm testing a code and I had problems: I can not see the image. The message that appears is: TypeError: Image data can not be converted to float (image data can not be converted to float) I could not solve this, please help me CODE: from ma...
asked by 20.05.2018 / 18:18